From cf6cb8f8a086d58a9ee092c522fac5b87d75a245 Mon Sep 17 00:00:00 2001 From: konaka <> Date: Sun, 29 Mar 2026 23:14:38 +0800 Subject: [PATCH] Rename "keep weather clear" to "disable rain" --- UnitXP_SP3_Addon.lua | 7 ++++++- UnitXP_SP3_Addon.xml | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/UnitXP_SP3_Addon.lua b/UnitXP_SP3_Addon.lua index 713c79e..f305525 100755 --- a/UnitXP_SP3_Addon.lua +++ b/UnitXP_SP3_Addon.lua @@ -374,7 +374,12 @@ local function UnitXP_SP3_setShowInCombatNameplatesNearPlayer(enable) end local function UnitXP_SP3_setWeatherAlwaysClear(enable) - local test, result = pcall(UnitXP, "weatherAlwaysClear", enable); + local test, result; + if enable then + test, result = pcall(UnitXP, "weatherAlwaysClear", "disableRain"); + else + test, result = pcall(UnitXP, "weatherAlwaysClear", "enableRain"); + end if not test then if not skipUpdateMessage then diff --git a/UnitXP_SP3_Addon.xml b/UnitXP_SP3_Addon.xml index f003b7c..8a2ddfc 100644 --- a/UnitXP_SP3_Addon.xml +++ b/UnitXP_SP3_Addon.xml @@ -437,14 +437,14 @@ - getglobal(this:GetName().."Text"):SetText("Keep Weather Clear"); + getglobal(this:GetName().."Text"):SetText("Disable Rain"); UnitXP_SP3_UI_OnClick(this); xpsp3tooltip:SetOwner(this, "ANCHOR_RIGHT"); - xpsp3tooltip:SetText("This would fix FPS-drop during bad weather at the cost of losing weather particles visual"); + xpsp3tooltip:SetText("This would fix FPS-drop at the cost of losing raining particles"); xpsp3tooltip:AddLine("Toggling the switch would influence the next weather event but not the current one",1,1,1); xpsp3tooltip:Show();