mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-04-27 17:46:53 -05:00
55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
// Views and that.
|
|
|
|
window_set_min_width(470);
|
|
|
|
global.window_width = window_get_width();
|
|
global.window_height = window_get_height();
|
|
|
|
view_wport[0] = global.window_width;
|
|
view_hport[0] = global.window_height;
|
|
|
|
view_wview[0] = global.window_width;
|
|
view_hview[0] = global.window_height;
|
|
|
|
surface_resize(application_surface, view_wport[0], view_hport[0]);
|
|
|
|
|
|
// Slots
|
|
|
|
var spr_size = sprite_get_width(spr_slot);
|
|
|
|
for(var i=2; i*spr_size<global.window_width/2/6; i++){}
|
|
|
|
global.icon_scale = i-1;
|
|
global.box_len = spr_size*global.icon_scale;
|
|
|
|
with (obj_header)
|
|
{
|
|
image_xscale = 3.25 * global.icon_scale;
|
|
image_yscale = global.icon_scale;
|
|
|
|
x = global.window_width/4 - global.box_len*3 + global.icon_scale*3;
|
|
y = global.box_len + (global.box_len*6)*(number-1);
|
|
}
|
|
|
|
with (obj_slot)
|
|
{
|
|
image_xscale = global.icon_scale;
|
|
image_yscale = global.icon_scale;
|
|
|
|
x = global.window_width/4 - global.box_len*3 + global.box_len*slot_x;
|
|
y = global.box_header[slot_box].y+24*global.icon_scale + global.box_len*slot_y;
|
|
|
|
scroll_warp();
|
|
}
|
|
|
|
|
|
|
|
room_width = global.window_width;
|
|
room_height = global.window_height;
|
|
|
|
//
|
|
|
|
|
|
show_debug_message("Window Resized to "+string(window_get_width())+"x"+string(window_get_height())+".");
|