mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-25 20:14:21 -05:00
Reordering a bit.
This commit is contained in:
29
Project/scripts/icon_path_get/icon_path_get.gml
Normal file
29
Project/scripts/icon_path_get/icon_path_get.gml
Normal file
@@ -0,0 +1,29 @@
|
||||
///icon_path_get(str[pkmn+form], shiny?)
|
||||
|
||||
var str = argument0;
|
||||
var shiny = argument1;
|
||||
|
||||
if (!shiny)
|
||||
var folder = "Regular";
|
||||
else
|
||||
var folder = "Shiny";
|
||||
|
||||
var filename = "Icons\\"+folder+"\\"+string(str)+".png";
|
||||
|
||||
if (!file_exists(filename))
|
||||
{
|
||||
if (!directory_exists("Logs"))
|
||||
directory_create("Logs")
|
||||
|
||||
var log = file_text_open_append(working_directory+"/Logs/MissingSprites.log")
|
||||
file_text_write_string(log, str+" ("+folder+")");
|
||||
file_text_writeln(log);
|
||||
file_text_close(log);
|
||||
|
||||
//show_debug_message("Missing Icon: "+str+" ("+folder+")");
|
||||
|
||||
if (shiny)
|
||||
return icon_path_get(str, false);
|
||||
}
|
||||
|
||||
return filename;
|
||||
8
Project/scripts/icon_path_get/icon_path_get.yy
Normal file
8
Project/scripts/icon_path_get/icon_path_get.yy
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "961739d9-bcef-9d3d-a9a7-6d0487191e8e",
|
||||
"modelName": "GMScript",
|
||||
"mvc": "1.0",
|
||||
"name": "icon_path_get",
|
||||
"IsCompatibility": false,
|
||||
"IsDnD": false
|
||||
}
|
||||
Reference in New Issue
Block a user