diff --git a/totalRP3/Modules/Register/Characters/RegisterCharacteristics.lua b/totalRP3/Modules/Register/Characters/RegisterCharacteristics.lua index 0d2d26e02..b179638e1 100644 --- a/totalRP3/Modules/Register/Characters/RegisterCharacteristics.lua +++ b/totalRP3/Modules/Register/Characters/RegisterCharacteristics.lua @@ -1119,14 +1119,14 @@ function setEditDisplay() frame.miscIndex = frameIndex; _G[frame:GetName() .. "Icon"].IC = miscStructure.IC or TRP3_InterfaceIcons.Default; _G[frame:GetName() .. "NameField"]:SetText(miscStructure.NA or loc.CM_NAME); - -- Disabling name edition on presets + -- Disable name editing on presets if miscStructure.ID == TRP3_API.MiscInfoType.Custom then _G[frame:GetName() .. "NameField"]:Show(); - _G[frame:GetName() .. "PresetNameText"]:Hide(); + frame.PresetName:Hide(); else _G[frame:GetName() .. "NameField"]:Hide(); - _G[frame:GetName() .. "PresetNameText"]:Show(); - _G[frame:GetName() .. "PresetNameText"]:SetText(miscStructure.NA or loc.CM_NAME); + frame.PresetName:Show(); + frame.PresetName:SetText(miscStructure.NA or loc.CM_NAME); end _G[frame:GetName() .. "ValueField"]:SetText(miscStructure.VA or loc.CM_VALUE); refreshEditIcon(_G[frame:GetName() .. "Icon"]); diff --git a/totalRP3/Modules/Register/Characters/RegisterUICharacteristics.xml b/totalRP3/Modules/Register/Characters/RegisterUICharacteristics.xml index b1362ce8a..cd87e2af0 100644 --- a/totalRP3/Modules/Register/Characters/RegisterUICharacteristics.xml +++ b/totalRP3/Modules/Register/Characters/RegisterUICharacteristics.xml @@ -55,12 +55,11 @@ https://raw.githubusercontent.com/Meorawr/wow-ui-schema/main/UI.xsd"> - + -