Rename "keep weather clear" to "disable rain"
This commit is contained in:
@@ -374,7 +374,12 @@ local function UnitXP_SP3_setShowInCombatNameplatesNearPlayer(enable)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function UnitXP_SP3_setWeatherAlwaysClear(enable)
|
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 test then
|
||||||
if not skipUpdateMessage then
|
if not skipUpdateMessage then
|
||||||
|
|||||||
@@ -437,14 +437,14 @@
|
|||||||
</Anchors>
|
</Anchors>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnLoad>
|
<OnLoad>
|
||||||
getglobal(this:GetName().."Text"):SetText("Keep Weather Clear");
|
getglobal(this:GetName().."Text"):SetText("Disable Rain");
|
||||||
</OnLoad>
|
</OnLoad>
|
||||||
<OnClick>
|
<OnClick>
|
||||||
UnitXP_SP3_UI_OnClick(this);
|
UnitXP_SP3_UI_OnClick(this);
|
||||||
</OnClick>
|
</OnClick>
|
||||||
<OnEnter>
|
<OnEnter>
|
||||||
xpsp3tooltip:SetOwner(this, "ANCHOR_RIGHT");
|
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:AddLine("Toggling the switch would influence the next weather event but not the current one",1,1,1);
|
||||||
xpsp3tooltip:Show();
|
xpsp3tooltip:Show();
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
|
|||||||
Reference in New Issue
Block a user