Thread Tools Display Modes
10-22-05, 08:44 PM   #1
BlackPhoenyx
A Deviate Faerie Dragon
Join Date: Oct 2005
Posts: 15
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.
  Reply With Quote
10-23-05, 04:08 AM   #2
Arrowsom
A Kobold Labourer
Join Date: Oct 2005
Posts: 1
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 :/
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » Anyone still have some of the scripts from the My Interface thread?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off