Switcharoo to Gee Emm 2.3

This commit is contained in:
Rodrigo
2021-03-01 14:01:14 -06:00
parent e947b6838f
commit 518c2d3ead
2912 changed files with 7140 additions and 82048 deletions

View File

@@ -1,25 +1,29 @@
///button_plusminus_shortcut(button, pressed?)
function button_plusminus_shortcut(argument0, argument1) {
var button = argument0;
var pressed = argument1;
var button = argument0;
var pressed = argument1;
if (instance_exists(obj_lock))
{
switch(button)
{
case but.plus: var hold = obj_lock.plus; break;
case but.minus: var hold = obj_lock.minus; break;
if (instance_exists(obj_lock))
{
switch(button)
{
case but.plus: var hold = obj_lock.plus; break;
case but.minus: var hold = obj_lock.minus; break;
default:
show_debug_message("ERROR: Wrong parameter assignment.");
return;
break;
}
default:
show_debug_message("ERROR: Wrong parameter assignment.");
return;
break;
}
hold.hover = true;
hold.pressed = pressed;
hold.hover = true;
hold.pressed = pressed;
if (pressed)
with (hold)
button_do(type);
}
if (pressed)
with (hold)
button_do(type);
}
}

View File

@@ -1,8 +1,12 @@
{
"id": "b0a1886d-571c-9ed1-098f-65abb5bf18f6",
"modelName": "GMScript",
"mvc": "1.0",
"name": "button_plusminus_shortcut",
"IsCompatibility": false,
"IsDnD": false
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Buttons",
"path": "folders/Scripts/Buttons.yy",
},
"resourceVersion": "1.0",
"name": "button_plusminus_shortcut",
"tags": [],
"resourceType": "GMScript",
}