You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AGS Script Module for Immediate Gui, uses script Overlays to render the interface.
7
7
@@ -79,6 +79,13 @@ row = new int[2];
79
79
row[0] = 60; // set a predefined column width size per element in row
80
80
row[1] = 70; // this is the width of other column
81
81
ImGi.LayoutRow(2 /*n columns*/, row); // rows after this line have such column config[/code]
82
+
83
+
[b][tt]ImGi.LayoutBeginColumn[/tt][/b]
84
+
[b][tt]ImGi.LayoutEndColumn[/tt][/b]
85
+
[code=ags]void ImGi.LayoutBeginColumn()
86
+
void ImGi.LayoutEndColumn()[/code]
87
+
Allows subdividing a cell in a row in more rows and columns. You start the column with ImGi.LayoutBeginColumn(), and it's void, so ALWAYS call LayoutEndColumn() after (you don't check it's return value because it's void!).
88
+
82
89
[hr]
83
90
84
91
[size=12pt][b]Window[/b][/size]
@@ -124,7 +131,7 @@ Popups open on top of everything, and they close if you click outside of them. C
If you need a scrollable area inside a window that is not the window itself, you can use panels! A panel has to be inside of a window, it will use the LayoutRow cell size for it's size. If it returns successful, you have to call EndPanel() after.
134
+
If you need a scrollable area inside a window that is not the window itself, you can use panels! A panel has to be inside of a window, it will use the LayoutRow cell size for it's size. If it returns successful, you have to call EndPanel() after.
128
135
[code=ags]if(ImGi.BeginPanel("Pan")){
129
136
ImGi.Text("Hi panel!"); // your controls are here ...
130
137
ImGi.EndPanel();
@@ -140,6 +147,10 @@ Every controls takes a string as label, this string can't be empty and can't mat
140
147
141
148
ImGi comes with a limited number of icons, whenever you can provide an icon as a parameter, you can alternatively pass a sprite number, and in this case it will use that sprite instead of the icon. The default icons use negative numbers, so they don't conflict with your sprite ID.
142
149
150
+
[b][tt]ImGi.Empty[/tt][/b]
151
+
[code=ags]void ImGi.Empty()[/code]
152
+
This control does nothing and is invisible. Use it when you don't want to place anything in cell to advance the layout.
0 commit comments