Skip to content

Commit d5aec7a

Browse files
committed
fixes for 0.4.2
1 parent 2e5639c commit d5aec7a

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

README.BBCode

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
[size=14pt][b]ImGi[/b][/size] [color=gray][b] version 0.4.1 [/b][/color]
1+
[size=14pt][b]ImGi[/b][/size] [color=gray][b] version 0.4.2 [/b][/color]
22
[url=https://ci.appveyor.com/project/ericoporto/imgi][img]https://ci.appveyor.com/api/projects/status/tq90vg1if9bvdyie?svg=true[/img][/url]
33

4-
[url=https://github.com/ericoporto/ImGi/releases/download/0.4.1/imgi.scm]Get Latest Release [b]imgi.scm[/b][/url] | [url=https://github.com/ericoporto/ImGi]GitHub Repo[/url] | [url=https://github.com/ericoporto/ImGi/releases/download/0.4.1/imgi_demo_windows.zip]Demo Windows[/url] | [url=https://github.com/ericoporto/ImGi/releases/download/0.4.1/imgi_demo_linux.tar.gz]Demo Linux[/url] | [url=https://github.com/ericoporto/ImGi/archive/0.4.1.zip] Download project .zip [/url]
4+
[url=https://github.com/ericoporto/ImGi/releases/download/0.4.2/imgi.scm]Get Latest Release [b]imgi.scm[/b][/url] | [url=https://github.com/ericoporto/ImGi]GitHub Repo[/url] | [url=https://github.com/ericoporto/ImGi/releases/download/0.4.2/imgi_demo_windows.zip]Demo Windows[/url] | [url=https://github.com/ericoporto/ImGi/releases/download/0.4.2/imgi_demo_linux.tar.gz]Demo Linux[/url] | [url=https://github.com/ericoporto/ImGi/archive/0.4.2.zip] Download project .zip [/url]
55

66
AGS Script Module for Immediate Gui, uses script Overlays to render the interface.
77

@@ -79,6 +79,13 @@ row = new int[2];
7979
row[0] = 60; // set a predefined column width size per element in row
8080
row[1] = 70; // this is the width of other column
8181
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+
8289
[hr]
8390

8491
[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
124131
[code=ags]ImGi_Res ImGi.BeginPanel(String name, ImGi_Opt opt = 0)
125132
void ImGi.EndPanel()[/code]
126133

127-
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.
128135
[code=ags]if(ImGi.BeginPanel("Pan")){
129136
ImGi.Text("Hi panel!"); // your controls are here ...
130137
ImGi.EndPanel();
@@ -140,6 +147,10 @@ Every controls takes a string as label, this string can't be empty and can't mat
140147

141148
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.
142149

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.
153+
143154
[b][tt]ImGi.Label[/tt][/b]
144155
[code=ags]void ImGi.Label(String label)[/code]
145156
[img]https://raw.githubusercontent.com/ericoporto/ImGi/main/docs/images/ctrl_label.gif[/img]

imgi.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<Name>ImGi</Name> <!-- set the module name -->
44
<Description>Script Module for Immediate Gui</Description> <!-- set the module description -->
55
<Author>eri0o</Author> <!-- set the module author -->
6-
<Version>0.4.1</Version> <!-- set the module version -->
6+
<Version>0.4.2</Version> <!-- set the module version -->
77
<Key>488029724</Key> <!-- set the module unique key -->
88
</AGSModule>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"name": "ImGi",
44
"text": "Module for Immediate Gui, uses script Overlays to render the interface.",
55
"forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=58842.0",
6-
"version": "0.4.1",
6+
"version": "0.4.2",
77
"author": "eri0o"
88
}

0 commit comments

Comments
 (0)