mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-04-05 00:15:01 -05:00
19 lines
483 B
Plaintext
19 lines
483 B
Plaintext
///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;
|
|
} |