Hello everyone, this is my first post, and i wanna say first that AGS is
the best tool for adventure games i've ever seen. Thanks very much
for this Chris!
I want to make an inventory window that doesn't pause the game
when it is visible, but i want also to make it draggable with the mouse,
like all windows in windows xp for example.
I've tried it with a button that seems like the title bar, and made an OnClick
event were i've simply put:
function btnMainInvTitle_Click(...)
{
gMainInventory.X = mouse.x; gMainInventory.Y = mouse.y;
}
The result is very bad. The Gui jumps to the new pos, instead of moving smoothly.
I also tried mouse.IsButtonDown(...), inside the button event function, but it also doesn't work.
I've searched in the forums for the problem but i came with a similar
solution for objects that doesn't help me.
Sorry if there was one post about guis i missed.
Bye!
the best tool for adventure games i've ever seen. Thanks very much
for this Chris!
I want to make an inventory window that doesn't pause the game
when it is visible, but i want also to make it draggable with the mouse,
like all windows in windows xp for example.
I've tried it with a button that seems like the title bar, and made an OnClick
event were i've simply put:
function btnMainInvTitle_Click(...)
{
gMainInventory.X = mouse.x; gMainInventory.Y = mouse.y;
}
The result is very bad. The Gui jumps to the new pos, instead of moving smoothly.
I also tried mouse.IsButtonDown(...), inside the button event function, but it also doesn't work.
I've searched in the forums for the problem but i came with a similar
solution for objects that doesn't help me.
Sorry if there was one post about guis i missed.
Bye!