-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
see [http://www.weizlogy.gq/tos/addon/previewguildemblem/](http://www.weizlogy.gq/tos/addon/previewguildemblem/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
PreviewGuildEmblem = {}; | ||
|
||
-- constructor. | ||
function PreviewGuildEmblem.new(self) | ||
-- initialize members. | ||
local members = {}; | ||
|
||
-- destroy. | ||
members.Destroy = function(self) | ||
end | ||
return setmetatable(members, {__index = self}); | ||
end | ||
-- set call. | ||
setmetatable(PreviewGuildEmblem, {__call = PreviewGuildEmblem.new}); | ||
|
||
-- frame initialize. | ||
function PREVIEWGUILDEMBLEM_ON_INIT(addon, frame) | ||
if (pgem.GUILDINFO_OPTION_INIT_EMBLEM == nil) then | ||
pgem.GUILDINFO_OPTION_INIT_EMBLEM = GUILDINFO_OPTION_INIT_EMBLEM; | ||
end | ||
if (pgem.AM_I_LEADER == nil) then | ||
pgem.AM_I_LEADER = AM_I_LEADER; | ||
end | ||
GUILDINFO_OPTION_INIT_EMBLEM = function(optionBox) | ||
AM_I_LEADER = function(mode) | ||
return 1; | ||
end | ||
pgem.GUILDINFO_OPTION_INIT_EMBLEM(optionBox); | ||
AM_I_LEADER = pgem.AM_I_LEADER; | ||
end | ||
|
||
if (pgem.GUILDEMBLEM_CHANGE_INIT == nil) then | ||
pgem.GUILDEMBLEM_CHANGE_INIT = GUILDEMBLEM_CHANGE_INIT; | ||
end | ||
GUILDEMBLEM_CHANGE_INIT = function(frame) | ||
pgem.GUILDEMBLEM_CHANGE_INIT(frame); | ||
local frame = ui.GetFrame('guildemblem_change') | ||
if frame ~= nil then | ||
local acceptBtn = GET_CHILD_RECURSIVELY(frame, 'acceptBtn'); | ||
acceptBtn:ShowWindow(0); | ||
end | ||
end | ||
end | ||
|
||
-- create instance. | ||
if (pgem ~= nil) then | ||
pgem:Destroy(); | ||
end | ||
pgem = PreviewGuildEmblem(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<uiframe name="previewguildemblem" x="0" y="0" width="130" height="70"> | ||
<frame title="Preview Guild Emblem" snapclient="false" snapframe="false" layout_gravity="center center"/> | ||
<option visible="false" alwaysVisible="false" closebutton="false" autoopen="false" hideable="true"/> | ||
<input hittest="false" movable="false" moveintitlebar="false" hittestframe="false"/> | ||
<layer layerlevel="0"/> | ||
<draw blend="100" drawtitlebar="false" drawframe="false"/> | ||
<controls> | ||
</controls> | ||
</uiframe> |