Skip to content

Scripting Problem: Dialog.bounds doesn't work as expected #3898

@NolifeM

Description

@NolifeM
local dlg = Dialog("Hello World!")
dlg.bounds = Rectangle(64,64,128,128)
dlg:show{wait=false}

A simple script test trying to change dlg bounds and here's the result:
image

I have been test on both stable version and beta version on steam.So it seems to be a little bug.

And here's another thing:

local dlg = Dialog("Hello World!")
dlg:label{text="Hello World!"}
dlg:show{wait=false}

These code will show a dialog in the middle of screen.
image

But with these:

local dlg = Dialog("Hello World!")
dlg:label{text="Hello World!"}
local bounds = dlg.bounds
dlg:show{wait=false}

Dialog goes to the left-top corner again.Even we were just trying to access the bounds without doing anythings.
image

Aseprite and System version

  • Aseprite version: v1.3-rc4-x64, steam beta test
  • System: Win10

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions