Skip to content

Commit

Permalink
Updates to 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Feb 18, 2021
1 parent baf3a92 commit 0900668
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 18 deletions.
4 changes: 2 additions & 2 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.3.0 [/b][/color]
[size=14pt][b]ImGi[/b][/size] [color=gray][b] version 0.3.1 [/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.3.0/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.3.0/imgi_demo_windows.zip]Demo Windows[/url] | [url=https://github.com/ericoporto/ImGi/releases/download/0.3.0/imgi_demo_linux.tar.gz]Demo Linux[/url] | [url=https://github.com/ericoporto/ImGi/archive/0.3.0.zip] Download project .zip [/url]
[url=https://github.com/ericoporto/ImGi/releases/download/0.3.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.3.1/imgi_demo_windows.zip]Demo Windows[/url] | [url=https://github.com/ericoporto/ImGi/releases/download/0.3.1/imgi_demo_linux.tar.gz]Demo Linux[/url] | [url=https://github.com/ericoporto/ImGi/archive/0.3.1.zip] Download project .zip [/url]

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

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.3.0</Version> <!-- set the module version -->
<Version>0.3.1</Version> <!-- set the module version -->
<Key>488029724</Key> <!-- set the module unique key -->
</AGSModule>
6 changes: 3 additions & 3 deletions imgi_demo/Game.agf
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
<DefaultRoomMaskResolution>1</DefaultRoomMaskResolution>
<GameExplorerEnabled>False</GameExplorerEnabled>
<Description />
<ReleaseDate>2021-02-16</ReleaseDate>
<ReleaseDate>2021-02-17</ReleaseDate>
<Genre>Adventure</Genre>
<Version>0.2.3.0</Version>
<Version>0.3.1.0</Version>
<WindowsExperienceIndex>1</WindowsExperienceIndex>
<DeveloperName>eri0o</DeveloperName>
<DeveloperURL />
Expand Down Expand Up @@ -4655,7 +4655,7 @@
<Name>ImGi</Name>
<Description>Script Module for Immediate Gui</Description>
<Author>eri0o</Author>
<Version>0.3.0</Version>
<Version>0.3.1</Version>
<Key>488029724</Key>
<IsHeader>False</IsHeader>
</Script>
Expand Down
1 change: 0 additions & 1 deletion imgi_demo/imgi.asc
Original file line number Diff line number Diff line change
Expand Up @@ -2283,7 +2283,6 @@ void r_mo_render_clips()

void r_so_render_clips()
{
global_rci = r_c_i;
//hacky way with a single overlay
_clips[0].srf = _clips[0].spr.GetDrawingSurface();
for(int i=1; i<r_c_i+1; i++)
Expand Down
2 changes: 1 addition & 1 deletion imgi_demo/imgi.ash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ImGi Module Header
//
// ImGi Version 0.3.0
// ImGi Version 0.3.1
//
// ImGi is a Immediate GUI for Adventure Game Studio!
// Create dynamic GUIs through AGS Script, rendered to screen using Overlays.
Expand Down
Binary file modified imgi_demo/room1.crm
Binary file not shown.
18 changes: 9 additions & 9 deletions imgi_demo/room2.asc
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// room script file
bool can_go_next_room;
CheckBoxState* chkbox_Clicable, chkbox_MLTA;
ImGi_Real* myFloatX, myFloatY;
ImGi_Int* myIntX, myIntY;

function room_RepExec()
{
if(chkbox_Clicable == null) chkbox_Clicable = new CheckBoxState;
if(chkbox_MLTA == null) chkbox_MLTA = new CheckBoxState;
if(myFloatX==null) myFloatX = new ImGi_Real;
if(myFloatY==null) myFloatY = new ImGi_Real;
if(myIntX==null) myIntX = new ImGi_Int;
if(myIntY==null) myIntY = new ImGi_Int;

chkbox_Clicable.state = player.Clickable;
chkbox_MLTA.state = player.MovementLinkedToAnimation;
myFloatX.value = IntToFloat(player.x);
myFloatY.value = IntToFloat(player.y);
myIntX.value = player.x;
myIntY.value = player.y;

ImGi.Begin();

Expand Down Expand Up @@ -45,17 +45,17 @@ function room_RepExec()
rows[1] = 83;
ImGi.LayoutRow(2, rows);

ImGi.Slider("player.X", myFloatX, 0.0, 320.0, 1.0, "%.0f");
ImGi.Slider("player.Y", myFloatY, 0.0, 200.0, 1.0, "%.0f");
ImGi.SliderI("player.X", myIntX, 0, 320, 1);
ImGi.SliderI("player.Y", myIntY, 0, 200, 1);

rows = new int[1];
rows[0] = 166;
ImGi.LayoutRow(1, rows);

player.Clickable = chkbox_Clicable.state;
player.MovementLinkedToAnimation = chkbox_MLTA.state;
player.x = FloatToInt(myFloatX.value);
player.y = FloatToInt(myFloatY.value);
player.x = myIntX.value;
player.y = myIntY.value;

if(ImGi.Button("Place on Walkable Area"))
{
Expand Down
Binary file modified imgi_demo/room2.crm
Binary file not shown.
Binary file modified imgi_demo/room3.crm
Binary file not shown.
Binary file modified imgi_demo/room4.crm
Binary file not shown.
Binary file modified imgi_demo/room5.crm
Binary file not shown.
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.3.0",
"version": "0.3.1",
"author": "eri0o"
}

0 comments on commit 0900668

Please sign in to comment.