WoWInterface SVN RuneWatch

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 9 to Rev 10
    Reverse comparison

Rev 9 → Rev 10

Artwork/UI-RuneWatch-Frame.tga Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
Artwork/UI-RuneWatch-Bar.tga Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:mime-type + application/octet-stream
RuneWatch.lua
14,6 → 14,11
iconTextures[RUNETYPE_FROST] = "Interface\\PlayerFrame\\UI-PlayerFrame-Deathknight-Frost";
iconTextures[RUNETYPE_CHROMATIC] = "Interface\\PlayerFrame\\UI-PlayerFrame-Deathknight-Death";
 
local artTextures = {
Frame = "Interface\\AddOns\\RuneWatch\\Artwork\\UI-RuneWatch-Frame",
Bar = "Interface\\AddOns\\RuneWatch\\Artwork\\UI-RuneWatch-Bar"
};
 
function RuneWatch:OnInitialize()
 
self.dbase = LibStub("AceDB-3.0"):New("RuneWatchDB");
30,6 → 35,7
 
self:RegisterEvent("RUNE_POWER_UPDATE")
self:RegisterEvent("RUNE_TYPE_UPDATE")
self:RegisterEvent("UNIT_RUNIC_POWER")
 
self:GuiUpdate();
--end
76,6 → 82,14
self:Button_Update(rune);
end
 
function RuneWatch:UNIT_RUNIC_POWER(event, ...)
local unit = ...;
 
if (unit == "player") then
self.Gui.Runic:SetText(UnitMana("player"))
end
end
 
function RuneWatch:InitGui()
self.Gui = { Runes = {} }
 
88,20 → 102,36
self.Gui.Anchor:Show();
 
 
local t = self.Gui.Anchor:CreateFontString("$parent_Timer", "OVERLAY", "SystemFont_Shadow_Huge1");
--t:SetFont("Fonts\FRIZQT__.TTF", 26);
t:SetTextColor(1,0.5,0,1);
 
-- Set Data
t:SetText("000");
t:SetPoint("CENTER", self.Gui.Anchor, "CENTER", 0, -20)
t:SetWidth(50);
t:SetHeight(50);
t:SetJustifyH("CENTER");
t:SetJustifyV("MIDDLE");
 
t:Show();
 
self.Gui.Runic = t;
 
self:InitArt();
 
for i = 1,6 do
self.Gui.Runes[i] = self:InitRune(i);
end
 
self.Gui.Runes[3]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", -32, 0);
self.Gui.Runes[4]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", 32, 0);
self.Gui.Runes[3]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", -24, 40);
self.Gui.Runes[4]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", 24, 40);
 
self.Gui.Runes[2]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", -64, 16);
self.Gui.Runes[5]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", 64, 16);
self.Gui.Runes[2]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", -64, 22);
self.Gui.Runes[5]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", 64, 22);
 
self.Gui.Runes[1]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", (-64 - 32), 32);
self.Gui.Runes[6]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", (64 + 32), 32);
self.Gui.Runes[1]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", (-64 - 32), -8);
self.Gui.Runes[6]:SetPoint("CENTER", self.Gui.Anchor, "CENTER", (64 + 32), -8);
 
local dragFrame = CreateFrame("frame", "$_Drag", self.Gui.Anchor);
dragFrame:SetWidth( (32*3+16) * 2 );
150,6 → 180,27
self:GuiUpdate();
end
 
function RuneWatch:InitArt()
local frame = self.Gui.Anchor;
 
local artBase = frame:CreateTexture("$parent_Art_Frame", "BACKGROUND");
local artBar = frame:CreateTexture("$parent_Art_Bar", "BACKGROUND");
 
artBase:SetPoint("CENTER", frame, "CENTER");
artBase:SetTexture(artTextures.Frame);
--artBase:SetTexture(1,0,0);
artBase:SetWidth(300);
artBase:SetHeight(150);
 
artBase:Show();
 
self.Gui.Art = {};
self.Gui.Art.Base = artBase;
self.Gui.Art.Bar = artBar;
 
self:Print("Initialized Art...")
end
 
function RuneWatch:InitBackBlocks()
local frame = self.Gui.Anchor;