ammo is unlimited for now.
|
Ammo is not unlimited. Its gone. No more ammo to track yay! Btw Thanks so much for including that in LiteStats, Katae!
LitePanels is working fine. I haven't shown any errors or any large cpu usage. I haven't had litestats on in beta or ptr just because I wasn't overly concerned.
Originally Posted by iTigah
And, is there a way to color a panel to be a color if in combat, and another color if out of combat?
Cheers.
|
OOC and InCombat Panels
Code:
{ name = "Tester1", --in combat show
anchor_to = "CENTER", y_off = 0, x_off = 0,
width = 100, height = 100, strata = "background",
bg_color = {0,0,0}, bg_alpha = 1,
OnLoad=function(self)
self:RegisterEvent'PLAYER_REGEN_ENABLED'
self:RegisterEvent'PLAYER_REGEN_DISABLED'
self:Hide()
end,
OnEvent=function(self) ToggleFrame(self) end
},
{ name = "Tester2", --NOT in combat show
anchor_to = "CENTER", y_off = 200, x_off = 200,
width = 100, height = 100, strata = "background",
bg_color = {0,0,0}, bg_alpha = 1,
OnLoad=function(self)
self:RegisterEvent'PLAYER_REGEN_ENABLED'
self:RegisterEvent'PLAYER_REGEN_DISABLED'
self:Show()
end,
OnEvent=function(self) ToggleFrame(self) end
},
This was me testing to move some elements when I was in combat or out. The panels "move". Can do the same thing for different color depending on combat state. Just place the panels - same width and height - in exact same place and make them different colors.