WoWInterface SVN StopTradeSpam

Compare Revisions

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

Rev 16 → Rev 23

StopTradeSpam_Options/StopTradeSpam_Options.xml New file
0,0 → 1,60
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<Frame name="STSO_Panel">
<Scripts>
<OnLoad>
STSO_Load(self)
</OnLoad>
<OnShow>
STSO_Show(self)
</OnShow>
</Scripts>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="StopTradeSpam">
<Anchors>
<Anchor point="TOP" />
<!-- <Offset>
<AbsDimension x="10" y="-50" />
</Offset>
</Anchor>-->
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
 
<Frame name="$parent_white" parent="STSO_Panel">
<Scripts>
<OnLoad>
STSO_Load(self)
</OnLoad>
<OnShow>
STSO_Show(self)
</OnShow>
</Scripts>
</Frame>
 
<Frame name="$parent_black" parent="STSO_Panel">
<Scripts>
<OnLoad>
STSO_Load(self)
</OnLoad>
<OnShow>
STSO_Show(self)
</OnShow>
</Scripts>
</Frame>
 
<Frame name="$parent_ignore" parent="STSO_Panel">
<Scripts>
<OnLoad>
STSO_Load(self)
</OnLoad>
<OnShow>
STSO_Show(self)
</OnShow>
</Scripts>
</Frame>
 
</Ui>
StopTradeSpam_Options/StopTradeSpam_Options.lua
15,6 → 15,25
--function STS_GetNumIgnore()
local version = 0.1
local lang = "enUS"
local pname = {
["STSO_Panel"] = "StopTradeSpam",
["STSO_Panel_white"] = "Whitelist",
["STSO_Panel_black"] = "Blacklist",
["STSO_Panel_ignore"] = "Trade-Ignorelist",
}
function STSO_Load(self)
self.name = pname[self:GetName()]
self.okay = STSO_Okay
self.cancel = STSO_Cancel
self.default = STSO_Default
if self:GetName() ~= "STSO_Panel" then
self.parent = pname["STSO_Panel"]
end
InterfaceOptions_AddCategory(self)
end
function STSO_Show(self)
 
end
function STSO_Okay(self)
print(self:GetName().." Save your settings")
end
24,15 → 43,15
function STSO_Default(self)
print("Return to defaults.")
end
 
local panel = CreateFrame("Frame", "STSPanel", UIParent)
--[[
local panel = CreateFrame("Frame", "STSO_Panel", UIParent)
panel.name = "StopTradeSpam"
panel.okay = STSO_Okay
panel.cancel = STSO_Cancel
panel.default = STSO_Default
InterfaceOptions_AddCategory(panel);
 
panel = CreateFrame("Frame", "STSPanel_white", STSPanel)
panel = CreateFrame("Frame", "STSO_Panel_white", STSO_Panel)
panel.parent = "StopTradeSpam"
panel.name = "Whitelist"
panel.okay = STSO_Okay
40,7 → 59,7
panel.default = STSO_Default
InterfaceOptions_AddCategory(panel);
 
panel = CreateFrame("Frame", "STSPanel_black", STSPanel)
panel = CreateFrame("Frame", "STSO_Panel_black", STSO_Panel)
panel.parent = "StopTradeSpam"
panel.name = "Blacklist"
panel.okay = STSO_Okay
48,14 → 67,14
panel.default = STSO_Default
InterfaceOptions_AddCategory(panel);
 
panel = CreateFrame("Frame", "STSPanel_ignore", STSPanel)
panel = CreateFrame("Frame", "STSO_Panel_ignore", STSO_Panel)
panel.parent = "StopTradeSpam"
panel.name = "Trade-Ignorelist"
panel.okay = STSO_Okay
panel.cancel = STSO_Cancel
panel.default = STSO_Default
InterfaceOptions_AddCategory(panel);
 
--]]
--[[
function STSO_ButtonClick()
DEFAULT_CHAT_FRAME:AddMessage(STSO_EditBox:GetText())
StopTradeSpam_Options/StopTradeSpam_Options.toc
9,4 → 9,5
## eMail: zam@abwesend.de
## DefaultState: Enabled
 
StopTradeSpam_Options.lua
\ No newline at end of file +StopTradeSpam_Options.lua +StopTradeSpam_Options.xml