Hisui Dex loads.

This commit is contained in:
Rodrigo Gómez Maitret
2022-02-03 22:18:05 -06:00
parent 449adf9af2
commit c49dfb2fc3
7 changed files with 70 additions and 45 deletions

View File

@@ -61,6 +61,7 @@ function button_set(argument0, argument1, argument2) {
case shw.national: text="NATIONAL"; break;
case shw.galar: text="GALAR"; break;
case shw.armor: text="ARMOR"; break;
case shw.hisui: text="HISUI"; break;
}
scale = global.icon_scale * 0.75;

View File

@@ -0,0 +1,4 @@
function dex_hisui_load() {
//if (global.show_hisui)
global.hisuidata = csv_load("hisuidex");
}

View File

@@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
},
"resourceVersion": "1.0",
"name": "dex_hisui_load",
"tags": [],
"resourceType": "GMScript",
}

View File

@@ -4,7 +4,7 @@ function initials_set() {
enum region { boxes, top, mid_left, mid_right, bot_left, bot_right,
_0, _25, _50, _75, _100 };
enum shw { national, galar, armor, LENGTH};
enum shw { national, galar, armor, hisui, LENGTH};
global.window_width = window_get_width();
global.window_height = window_get_height();

View File

@@ -25,6 +25,12 @@ function show_check() {
if (nat == global.armordata[i, gdex.dexno])
return true;
break;
case shw.hisui:
for (var i=1; i<array_height_2d(global.hisuidata); i++)
if (nat == global.hisuidata[i, gdex.dexno])
return true;
break;
}
return false;