This is a little utility I am developing for our OMMORPG project, but it can be used for so much more - it deserves its own wip thread. This is a 2D Button Layout Editor. The basic concept is the editor creates script files that can be used to load a button layout. This includes positioning of the buttons and return-values that can be assigned to buttons. Also, background images can be loaded and scripted as well.
Menu Items:
-Menu: Hover the mouse pointer over the Menu button to view the dropdown menu.
-Load Image: Loads a background image into the editor.
-Load Button: Loads a button image into the editor.
-Load Script: Loads a previously saved script.
-Save Script: Save the current layout as a script file.
-Unlock Images: Used to unlock all background images. This button only appears when any background image is locked.
Special Buttons:
-Lock: Right-click on any unlocked image to activate this button. Clicking the button will lock the image. This is usefull to paste the image to the screen so the mouse no longer will interact with the image.
-Value: Right-click on any button to activate this button. Clicking on this button will open an input box to enter an integer value to assign to the button. This value is usefull for either categorizing buttons, or simply assigning a direct return value which can be used to instruct a program what to do when the button is pressed.
Other Features:
Place the mouse pointer over an unlocked Image or a Button and press the Delete key to delete the Image or Button. There is no "Are you sure?" prompt.
The Source code requires
Goga's Free DBP Plugin 2.0 to run, but the included executable should run fine without it. There is also some free media and some test scripts included.
To use the executable, it should be placed/copied in the same folder as the media to use for buttons. The script file will only create scritps with file names, not folder locations.
Included are the project's very usefull parser functions and button functions, both of which can be used to load the script files and make/place the buttons.
Open MMORPG: It's your game!