WoWInterface SVN UltimateWarcraftBattlecryGenerator

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches/fubar
    from Rev 22 to Rev 23
    Reverse comparison

Rev 22 → Rev 23

BattleCryGen.toc
20,5 → 20,5
embeds.xml
BattleCryGen.lua
BattleCryGen.xml
bcg_options.lua
bcg_core.lua
UWBCG_Options.xml
UWBCG_Options.lua
UWBCG_Options.xml New file
0,0 → 1,281
<Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!--Autogenerated by wowuides, Version=1.0.300.0, Culture=neutral, PublicKeyToken=null-->
<Frame name="UWBCG_Options" parent="UIParent" enableMouse="true">
<!--<FrameSkin skinid="8309da78-006d-4401-9d4f-cbc448d08261" frameid="047a5294-fa59-460b-83cb-0c19711baeb7" />-->
<Size>
<AbsDimension x="386" y="355" />
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="UIParent">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
<TitleRegion setAllPoints="true" />
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11" />
</BackgroundInsets>
<TileSize>
<AbsValue val="32" />
</TileSize>
<EdgeSize>
<AbsValue val="32" />
</EdgeSize>
</Backdrop>
<Frames>
<Button name="$parentButton1" text="Save &amp; Continue">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="113" y="22" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="251" y="-311" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>btnSave_Click();</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</NormalTexture>
<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</PushedTexture>
<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</DisabledTexture>
<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</HighlightTexture>
<ButtonText name="$parentText">
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
<Frame name="$parentLabel2">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508885-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="342" y="39" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="22" y="-60" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLabel" font="Fonts\FRIZQT__.TTF" text="Custom Battlecries, one per line. WoW must be restarted. before they will take effect" justifyH="LEFT">
<Anchors>
<Anchor point="TOPLEFT" />
<Anchor point="BOTTOMRIGHT" />
</Anchors>
<FontHeight>
<AbsValue val="12" />
</FontHeight>
<Color r="1" g="0.8196079" b="0" />
<Shadow>
<Color r="0" g="0" b="0" />
<Offset>
<AbsDimension x="1" y="-1" />
</Offset>
</Shadow>
</FontString>
</Layer>
</Layers>
</Frame>
<Frame name="$parentLabel1">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508885-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="304" y="33" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="38" y="-20" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLabel" font="Fonts\FRIZQT__.TTF" text="Ultimate Warcaft Battlecry Generator Options">
<Anchors>
<Anchor point="TOPLEFT" />
<Anchor point="BOTTOMRIGHT" />
</Anchors>
<FontHeight>
<AbsValue val="12" />
</FontHeight>
<Color r="1" g="0.8196079" b="0" />
<Shadow>
<Color r="0" g="0" b="0" />
<Offset>
<AbsDimension x="1" y="-1" />
</Offset>
</Shadow>
</FontString>
</Layer>
</Layers>
</Frame>
<ScrollFrame name="$parentMultilineEditBox1">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="7f06b3a2-fe45-40e8-9284-4754c6a3c9fb" />-->
<Size>
<AbsDimension x="321" y="200" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="22" y="-105" />
</Offset>
</Anchor>
</Anchors>
<Frames>
<Slider name="$parentScrollBar">
<Size>
<AbsDimension x="16" y="0" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="6" y="-16" />
</Offset>
</Anchor>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="6" y="16" />
</Offset>
</Anchor>
</Anchors>
<Frames>
<Button name="$parentScrollUpButton">
<Size>
<AbsDimension x="16" y="16" />
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" />
</Anchors>
<Scripts>
<OnClick>
local parent = self:GetParent();
parent:SetValue(parent:GetValue() - (parent:GetHeight() / 2));
PlaySound("UChatScrollButton");
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Up">
<TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75" />
</NormalTexture>
<PushedTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Down">
<TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75" />
</PushedTexture>
<DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled">
<TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75" />
</DisabledTexture>
<HighlightTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Highlight" alphaMode="ADD">
<TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75" />
</HighlightTexture>
</Button>
<Button name="$parentScrollDownButton">
<Size>
<AbsDimension x="16" y="16" />
</Size>
<Anchors>
<Anchor point="TOP" relativePoint="BOTTOM" />
</Anchors>
<Scripts>
<OnClick>
local parent = self:GetParent();
parent:SetValue(parent:GetValue() + (parent:GetHeight() / 2));
PlaySound("UChatScrollButton");
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Up">
<TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75" />
</NormalTexture>
<PushedTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Down">
<TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75" />
</PushedTexture>
<DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled">
<TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75" />
</DisabledTexture>
<HighlightTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Highlight" alphaMode="ADD">
<TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75" />
</HighlightTexture>
</Button>
</Frames>
<Scripts>
<OnValueChanged>
self:GetParent():SetVerticalScroll(value);
</OnValueChanged>
</Scripts>
<ThumbTexture name="$parentThumbTexture" file="Interface\Buttons\UI-ScrollBar-Knob">
<Size>
<AbsDimension x="16" y="24" />
</Size>
<TexCoords left="0.25" right="0.75" top="0.125" bottom="0.875" />
</ThumbTexture>
</Slider>
</Frames>
<Scripts>
<OnLoad>ScrollFrame_OnLoad(self);</OnLoad>
<OnMouseWheel>ScrollFrameTemplate_OnMouseWheel(self, delta);</OnMouseWheel>
<OnVerticalScroll>local scrollbar = getglobal(self:GetName().."ScrollBar");
scrollbar:SetValue(offset);
local min;
local max;
min, max = scrollbar:GetMinMaxValues();
if ( offset == 0 ) then
getglobal(scrollbar:GetName().."ScrollUpButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollUpButton"):Enable();
end
if ((scrollbar:GetValue() - max) == 0) then
getglobal(scrollbar:GetName().."ScrollDownButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollDownButton"):Enable();
end</OnVerticalScroll>
<OnScrollRangeChanged>ScrollFrame_OnScrollRangeChanged(self, xrange, yrange);</OnScrollRangeChanged>
</Scripts>
<ScrollChild>
<EditBox name="$parentEdit" enableMouse="true" multiLine="true">
<Size>
<AbsDimension x="321" y="200" />
</Size>
<Scripts>
<OnUpdate>
ScrollingEdit_OnUpdate(null);
</OnUpdate>
<OnTextChanged>
ScrollingEdit_OnTextChanged(null);
</OnTextChanged>
<OnCursorChanged>
ScrollingEdit_OnCursorChanged(arg1,arg2,arg3,arg4);
</OnCursorChanged>
</Scripts>
<FontString font="Fonts\ARIALN.TTF">
<FontHeight>
<AbsValue val="14" />
</FontHeight>
<Color r="1" g="1" b="1" />
<Shadow>
<Color r="0" g="0" b="0" />
<Offset>
<AbsDimension x="1" y="-1" />
</Offset>
</Shadow>
</FontString>
</EditBox>
</ScrollChild>
</ScrollFrame>
</Frames>
</Frame>
</Ui>
\ No newline at end of file
BattleCryGen.xml
63,15 → 63,48
</Layer>
</Layers>
<Frames>
<Button name="$parentButton1" text="O">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508884-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="17" y="18" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="241" y="-17" />
</Offset>
</Anchor>
</Anchors>
<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</NormalTexture>
<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</PushedTexture>
<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</DisabledTexture>
<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</HighlightTexture>
<ButtonText name="$parentText">
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
</Button>
<Frame name="$parentLabel4">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508885-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="93" y="18" />
<AbsDimension x="76" y="18" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="165" y="-17" />
<AbsDimension x="159" y="-17" />
</Offset>
</Anchor>
</Anchors>
99,7 → 132,7
<Frame name="$parentLabel3">
<!--<FrameSkin skinid="dcb143e1-a4ab-4e7c-b934-1efa40101d21" frameid="2d508885-59c2-4f83-ae10-27aaad48391b" />-->
<Size>
<AbsDimension x="62" y="18" />
<AbsDimension x="56" y="18" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
515,6 → 548,7
frmBCG_OnLoad();
 
