Skip to content

Commit

Permalink
fixes for 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Feb 22, 2021
1 parent 2e5639c commit d5aec7a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
17 changes: 14 additions & 3 deletions README.BBCode
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[size=14pt][b]ImGi[/b][/size] [color=gray][b] version 0.4.1 [/b][/color]
[size=14pt][b]ImGi[/b][/size] [color=gray][b] version 0.4.2 [/b][/color]
[url=https://ci.appveyor.com/project/ericoporto/imgi][img]https://ci.appveyor.com/api/projects/status/tq90vg1if9bvdyie?svg=true[/img][/url]

[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]
[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]

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

Expand Down Expand Up @@ -79,6 +79,13 @@ row = new int[2];
row[0] = 60; // set a predefined column width size per element in row
row[1] = 70; // this is the width of other column
ImGi.LayoutRow(2 /*n columns*/, row); // rows after this line have such column config[/code]

[b][tt]ImGi.LayoutBeginColumn[/tt][/b]
[b][tt]ImGi.LayoutEndColumn[/tt][/b]
[code=ags]void ImGi.LayoutBeginColumn()
void ImGi.LayoutEndColumn()[/code]
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!).

[hr]

[size=12pt][b]Window[/b][/size]
Expand Down Expand Up @@ -124,7 +131,7 @@ Popups open on top of everything, and they close if you click outside of them. C
[code=ags]ImGi_Res ImGi.BeginPanel(String name, ImGi_Opt opt = 0)
void ImGi.EndPanel()[/code]

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

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.

[b][tt]ImGi.Empty[/tt][/b]
[code=ags]void ImGi.Empty()[/code]
This control does nothing and is invisible. Use it when you don't want to place anything in cell to advance the layout.

[b][tt]ImGi.Label[/tt][/b]
[code=ags]void ImGi.Label(String label)[/code]
[img]https://raw.githubusercontent.com/ericoporto/ImGi/main/docs/images/ctrl_label.gif[/img]
Expand Down
2 changes: 1 addition & 1 deletion imgi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<Name>ImGi</Name> <!-- set the module name -->
<Description>Script Module for Immediate Gui</Description> <!-- set the module description -->
<Author>eri0o</Author> <!-- set the module author -->
<Version>0.4.1</Version> <!-- set the module version -->
<Version>0.4.2</Version> <!-- set the module version -->
<Key>488029724</Key> <!-- set the module unique key -->
</AGSModule>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"name": "ImGi",
"text": "Module for Immediate Gui, uses script Overlays to render the interface.",
"forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=58842.0",
"version": "0.4.1",
"version": "0.4.2",
"author": "eri0o"
}

0 comments on commit d5aec7a

Please sign in to comment.