mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-14 06:13:25 -05:00
Working button toggles.
This commit is contained in:
@@ -21,6 +21,10 @@ switch(zone)
|
||||
case region.bot_right:
|
||||
var y_start = global.window_height * 0.9;
|
||||
break;
|
||||
|
||||
case region._100:
|
||||
var y_start = global.window_height;
|
||||
break;
|
||||
}
|
||||
|
||||
return y_start + deplacement + __view_get(e__VW.YView, 0);
|
||||
@@ -0,0 +1,7 @@
|
||||
///button_create_persistents()
|
||||
|
||||
button_create(0, 0, but.image);
|
||||
button_create(0, 0, but.national);
|
||||
button_create(0, 0, but.shiny);
|
||||
|
||||
button_update_all();
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "aa47343b-06e8-c5c7-5f42-7551e6b2c23f",
|
||||
"modelName": "GMScript",
|
||||
"mvc": "1.0",
|
||||
"name": "button_create_persistents",
|
||||
"IsCompatibility": false,
|
||||
"IsDnD": false
|
||||
}
|
||||
@@ -28,4 +28,12 @@ switch(argument0)
|
||||
case but.image:
|
||||
make_screenshot();
|
||||
break;
|
||||
|
||||
case but.national:
|
||||
show_galar_toggle();
|
||||
break;
|
||||
|
||||
case but.shiny:
|
||||
show_shiny_toggle();
|
||||
break;
|
||||
}
|
||||
@@ -7,7 +7,7 @@ type = argument2;
|
||||
image_index = src.black;
|
||||
image_speed = 0;
|
||||
|
||||
length = 0.25;
|
||||
length = 1;
|
||||
scale = global.icon_scale;
|
||||
textsize = 1.5;
|
||||
color = c_white;
|
||||
@@ -18,7 +18,6 @@ switch(type)
|
||||
{
|
||||
case but.info:
|
||||
text = "INFO";
|
||||
length = 1;
|
||||
scale = global.icon_scale * 1.25;
|
||||
x_ = button_align_x(region.mid_left, 0);
|
||||
y_ = button_align_y(region.mid_left, -0.7);
|
||||
@@ -26,7 +25,6 @@ switch(type)
|
||||
|
||||
case but.area:
|
||||
text = "AREA";
|
||||
length = 1;
|
||||
scale = global.icon_scale * 1.25;
|
||||
x_ = button_align_x(region.mid_left, 0);
|
||||
y_ = button_align_y(region.mid_left, 0.7);
|
||||
@@ -35,6 +33,7 @@ switch(type)
|
||||
case but.plus:
|
||||
text = "+";
|
||||
scale = global.icon_scale * 1.5;
|
||||
length = 0.25;
|
||||
textsize = 2;
|
||||
x_ = button_align_x(region.mid_right, 1.5);
|
||||
y_ = button_align_y(region.mid_right, 0);
|
||||
@@ -42,6 +41,7 @@ switch(type)
|
||||
|
||||
case but.minus:
|
||||
text = "-";
|
||||
length = 0.25;
|
||||
textsize = 2;
|
||||
x_ = button_align_x(region.mid_right, -1.5);
|
||||
y_ = button_align_y(region.mid_right, 0);
|
||||
@@ -49,11 +49,30 @@ switch(type)
|
||||
|
||||
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;
|
||||
|
||||
case but.national:
|
||||
if (!global.show_galar)
|
||||
text = "NATIONAL";
|
||||
else
|
||||
text = "GALAR";
|
||||
scale = global.icon_scale * 0.75;
|
||||
x_ = button_align_x(region.bot_left, -1.25);
|
||||
y_ = button_align_y(region._100, -0.5);
|
||||
break;
|
||||
|
||||
case but.shiny:
|
||||
if (!global.show_shiny)
|
||||
text = "REGULAR";
|
||||
else
|
||||
text = "SHINY";
|
||||
scale = global.icon_scale * 0.75;
|
||||
x_ = button_align_x(region.bot_left, 1.25);
|
||||
y_ = button_align_y(region._100, -0.5);
|
||||
break;
|
||||
};
|
||||
|
||||
x = x_;
|
||||
|
||||
Reference in New Issue
Block a user