</OnLoad>
<OnEvent>frmBCG_OnEvent();</OnEvent>
<OnHide>
if ( self.isMoving ) then
self:StopMovingOrSizing();
UWBCG_Options.lua New file
0,0 → 1,10
-- The Ultimate Warcraft Battlecry Generator
-- Version 0.11
 
-- By Nuchaleft (NytewolfAU2k7 on Curse)
-- nwcreations@gmail.com
-- 15/04/2009 02:50AM WAST (GMT+8:00)
 
function btnSave_Click()
 
end
\ No newline at end of file
BattleCryGen.lua
39,13 → 39,17
local s_final = "";
 
function frmBCG:OnEnable()
--self:RegisterEvent("ADDON_LOADED","Update")
-- self:RegisterEvent("ADDON_LOADED","Update")
end
 
function frmBCG:OnDisable()
self:UnregisterAllEvents()
end
 
function frmBCG:OnEvent()
 
end
 
function frmBCG:ShowInterface()
-- return self.db.char.showInterface
end
233,7 → 237,7
MakeOneUp("s");
SendChatMessage(s_final, param1, this.language);
elseif (string.lower(param1) == "show") then
self:Show();
this:Show();
else
btnUsage_Click();
end;
242,19 → 246,20
function btnUsage_Click()
Show_Msg("|cff6666ff Usage:\n");
Show_Msg("|cff999999 /bcg show Open Panel\n");
Show_Msg("|cff999999 /bcg options Open Options Panel\n");
Show_Msg("|cff999999 /bcg y (Yell)\n");
Show_Msg("|cff999999 /bcg s (Say)\n");
Show_Msg("|cff6666ff Enjoy the power!\n");
end
 
function frmBCG_Close()
self:Hide();
this:Hide();
UWBG_Prefs=1;
UWBG_CharPrefs=1;
end
 
function frmBCG_Open()
self:Show();
this:Show();
UWBG_Prefs=0;
UWBG_CharPrefs=0;
end
263,9 → 268,12
Show_Msg("|cff999999 Ultimate Warcraft Battlecry Generator is Loaded\n");
Show_Msg("|cff999999 Version 0.11 for WoW Patch 3.1\n");
Show_Msg("|cff6666ff Type /bcg for options\n");
end
 
 
SLASH_BCGEN1 = "/bcg";
SLASH_BCGEN2 = "/bcg2";
SlashCmdList["BCGEN"] = cmdBCG;
this:RegisterEvent("VARIABLES_LOADED")
end
 
 
 
\ No newline at end of file