This script let you to create "animated toolbars" with image and button objects, and I think that it looks great =).
Put this file in your project's root folder o script's folder and in your global functions call it with "require("xToolBar")". I also add an xml file xD .
There are 3 main functions:
xToolBar.CreateToolbar: Creates a new toolbar container
xToolBar.AddItem: Adds an image or button object
xToolBar.Animate: Animates your toolbar (put this one in your "On Mouse Move" event).
And there are 5 different animations:
xMODESTRAIGHT = 1;
xMODEUP = 2;
xMODEDOWN = 3;
xMODESTRAIGHTUP = 4;
xMODESTRAIGHTDOWN = 5;
I don't have a help file but this is how i use it (you can create more than 1 toolbar):
And that's all. Try the other animations and let me know if you like it =) .
Put this file in your project's root folder o script's folder and in your global functions call it with "require("xToolBar")". I also add an xml file xD .
There are 3 main functions:
xToolBar.CreateToolbar: Creates a new toolbar container
xToolBar.AddItem: Adds an image or button object
xToolBar.Animate: Animates your toolbar (put this one in your "On Mouse Move" event).
And there are 5 different animations:
xMODESTRAIGHT = 1;
xMODEUP = 2;
xMODEDOWN = 3;
xMODESTRAIGHTUP = 4;
xMODESTRAIGHTDOWN = 5;
I don't have a help file but this is how i use it (you can create more than 1 toolbar):
PHP Code:
--[On Preload]
mTB = xToolBar.CreateToolbar("MyToolBar", 4, Window.GetSize(Application.GetWndHandle()).Width/2, 10, 50, 5, xMODEUP);
--I have 4 image objects
for x=1, 4 do
xToolBar.AddItem("Image"..x, mTB);
end
--[On Mouse Move]
xToolBar.Animate(e_X, e_Y, mTB);
Comment