mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-20 09:34:12 -05:00
Reordering a bit.
This commit is contained in:
19
Project/scripts/button_do/button_do.gml
Normal file
19
Project/scripts/button_do/button_do.gml
Normal file
@@ -0,0 +1,19 @@
|
||||
///button_do(type)
|
||||
|
||||
switch(argument0)
|
||||
{
|
||||
case but.plus:
|
||||
global.counter++;
|
||||
|
||||
savedata_write(savedata_section_get(global.show_shiny)+" Count", global.selecting.idno, global.counter);
|
||||
change_add();
|
||||
break;
|
||||
|
||||
case but.minus:
|
||||
if (global.counter > 0)
|
||||
global.counter--;
|
||||
|
||||
savedata_write(savedata_section_get(global.show_shiny)+" Count", global.selecting.idno, global.counter);
|
||||
change_add();
|
||||
break;
|
||||
}
|
||||
Reference in New Issue
Block a user