From 87a9ca1658cdc2759df25294faba114c1e131dc4 Mon Sep 17 00:00:00 2001 From: Hash Borgir Date: Tue, 30 May 2023 14:49:13 -0600 Subject: [PATCH] Bug: When saving new item in Unique Item Editor, item code is saved as 'Array' from PHP, so I need to generate an item code that hasn't been used already. tabs/UniqueItems.php, add code input field. app.js, add 'code' input field change function Fixed --- res/app.js | 4 +++- src/tabs/UniqueItems.php | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/res/app.js b/res/app.js index 36c31da..da1df04 100755 --- a/res/app.js +++ b/res/app.js @@ -186,7 +186,9 @@ $(document).ready(function () { $("input[name='index']").keyup(function () { $(".itemindex").html($(this).val()); }); - + $("input[name='code']").keyup(function () { + $(".itemcode").html("Item Code: (" + $(this).val() + ")"); + }); $('input[name="lvl"]').keyup(function () { $(".itemlvl").html("Level: " + $(this).val()); }); diff --git a/src/tabs/UniqueItems.php b/src/tabs/UniqueItems.php index e3f2ae4..55d0e48 100755 --- a/src/tabs/UniqueItems.php +++ b/src/tabs/UniqueItems.php @@ -118,6 +118,14 @@ Index: the ID pointer that is referenced by the game in TreasureClassEx.txt and CubeMain.txt, this column also contains the string-key used in the TBL files. +
+

Code

+
+ +
+ + Enter a 3 or 4 letter unique item code +