This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
addons:functions:gui [2017/04/21 22:03] atom0s |
addons:functions:gui [2017/04/21 22:05] atom0s |
||
---|---|---|---|
Line 15: | Line 15: | ||
You can do this by adding the following line of code to the top of your addon:\\ | You can do this by adding the following line of code to the top of your addon:\\ | ||
<code lua>require 'imguidef'</code> | <code lua>require 'imguidef'</code> | ||
+ | |||
+ | By including this helper file, this also exposes these GUI functions via a global 'imgui'. Instead of having to use 'ashita.gui.' before every call, instead you just need to use 'imgui.' instead. For example:\\ | ||
+ | <code lua> | ||
+ | -- before | ||
+ | local hide = ashita.gui.GetHide(); | ||
+ | |||
+ | -- after | ||
+ | local hide = imgui.GetHide(); | ||
+ | </code> | ||
</WRAP> | </WRAP> | ||