Anyone still have some of the scripts from the My Interface thread?
Silly me, I didn't save the scripts to incrementally grow/shrink a texture in responce to players health/mana changes. Anyone have those handy so I can tinker while I wait for the site?
In addition, is there any other scripts/textures that people want this weekend? This might be as good of a place as any to collect them. |
this might help abit..
<Health Sphere>
On Event: if arg1=="player" then if UnitHealthMax("player")==0 then return; end local p=UnitHealth("player")/UnitHealthMax("player")-0.05; local h = 256 * p; local t="Interface\\AddOns\\DiscordArt\\CustomTextures\\health_sphere"; DART_Height(ti, h); DART_Texture(ti, t, {0,1,1-p,1}); end On Load: this:RegisterEvent("UNIT_HEALTH"); <Mana Sphere> On Event: if arg1=="player" then if UnitManaMax("player")==0 then return; end local p=UnitMana("player")/UnitManaMax("player"); local h = 256 * p; local t="Interface\\AddOns\\DiscordArt\\CustomTextures\\mana_sphere"; DART_Height(ti, h); DART_Texture(ti, t, {0,1,1-p,1}); DART_Text(ti,UnitMana("player")); end On Load: this:RegisterEvent("UNIT_MANA"); this:RegisterEvent("UNIT_RAGE"); this:RegisterEvent("UNIT_FOCUS"); this:RegisterEvent("UNIT_ENERGY"); That's all I got :/ |
All times are GMT -6. The time now is 05:51 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI