diff --git a/Client/Save/save.html b/Client/Save/blip/save.html similarity index 100% rename from Client/Save/save.html rename to Client/Save/blip/save.html diff --git a/Client/Save/save.js b/Client/Save/blip/save.js similarity index 84% rename from Client/Save/save.js rename to Client/Save/blip/save.js index 0d57b9e3..061f62fa 100644 --- a/Client/Save/save.js +++ b/Client/Save/blip/save.js @@ -15,7 +15,7 @@ function saveData() { let blipRotation = document.getElementById("blipRotation").value; let blipDimension = document.getElementById("blipDimension").value; - mp.trigger("saveData", blipSprite, blipName, blipScale, blipColor, blipAlpha, blipDrawDistance, blipShortRange, blipRotation, blipDimension); + mp.trigger("saveBlipData", blipSprite, blipName, blipScale, blipColor, blipAlpha, blipDrawDistance, blipShortRange, blipRotation, blipDimension); } function cancelData() { diff --git a/Client/Save/style.css b/Client/Save/blip/style.css similarity index 100% rename from Client/Save/style.css rename to Client/Save/blip/style.css diff --git a/Client/Save/main.js b/Client/Save/main.js index b40e649f..e6513ee0 100644 --- a/Client/Save/main.js +++ b/Client/Save/main.js @@ -7,12 +7,12 @@ var saveBrowser; mp.events.add('saveBlip', () => { - saveBrowser = mp.browsers.new('package://Save/save.html'); + saveBrowser = mp.browsers.new('package://Save/blip/save.html'); mp.gui.chat.activate(false); mp.gui.cursor.show(true, true); }); -mp.events.add('saveData', (blipSprite, blipName, blipScale, blipColor, blipAlpha, blipDrawDistance, blipShortRange, blipRotation, blipDimension) => { +mp.events.add('saveBlipData', (blipSprite, blipName, blipScale, blipColor, blipAlpha, blipDrawDistance, blipShortRange, blipRotation, blipDimension) => { if (saveBrowser) { saveBrowser.destroy(); }