From 2dd5525adff660bd5d4c25fc7033e59103652f31 Mon Sep 17 00:00:00 2001 From: Cold-Mint Date: Wed, 26 Jun 2024 23:18:50 +0800 Subject: [PATCH] =?UTF-8?q?Fixed=20an=20issue=20where=20Hotbar=20did=20not?= =?UTF-8?q?=20select=20item=20A=20by=20default,=20from=20slot=201=20to=20s?= =?UTF-8?q?lot=202,=20and=20then=20from=20slot=202.=20=E8=A7=A3=E5=86=B3Ho?= =?UTF-8?q?tbar=E6=B2=A1=E6=9C=89=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E5=B0=86=E7=89=A9=E5=93=81A=E4=BB=8E=E6=A7=BD1?= =?UTF-8?q?=E6=94=BE=E5=88=B0=E6=A7=BD2=EF=BC=8C=E5=86=8D=E4=BB=8E?= =?UTF-8?q?=E6=A7=BD2=E5=8F=96=E5=87=BA=E6=97=B6=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/itemRegs/weapons.yaml | 4 +++ locals/{slogan.csv => Slogan.csv} | 0 locals/slogan.csv.import | 6 ++-- scripts/inventory/ItemSlotNode.cs | 58 +++++++++++++++++++++---------- 4 files changed, 46 insertions(+), 22 deletions(-) rename locals/{slogan.csv => Slogan.csv} (100%) diff --git a/data/itemRegs/weapons.yaml b/data/itemRegs/weapons.yaml index a72d0f1..cae795e 100644 --- a/data/itemRegs/weapons.yaml +++ b/data/itemRegs/weapons.yaml @@ -2,6 +2,10 @@ scene_path: res://prefab/weapons/staffOfTheUndead.tscn icon_path: res://sprites/weapon/staffOfTheUndead_icon.png max_stack_value: 1 + custom_args: + - name: UniqueName + type: string + value: 爱你! - id: degraded_staff_of_the_undead scene_path: res://prefab/weapons/staffOfTheUndead.tscn diff --git a/locals/slogan.csv b/locals/Slogan.csv similarity index 100% rename from locals/slogan.csv rename to locals/Slogan.csv diff --git a/locals/slogan.csv.import b/locals/slogan.csv.import index bd9f9fb..b4b32ef 100644 --- a/locals/slogan.csv.import +++ b/locals/slogan.csv.import @@ -6,10 +6,10 @@ uid="uid://dl2r1rydlm7pa" [deps] -files=["res://locals/slogan.zh.translation", "res://locals/slogan.en.translation", "res://locals/slogan.ja.translation"] +files=["res://locals/Slogan.zh.translation", "res://locals/Slogan.en.translation", "res://locals/Slogan.ja.translation"] -source_file="res://locals/slogan.csv" -dest_files=["res://locals/slogan.zh.translation", "res://locals/slogan.en.translation", "res://locals/slogan.ja.translation"] +source_file="res://locals/Slogan.csv" +dest_files=["res://locals/Slogan.zh.translation", "res://locals/Slogan.en.translation", "res://locals/Slogan.ja.translation"] [params] diff --git a/scripts/inventory/ItemSlotNode.cs b/scripts/inventory/ItemSlotNode.cs index e527273..7dbd69c 100644 --- a/scripts/inventory/ItemSlotNode.cs +++ b/scripts/inventory/ItemSlotNode.cs @@ -40,6 +40,7 @@ public partial class ItemSlotNode : MarginContainer _quantityLabel = GetNode