fixt: skins module for consistent UI element styling

This commit is contained in:
Bluewhale1337
2026-07-25 17:13:03 +02:00
parent 47422f7b3a
commit ea60576e85
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -244,6 +244,7 @@ function S:HandleNextPrevButton(btn, useVertical, inverseDirection)
end end
function S:HandleRotateButton(btn) function S:HandleRotateButton(btn)
if not btn then return end
E:SetTemplate(btn, "Default") E:SetTemplate(btn, "Default")
E:Size(btn, btn:GetWidth() - 14, btn:GetHeight() - 14) E:Size(btn, btn:GetWidth() - 14, btn:GetHeight() - 14)
+1 -1
View File
@@ -15,7 +15,7 @@
- **Fix:** Wrapped `SetParent` in `pcall` within `CreateBackdrop` to prevent crashes on non-UI object dummy tables. - **Fix:** Wrapped `SetParent` in `pcall` within `CreateBackdrop` to prevent crashes on non-UI object dummy tables.
- **Fix:** Added graceful `nil` fallbacks to `E:Point`, `E:Size`, `E:Width`, and `E:Height` layout anchors, immunizing the UI against crashes when Turtle WoW or other addons delete elements. - **Fix:** Added graceful `nil` fallbacks to `E:Point`, `E:Size`, `E:Width`, and `E:Height` layout anchors, immunizing the UI against crashes when Turtle WoW or other addons delete elements.
- **Fix:** Rewrote `Misc.lua` options skinning loops using `pairs()` to resolve Lua 5.0 `attempt to call a nil value` crashes caused by missing options tabs/sliders/checkboxes. - **Fix:** Rewrote `Misc.lua` options skinning loops using `pairs()` to resolve Lua 5.0 `attempt to call a nil value` crashes caused by missing options tabs/sliders/checkboxes.
- **Fix:** Added element existence checks in `Skins.lua` `HandleButton` to skip skinning gracefully instead of crashing on `nil`. - **Fix:** Added element existence checks in `Skins.lua` `HandleButton` and `HandleRotateButton` to skip skinning gracefully instead of crashing on `nil`.
This is the backported version of ElvUI for World of Warcraft - Vanilla (1.12.1) This is the backported version of ElvUI for World of Warcraft - Vanilla (1.12.1)
<br /> <br />