mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-09-11 03:55:24 -05:00
Screenshot button.
This commit is contained in:
@@ -10,6 +10,7 @@ switch(zone)
|
||||
break;
|
||||
|
||||
case region.mid_right:
|
||||
case region.bot_right:
|
||||
var x_start = global.window_width*0.75 + global.window_width*0.25/2;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,10 @@ switch(zone)
|
||||
case region.mid_right:
|
||||
var y_start = global.window_height * 0.7;
|
||||
break;
|
||||
|
||||
case region.bot_right:
|
||||
var y_start = global.window_height * 0.9;
|
||||
break;
|
||||
}
|
||||
|
||||
var deplacement = global.unit * percent;
|
||||
|
||||
@@ -24,4 +24,8 @@ switch(argument0)
|
||||
savedata_write(savedata_section_get(global.show_shiny)+" Count", global.selecting.idno, global.counter);
|
||||
change_add();
|
||||
break;
|
||||
|
||||
case but.image:
|
||||
make_screenshot();
|
||||
break;
|
||||
}
|
||||
@@ -46,6 +46,14 @@ switch(type)
|
||||
x_ = button_align_x(region.mid_right, -1.5);
|
||||
y_ = button_align_y(region.mid_right, 0);
|
||||
break;
|
||||
|
||||
case but.image:
|
||||
text = "IMAGE ö";
|
||||
length = 1;
|
||||
scale = global.icon_scale * 1.25;
|
||||
x_ = button_align_x(region.bot_right, 0);
|
||||
y_ = button_align_y(region.bot_right, 0);
|
||||
break;
|
||||
};
|
||||
|
||||
x = x_;
|
||||
|
||||
@@ -11,7 +11,7 @@ global.window_height = window_get_height();
|
||||
global.box_len = global.window_width/2/7;
|
||||
global.icon_scale = 2;
|
||||
|
||||
global.font = font_add_sprite_ext(spr_font,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZéÉ#-'!?():@_.% /♂♀+", true, 1);
|
||||
global.font = font_add_sprite_ext(spr_font,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZéÉ#-'!?():@_.% /♂♀+äöü", true, 1);
|
||||
|
||||
global.dex_len = array_height_2d(global.dexdata);
|
||||
|
||||
@@ -28,4 +28,4 @@ global.counter = 9999;
|
||||
|
||||
global.change = false;
|
||||
|
||||
enum region { boxes, top, mid_left, mid_right, bottom }
|
||||
enum region { boxes, top, mid_left, mid_right, bot_left, bot_right }
|
||||
Reference in New Issue
Block a user