Switcharoo to Gee Emm 2.3

This commit is contained in:
Rodrigo
2021-03-01 14:01:14 -06:00
parent e947b6838f
commit 518c2d3ead
2912 changed files with 7140 additions and 82048 deletions

View File

@@ -1,56 +1,61 @@
// Views and that.
function scr_window_resize() {
// Views and that.
window_set_min_width(470);
window_set_min_width(470);
global.window_width = window_get_width();
global.window_height = window_get_height();
global.window_width = window_get_width();
global.window_height = window_get_height();
__view_set( e__VW.WPort, 0, global.window_width );
__view_set( e__VW.HPort, 0, global.window_height );
__view_set( e__VW.WPort, 0, global.window_width );
__view_set( e__VW.HPort, 0, global.window_height );
__view_set( e__VW.WView, 0, global.window_width );
__view_set( e__VW.HView, 0, global.window_height );
__view_set( e__VW.WView, 0, global.window_width );
__view_set( e__VW.HView, 0, global.window_height );
surface_resize(application_surface, __view_get( e__VW.WPort, 0 ), __view_get( e__VW.HPort, 0 ));
surface_resize(application_surface, __view_get( e__VW.WPort, 0 ), __view_get( e__VW.HPort, 0 ));
// Slots
// Slots
var spr_size = sprite_get_width(spr_slot);
var spr_size = sprite_get_width(spr_slot);
for(var i=2; i*spr_size<global.window_width/2/6; i++){}
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;
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;
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);
}
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;
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;
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();
scroll_warp();
}
unit_update();
button_update_all();
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())+".");
}
unit_update();
button_update_all();
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())+".");

View File

@@ -1,8 +1,12 @@
{
"id": "a1291661-3977-4772-8d46-299dec735170",
"modelName": "GMScript",
"mvc": "1.0",
"name": "scr_window_resize",
"IsCompatibility": false,
"IsDnD": false
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
},
"resourceVersion": "1.0",
"name": "scr_window_resize",
"tags": [],
"resourceType": "GMScript",
}