mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-19 17:14:04 -05:00
You can now update counters with 'C'.
This commit is contained in:
@@ -12,19 +12,13 @@ switch(argument0)
|
||||
|
||||
case but.plus:
|
||||
global.counter++;
|
||||
|
||||
global.countdata[global.selecting.idno] = global.counter;
|
||||
savedata_write(savedata_section_get(global.show_shiny)+" Count", global.selecting.idno, global.counter);
|
||||
change_add();
|
||||
counter_update();
|
||||
break;
|
||||
|
||||
case but.minus:
|
||||
if (global.counter > 0)
|
||||
global.counter--;
|
||||
|
||||
global.countdata[global.selecting.idno] = global.counter;
|
||||
savedata_write(savedata_section_get(global.show_shiny)+" Count", global.selecting.idno, global.counter);
|
||||
change_add();
|
||||
counter_update();
|
||||
break;
|
||||
|
||||
case but.image:
|
||||
|
||||
2
Project/scripts/counter_set/counter_set.gml
Normal file
2
Project/scripts/counter_set/counter_set.gml
Normal file
@@ -0,0 +1,2 @@
|
||||
global.counter = get_string("Set Counter:", global.counter);
|
||||
counter_update();
|
||||
8
Project/scripts/counter_set/counter_set.yy
Normal file
8
Project/scripts/counter_set/counter_set.yy
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "f1e445e1-be26-e33a-7ab0-ce20a37f3677",
|
||||
"modelName": "GMScript",
|
||||
"mvc": "1.0",
|
||||
"name": "counter_set",
|
||||
"IsCompatibility": false,
|
||||
"IsDnD": false
|
||||
}
|
||||
3
Project/scripts/counter_update/counter_update.gml
Normal file
3
Project/scripts/counter_update/counter_update.gml
Normal file
@@ -0,0 +1,3 @@
|
||||
global.countdata[global.selecting.idno] = global.counter;
|
||||
savedata_write(savedata_section_get(global.show_shiny)+" Count", global.selecting.idno, global.counter);
|
||||
change_add();
|
||||
8
Project/scripts/counter_update/counter_update.yy
Normal file
8
Project/scripts/counter_update/counter_update.yy
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "eb71b0d2-5a4d-719e-167d-6e8e811f2d65",
|
||||
"modelName": "GMScript",
|
||||
"mvc": "1.0",
|
||||
"name": "counter_update",
|
||||
"IsCompatibility": false,
|
||||
"IsDnD": false
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
if (keyboard_check_pressed(ord("G"))) show_dex_toggle();
|
||||
else if (keyboard_check_pressed(ord("I"))) make_screenshot();
|
||||
else if (keyboard_check_pressed(ord("S"))) show_shiny_toggle();
|
||||
else if (keyboard_check_pressed(ord("C"))) counter_set();
|
||||
|
||||
// Plus and Minus
|
||||
var key_plus = 107;
|
||||
|
||||
Reference in New Issue
Block a user