User Tools

Site Tools


addons:functions:gui

Differences

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

Link to this comparison view

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>​
  
addons/functions/gui.txt · Last modified: 2017/04/22 00:10 (external edit)