You can now update counters with 'C'.

This commit is contained in:
Rodrigo Gómez Maitret
2020-06-19 14:17:06 -05:00
parent bd022b1325
commit e16899a528
8 changed files with 46 additions and 10 deletions

View File

@@ -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: