User Tools

Site Tools



gui_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
gui_api [2018/09/07 07:45] fxfiregui_api [2018/11/23 15:03] fxfire
Line 3: Line 3:
 ====GUI API Documentation==== ====GUI API Documentation====
 You can easily build your own ingame GUI or draw custom shapes / icons / pictures through LUA.  You can easily build your own ingame GUI or draw custom shapes / icons / pictures through LUA. 
-Each rendered frame the "Gameloop.Draw" - LUA-Event is called. You need to register your LUA function for this event and then you can build your GUI in there. Example:+Each rendered frame the "Gameloop.Draw" - LUA-Event is called. You need to register your LUA function for this event and then you can build your GUI in there. 
 Simple demo code {{ ::firstaddon.zip |}} you can download and extract into your addon folder: MINIONAPP\Bots\xxxx\LuaMods\ Simple demo code {{ ::firstaddon.zip |}} you can download and extract into your addon folder: MINIONAPP\Bots\xxxx\LuaMods\
 +
 +Example:
 To get you started, let's draw a simple window with a slider, create a new .lua file, add it to your addon's module.def and put the following code into that new lua file: To get you started, let's draw a simple window with a slider, create a new .lua file, add it to your addon's module.def and put the following code into that new lua file:
 <code lua> <code lua>
Line 248: Line 251:
  
 ===Layout=== ===Layout===
-  ***''GUI:AlignTextToFramePadding( )''**+  ***''GUI:AlignFirstTextHeightToWidgets( )''**
     * If a line does not start with text but with an Icon or other GUI Element, call this before drawing the text to align the height correctly.     * If a line does not start with text but with an Icon or other GUI Element, call this before drawing the text to align the height correctly.
  
gui_api.txt · Last modified: 2023/04/21 07:34 by kali