From 995ca923c40ddc4c88200afe71ae417850a5488f Mon Sep 17 00:00:00 2001 From: shnok Date: Mon, 2 Dec 2024 23:30:03 +0800 Subject: [PATCH] chat fix, nameplate tweak, html tweak --- .../Data/UI/_Elements/Game/ChatWindow/ChatWindow.uxml | 2 +- .../Data/UI/_Elements/Game/Nameplate/Nameplate.uss | 10 +++++----- .../Scripts/UI/Game/Inventory/InventoryWindow.cs | 4 ++-- l2-unity/Assets/Scripts/UI/Game/NpcHtmlWindow.cs | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/l2-unity/Assets/Resources/Data/UI/_Elements/Game/ChatWindow/ChatWindow.uxml b/l2-unity/Assets/Resources/Data/UI/_Elements/Game/ChatWindow/ChatWindow.uxml index fe7ace303..b7e44147f 100644 --- a/l2-unity/Assets/Resources/Data/UI/_Elements/Game/ChatWindow/ChatWindow.uxml +++ b/l2-unity/Assets/Resources/Data/UI/_Elements/Game/ChatWindow/ChatWindow.uxml @@ -17,7 +17,7 @@ - diff --git a/l2-unity/Assets/Resources/Data/UI/_Elements/Game/Nameplate/Nameplate.uss b/l2-unity/Assets/Resources/Data/UI/_Elements/Game/Nameplate/Nameplate.uss index 39a20727f..862df4dd7 100644 --- a/l2-unity/Assets/Resources/Data/UI/_Elements/Game/Nameplate/Nameplate.uss +++ b/l2-unity/Assets/Resources/Data/UI/_Elements/Game/Nameplate/Nameplate.uss @@ -40,9 +40,9 @@ color: rgb(255, 255, 255); -unity-font-style: bold; font-size: 12px; - -unity-text-outline-width: 1px; + -unity-text-outline-width: 0.7px; -unity-text-outline-color: rgb(0, 0, 0); - text-shadow: 0.5px 0 1px rgb(0, 0, 0); + text-shadow: 0.3px 0.3px 1px rgb(0, 0, 0); } .nameplate .target-title { @@ -58,10 +58,10 @@ -unity-font-definition: resource('Data/UI/Assets/Font/tahoma'); color: rgb(156, 218, 144); -unity-font-style: bold; - -unity-text-outline-width: 1px; - -unity-text-outline-color: rgb(0, 0, 0); font-size: 12px; - text-shadow: 0.5px 0 1px rgb(0, 0, 0); + -unity-text-outline-width: 0.7px; + -unity-text-outline-color: rgb(0, 0, 0); + text-shadow: 0.3px 0.3px 1px rgb(0, 0, 0); } .nameplate-left { diff --git a/l2-unity/Assets/Scripts/UI/Game/Inventory/InventoryWindow.cs b/l2-unity/Assets/Scripts/UI/Game/Inventory/InventoryWindow.cs index dede3563b..c1e8064b4 100644 --- a/l2-unity/Assets/Scripts/UI/Game/Inventory/InventoryWindow.cs +++ b/l2-unity/Assets/Scripts/UI/Game/Inventory/InventoryWindow.cs @@ -357,11 +357,11 @@ public void RefreshWeight() for (int i = 1; i <= 5; i++) { - _weightBarContainer.parent.RemoveFromClassList("weight-" + i); + _weightBarContainer.RemoveFromClassList("weight-" + i); } int weightLevel = (int)Mathf.Floor(weightRatio / 0.25f) + 1; - _weightBarContainer.parent.AddToClassList("weight-" + weightLevel); + _weightBarContainer.AddToClassList("weight-" + weightLevel); float barWidth = bgWidth * weightRatio; _weightBar.style.width = barWidth; diff --git a/l2-unity/Assets/Scripts/UI/Game/NpcHtmlWindow.cs b/l2-unity/Assets/Scripts/UI/Game/NpcHtmlWindow.cs index 1ee90afdd..7c9c0984a 100644 --- a/l2-unity/Assets/Scripts/UI/Game/NpcHtmlWindow.cs +++ b/l2-unity/Assets/Scripts/UI/Game/NpcHtmlWindow.cs @@ -99,10 +99,10 @@ protected override IEnumerator BuildWindow(VisualElement root) // Quest
// // ", 0); - RefreshContent(0, -@"Server menu

QuickBox

Reload

Zones / Territories

GeoEngine

Maintenance / Development
-
- ", 0); + // RefreshContent(0, + // @"Server menu

QuickBox

Reload

Zones / Territories

GeoEngine

Maintenance / Development
+ //
+ // ", 0); // RefreshContent(0, // @"
Search
Found 93 results
//admin [1-4]Go through the different admin panels.
//buy [id]Open the GM Shop panel, or the associated BuyList.
//cameraToggle the CameraMode.
//gmlistToggle you from /gmlist results.
//gmoff [duration]Toggle off your GM status, 1min by default.
//help [page]Open this panel.
//link file nameOpen the proper admin htm.
0102030405
", 0); // RefreshContent(0,