mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-14 06:13:25 -05:00
Added Info & Area buttons.
This commit is contained in:
22
Project/scripts/url_get/url_get.gml
Normal file
22
Project/scripts/url_get/url_get.gml
Normal file
@@ -0,0 +1,22 @@
|
||||
///url_get(area?)
|
||||
|
||||
var location = argument0;
|
||||
|
||||
if (check_galar(real(global.selected[dex.idno])))
|
||||
{
|
||||
var pkmn = string_lower(global.selected[dex.pokemon]);
|
||||
var url = "https://www.serebii.net/pokedex-swsh/"+pkmn+"/";
|
||||
|
||||
if (location)
|
||||
url = string_insert("/locations.shtml", url, string_length(url)+1);
|
||||
}
|
||||
else
|
||||
{
|
||||
var dexno = global.selected[dex.dexno];
|
||||
var url = "https://www.serebii.net/pokedex-sm/"+dexno+".shtml";
|
||||
|
||||
if (location)
|
||||
url = string_replace(url, "sm/", "sm/location/");
|
||||
}
|
||||
|
||||
url_open(url);
|
||||
8
Project/scripts/url_get/url_get.yy
Normal file
8
Project/scripts/url_get/url_get.yy
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "aa0cd879-2cce-411a-dd1a-10c3fd63f802",
|
||||
"modelName": "GMScript",
|
||||
"mvc": "1.0",
|
||||
"name": "url_get",
|
||||
"IsCompatibility": false,
|
||||
"IsDnD": false
|
||||
}
|
||||
Reference in New Issue
Block a user