CommitLog |

This commit is contained in:
SilicaAndPina 2020-08-10 10:13:19 +12:00
parent a5240df77c
commit bd80cf385a
4 changed files with 166 additions and 269 deletions

View file

@ -35,7 +35,7 @@ inv_obj = 0;
</arguments>
</action>
</event>
<event eventtype="9" enumb="69">
<event eventtype="3" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
@ -52,42 +52,29 @@ inv_obj = 0;
<arguments>
<argument>
<kind>1</kind>
<string>if(!is_open)
<string>/// Do Controller Stuff
var xx = view_xview[0]+view_wview[0]/2 - (424/2);
var yy = view_yview[0]+view_hview[0]/2 - (254/2);
if(keyboard_check_pressed(ord("E")) || gamepad_button_check_pressed(0,gp_face4))
{
inv_obj = instance_create(0,0,obj_inventory);
is_open = true;
if(!is_open)
{
inv_obj = instance_create(xx,yy,obj_inventory);
is_open = true;
}
else
{
instance_destroy(inv_obj);
is_open = false;
}
}
else
if(keyboard_check_pressed(vk_escape) || gamepad_button_check_pressed(0,gp_face2))
{
instance_destroy(inv_obj);
is_open = false;
}
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="9" enumb="27">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>if(is_open)
{
instance_destroy(inv_obj);
is_open = false;
if(is_open)
{
instance_destroy(inv_obj);
is_open = false;
}
}
</string>
</argument>