mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-25 03:54:15 -05:00
Switcharoo to Gee Emm 2.3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
Reference in New Issue
Block a user