WoWInterface SVN UltimateWarcraftBattlecryGenerator

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 48 to Rev 47
    Reverse comparison

Rev 48 → Rev 47

BattleCryGen.lua
13,7 → 13,6
local s_bcgsay1 = ""; --ally say var
local s_bcgsay2 = ""; --pond scum say var
local s_final = "";
local s_bcgevilsay = ""; --evil say var
local s_channel = ""; --Channel Name
 
UWBG_Prefs = {defchannel = "Say",
61,7 → 60,6
end;
 
 
-- BEGIN SUFFIXES LISTINGS
 
 
-- Possible Suffixes (Alliance)
234,10 → 232,6
"Fel Horde",
}
 
 
-- END SUFFIXES LISTINGS
 
 
function Show_Msg(msg)
if( DEFAULT_CHAT_FRAME ) then
DEFAULT_CHAT_FRAME:AddMessage(msg);
CHANGELOG.txt
1,10 → 1,10
The Ultimate Warcraft Battlecry Generator
====================================================
Version : 0.50
Version : 0.44
Author : Nuchaleft (NytewolfAU2k7 on Curse)
Email : nwcreations@gmail.com
Create Date : 10/07/2008 01:11:43 PM WAST (GMT+8:00)
Update : 18/07/2010 03:42 PM WAST (GMT+8:00)
Update : 26/04/2009 12:38:11 PM WAST (GMT+8:00)
====================================================
 
CHANGELOG:
BattleCryGen.toc
1,14 → 1,14
## Interface: 30300
## Interface: 30200
## Title: Ultimate Warcraft Battlecry Generator
## Author: Nuchaleft (NytewolfAU2k7 on Curse)
## Version: v00.00.50
## Version: v00.00.44
## Notes: As the title suggests, this addon can generate over 100 hilarious and random battlecries to put fear into your enemies, and to inspire courage in your allies.
## Notes-enGB: As the title suggests, this addon can generate over 100 hilarious and random battlecries to put fear into your enemies, and to inspire courage in your allies.
## eMail: nwcreations@gmail.com
## URL: http://nytesgames.webs.com/
## X-Category: Other
## X-License: GPL v2
## X-Curse-Packaged-Version: v00.00.50
## X-Curse-Packaged-Version: v00.00.44
## X-Curse-Project-Name: Ultimate Warcraft Battlecry Generator
## X-Curse-Project-ID: uwbcg
## DefaultState: Enabled
17,3 → 17,5
## SavedVariablesPerCharacter: UWBG_CharPrefs
BattleCryGen.lua
BattleCryGenFrame.xml
BattleCryGenOptions.lua
BattleCryGenOptionsFrame.xml
BattleCryGenOptionsFrame.xml New file
0,0 → 1,352
<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="BattleCryGenOptions" hidden="true" 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>
<Frame name="$parentLabel3">
<!--<FrameSkin skinid="f15d4970-d66d-444e-bb2d-1ad102c87fed" frameid="f15d4978-d66d-444e-bb2d-1ad102c87fed" />-->
<Size>
<AbsDimension x="185" y="17" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="60" y="-316" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLabel" setAllPoints="true" font="Fonts\FRIZQT__.TTF" text="Join the Horde?" justifyH="LEFT">
<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>
<CheckButton name="$parentCheckButton1">
<!--<FrameSkin skinid="f15d4970-d66d-444e-bb2d-1ad102c87fed" frameid="f15d4974-d66d-444e-bb2d-1ad102c87fed" />-->
<Size>
<AbsDimension x="32" y="32" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="22" y="-311" />
</Offset>
</Anchor>
</Anchors>
<NormalTexture file="Interface\Buttons\UI-CheckBox-Up" />
<PushedTexture file="Interface\Buttons\UI-CheckBox-Down" />
<DisabledTexture />
<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD" />
<PushedTextOffset x="0" y="0" />
<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check" />
<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled" />
</CheckButton>
<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="mebCustoms">
<!--<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>
<OnTextChanged>
ScrollingEdit_OnTextChanged(null);
</OnTextChanged>
<OnUpdate>
ScrollingEdit_OnUpdate(null);
</OnUpdate>
<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>
<Scripts>
<OnHide>if ( self.isMoving ) then
self:StopMovingOrSizing();
self.isMoving = false;
end
</OnHide>
<OnMouseDown>if ( ( ( not self.isLocked ) or ( self.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
self:StartMoving();
self.isMoving = true;
end
</OnMouseDown>
<OnMouseUp>if ( self.isMoving ) then
self:StopMovingOrSizing();
self.isMoving = false;
end
</OnMouseUp>
</Scripts>
</Frame>
</Ui>
\ No newline at end of file
Readme.txt
1,10 → 1,10
The Ultimate Warcraft Battlecry Generator
====================================================
Version : 0.50
Version : 0.44
Author : Nuchaleft (NytewolfAU2k7 on Curse)
Email : nwcreations@gmail.com
Create Date : 10/07/2008 01:11 PM WAST (GMT+8:00)
Update : 18/07/2010 03:42 PM WAST (GMT+8:00)
Update : 26/04/2009 12:55 PM WAST (GMT+8:00)
====================================================
 
INTRODUCTION:
BattleCryGenOptions.lua New file
0,0 → 1,13
-- The Ultimate Warcraft Battlecry Generator
-- ===========================================
-- Version : 0.44
-- Author : Nuchaleft (NytewolfAU2k7 on Curse)
-- Email : nwcreations@gmail.com
-- Create Date : 10/07/2008 01:11:43 PM WAST (GMT+8:00)
-- Update : 29/10/2009 11:55:00 AM WAST (GMT+8:00)
-- ===========================================
 
function btnSave_Click()
local editboxtext = (getglobal("BattleCryGenOptions".."mebCustoms".."Edit")):GetText();
DEFAULT_CHAT_FRAME:AddMessage("UWBCG Test: Save Button."..editboxtext);
end;
\ No newline at end of file