WoWInterface SVN SimpleAssist

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 24 to Rev 25
    Reverse comparison

Rev 24 → Rev 25

trunk/localization.lua
1,4 → 1,4
SASSTEXT_TITLE="Schnoggo's Simple Assist Ver. 3.31";
SASSTEXT_TITLE="Schnoggo's Simple Assist Ver. " .. GetAddOnMetadata("SimpleAssist", "Version");
SASSTEXT_OPTIONSPACING=-60; -- vertical distance between each TITLE below:
SASSTEXT_SUMMARY="Use the Key Bindings (Main Menu:Key Binding) panel to set up your keys.";
SASSTEXT_BINDING_SET_TITLE="Set Player to Assist";
42,13 → 42,13
 
 
 
BINDING_HEADER_SASS_TITLE = "Schnoggo's Simple Assist";
BINDING_HEADER_SASS_TITLE = "Simple Assist";
BINDING_NAME_SASS_LEARN = "Set Player to Assist";
BINDING_NAME_SASS_ASSIST = "Assist Learned Player";
BINDING_NAME_SASS_ASK = "Request Assistance";
 
SASSTEXT = {
WELCOME="SimpleAssist 3.31 Loaded. Type /sass to change settings.",
WELCOME="SimpleAssist " .. GetAddOnMetadata("SimpleAssist", "Version") .. " Loaded. Type /sass to change settings.",
ASSISTING="Assisting",
CLEARED="Assist Cleared",
ASSIST_SET="Assist set",
trunk/Bindings.xml
12,4 → 12,4
SimpleAssist_AskAssist();
</Binding>
 
</Bindings>
\ No newline at end of file +
trunk/SimpleAssist.xml
1,54 → 1,42
<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">
 
<Button name="SimpleAssistTabTemplate"
inherits="CharacterFrameTabButtonTemplate"
virtual="true"
>
<Scripts>
<OnClick>
PlaySound(SOUNDKIT.IG_MAINMENU_OPEN);
PanelTemplates_Tab_OnClick(self,SimpleAssistPrefsFrame);
SimpleAssist_ShowPanel(SimpleAssistPrefsFrame.selectedTab);
</OnClick>
</Scripts>
</Button>
 
 
 
<!-- InputBoxTemplate -->
<EditBox name="SimpleAssistInputBoxTemplate"
inherits="InputBoxTemplate"
<EditBox name="SimpleAssistInputBoxTemplate"
inherits="InputBoxTemplate"
virtual="true"
>
<Size>
<AbsDimension x="80" y="26"/>
</Size>
<Anchors>
<Anchor
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsCustomChatHead"
>
<Offset>
<AbsDimension x="20" y="-20"/>
</Offset>
</Anchor>
</Anchors>
</Anchors>
</EditBox>
 
 
 
<!-- Prefs page (tab) template -->
<Frame
 
 
<!-- Prefs page (tab) template -->
<Frame
name="SimpleAssistPrefsTemplate"
virtual="true"
parent="SimpleAssistPrefsFrame"
>
<Size><AbsDimension x="420" y="500"/></Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsFrame"
>
<Offset><AbsDimension x="20" y="-40"/></Offset>
57,8 → 45,8
</Frame>
 
 
 
<Frame
 
<Frame
name="SimpleAssist"
>
<Size>
71,7 → 59,7
</Offset>
</Anchor>
</Anchors>
 
 
<Scripts>
<OnLoad>
SimpleAssist_OnLoad(self);
82,18 → 70,18
</Scripts>
</Frame>
 
<MessageFrame
name="SimpleAssistAlertFrame"
insertMode="TOP"
parent="UIParent"
frameStrata="LOW"
<MessageFrame
name="SimpleAssistAlertFrame"
insertMode="TOP"
parent="UIParent"
frameStrata="LOW"
toplevel="true"
>
 
<Size>
<AbsDimension x="520" y="60"/>
</Size>
 
 
<Anchors>
<Anchor point="CENTER">
<Offset>
101,21 → 89,18
</Offset>
</Anchor>
</Anchors>
 
 
<Scripts>
</Scripts>
 
 
<FontString inherits="NumberFontNormalHuge" justifyH="CENTER"/>
</MessageFrame>
 
 
 
 
 
<Frame name="SimpleAssistPrefsFrame"
frameStrata="DIALOG"
toplevel="true"
parent="UIParent"
movable="true"
parent="SassAddonPanel"
hidden="true"
enableMouse="true"
>
129,35 → 114,28
</Offset>
</Anchor>
</Anchors>
<Backdrop
bgFile="Interface\DialogFrame\UI-DialogBox-Background"
edgeFile="Interface\DialogFrame\UI-DialogBox-Border"
tile="true"
>
 
<TileSize>
<AbsValue val="32"/>
</TileSize>
<EdgeSize>
<AbsValue val="32"/>
</EdgeSize>
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11"/>
</BackgroundInsets>
</Backdrop>
 
 
 
<Layers>
<Layer level="ARTWORK">
<FontString
name="$parent_H1"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_TITLE"
<FontString
name="$parent_H1"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_TITLE"
>
<Anchors>
<Anchor
point="LEFT"
relativePoint="TOPLEFT"
<Anchor
point="LEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsFrame"
>
<Offset>
166,79 → 144,21
</Anchor>
</Anchors>
<Color r=".2" g="1" b=".2" a="1" />
</FontString>
 
</FontString>
 
</Layer>
</Layers>
 
 
<frames>
 
 
 
<Button
name="$parentButtonClose"
inherits="OptionsButtonTemplate"
text="SASSTEXT_BUTTON_CLOSE"
id="12" >
<Size>
<AbsDimension x="160" y="24"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="SimpleAssistPrefsFrame" >
<Offset>
<AbsDimension x="-12" y="16"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>SimpleAssistPrefsFrame:Hide(self);</OnClick>
</Scripts>
</Button>
 
<Button
name="SimpleAssistPrefsFrameTab1"
inherits="SimpleAssistTabTemplate"
id="1"
text="DESCRIPTION">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset><AbsDimension x="11" y="-26"/></Offset>
</Anchor>
</Anchors>
</Button>
 
 
<Button
name="SimpleAssistPrefsFrameTab2"
inherits="SimpleAssistTabTemplate"
id="2"
text="OPTIONS">
<Anchors>
<Anchor
point="LEFT"
relativePoint="RIGHT"
relativeTo="SimpleAssistPrefsFrameTab1"
>
<Offset><AbsDimension x="-14" y="0"/></Offset>
</Anchor>
</Anchors>
</Button>
 
 
 
</frames>
<Scripts>
<OnLoad>
PanelTemplates_SetNumTabs(self,2);
SimpleAssistPrefsFrame.selectedTab=1;
PanelTemplates_UpdateTabs(self);
</OnLoad>
 
<OnMouseDown>self:StartMoving();</OnMouseDown>
<OnMouseUp>self:StopMovingOrSizing();</OnMouseUp>
<OnDragStop>self:StopMovingOrSizing();</OnDragStop>
<OnShow>SimpleAssistPrefsFrameOnShow();</OnShow>
</Scripts>
</Scripts>
</Frame>
 
 
246,34 → 166,34
 
<!-- start of content frame -->
<frame
name="SimpleAssistDescriptionPanel"
inherits="SimpleAssistPrefsTemplate"
parent="SimpleAssistPrefsFrame"
 
name="SimpleAssistDescriptionPanel"
inherits="SimpleAssistPrefsTemplate"
parent="SassAddonInfo"
 
>
 
 
<Layers>
<Layer level="ARTWORK">
 
 
<FontString
name="$parent_Text1"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
<FontString
name="$parent_Text1"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_SUMMARY"
nonspacewrap="false"
nonspacewrap="false"
maxLines="3"
>
<Size>
<AbsDimension x="400" y="110"/>
</Size>
 
 
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistDescriptionPanel"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistDescriptionPanel"
>
<Offset>
<AbsDimension x="0" y="0"/>
281,22 → 201,22
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
 
 
 
<FontString
name="$parent_H2"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_BINDING_SET_TITLE"
</FontString>
 
 
 
 
 
<FontString
name="$parent_H2"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_BINDING_SET_TITLE"
>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistDescriptionPanel"
>
<Offset>
305,25 → 225,25
</Anchor>
</Anchors>
<Color r=".2" g="1" b="1" a="1" />
</FontString>
 
 
<FontString
name="$parent_Text2"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
</FontString>
 
 
<FontString
name="$parent_Text2"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_BINDING_SET"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="400" y="99"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="$parent_H2"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="$parent_H2"
>
<Offset>
<AbsDimension x="20" y="-14"/>
331,21 → 251,21
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
 
 
<FontString
name="$parent_H3"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_BINDING_ASSIST_TITLE"
</FontString>
 
 
 
 
<FontString
name="$parent_H3"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_BINDING_ASSIST_TITLE"
>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="$parent_H2"
>
<Offset>
354,25 → 274,25
</Anchor>
</Anchors>
<Color r=".2" g="1" b="1" a="1" />
</FontString>
 
 
<FontString
name="$parent_Text3"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
</FontString>
 
 
<FontString
name="$parent_Text3"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_BINDING_ASSIST"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="400" y="99"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="$parent_H3"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="$parent_H3"
>
<Offset>
<AbsDimension x="20" y="-14"/>
380,20 → 300,20
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
 
<FontString
name="$parent_H4"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_BINDING_REQ_TITLE"
</FontString>
 
 
 
<FontString
name="$parent_H4"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_BINDING_REQ_TITLE"
>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="$parent_H3"
>
<Offset>
402,25 → 322,25
</Anchor>
</Anchors>
<Color r=".2" g="1" b="1" a="1" />
</FontString>
 
 
<FontString
name="$parent_Text4"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
</FontString>
 
 
<FontString
name="$parent_Text4"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_BINDING_REQ"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="400" y="99"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="$parent_H4"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="$parent_H4"
>
<Offset>
<AbsDimension x="20" y="-14"/>
428,12 → 348,12
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
</FontString>
 
 
 
 
 
 
 
</Layer>
</Layers>
 
442,7 → 362,7
 
<!-- buttons go here -->
 
 
 
</frames>
</frame>
 
453,29 → 373,30
 
<!-- start of content frame -->
<frame
name="SimpleAssistOptionsPanel"
inherits="SimpleAssistPrefsTemplate"
parent="SimpleAssistPrefsFrame"
 
name="SimpleAssistOptionsPanel"
inherits="SimpleAssistPrefsTemplate"
parent="SassAddonPanel"
hidden="true"
 
>
 
 
<Layers>
<Layer level="ARTWORK">
 
 
<FontString
name="SimpleAssistPrefsChatHead"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_CHAT_HEAD"
 
<FontString
name="SimpleAssistPrefsChatHead"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_CHAT_HEAD"
>
<Size>
<AbsDimension x="440" y="80"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistOptionsPanel"
>
<Offset>
484,26 → 405,26
</Anchor>
</Anchors>
<Color r=".2" g="1" b="1" a="1" />
</FontString>
 
 
 
<FontString
name="SimpleAssistPrefsTextEMOTE"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
</FontString>
 
 
 
<FontString
name="SimpleAssistPrefsTextEMOTE"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_CHAT_EMOTE"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
>
<Offset>
<AbsDimension x="60" y="-70"/>
514,22 → 435,22
</FontString>
 
 
<FontString
name="SimpleAssistPrefsTextSAY"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
<FontString
name="SimpleAssistPrefsTextSAY"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_CHAT_SAY"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
>
<Offset>
<AbsDimension x="60" y="-100"/>
538,25 → 459,25
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
 
<FontString
name="SimpleAssistPrefsTextYELL"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
 
 
<FontString
name="SimpleAssistPrefsTextYELL"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_CHAT_YELL"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
>
<Offset>
<AbsDimension x="60" y="-130"/>
565,25 → 486,25
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
 
<FontString
name="SimpleAssistPrefsTextRAID"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
 
 
<FontString
name="SimpleAssistPrefsTextRAID"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_CHAT_RAID"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
>
<Offset>
<AbsDimension x="240" y="-70"/>
592,23 → 513,23
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
<FontString
name="SimpleAssistPrefsTextPARTY"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
<FontString
name="SimpleAssistPrefsTextPARTY"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_CHAT_PARTY"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
>
<Offset>
<AbsDimension x="240" y="-100"/>
617,24 → 538,24
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
<FontString
name="SimpleAssistPrefsTextRW"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
 
<FontString
name="SimpleAssistPrefsTextRW"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_CHAT_RW"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
>
<Offset>
<AbsDimension x="240" y="-130"/>
643,24 → 564,24
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
 
<!-- custom message: -->
 
<FontString
name="SimpleAssistPrefsCustomChatHead"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_CUSTOM_CALL_HEAD"
 
 
 
<!-- custom message: -->
 
<FontString
name="SimpleAssistPrefsCustomChatHead"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_CUSTOM_CALL_HEAD"
>
<Size>
<AbsDimension x="440" y="140"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
>
<Offset>
669,73 → 590,73
</Anchor>
</Anchors>
<Color r=".2" g="1" b="1" a="1" />
</FontString>
 
<FontString
name="SimpleAssistPrefsCustomChatPlayer"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
</FontString>
 
<FontString
name="SimpleAssistPrefsCustomChatPlayer"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_CUSTOM_CALL_PLAYERNAME"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="240" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsCustomChatHead"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsCustomChatHead"
>
<Offset><AbsDimension x="88" y="-96"/></Offset>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
<FontString
name="SimpleAssistPrefsCustomChatTarget"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
 
<FontString
name="SimpleAssistPrefsCustomChatTarget"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_CUSTOM_CALL_MOBNAME"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="300" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsCustomChatPlayer"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsCustomChatPlayer"
>
<Offset><AbsDimension x="168" y="0"/></Offset>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
 
 
 
 
 
 
<!-- raid targets: -->
 
<FontString
name="SimpleAssistPrefsRaidHead"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_RTARGET_HEAD"
<FontString
name="SimpleAssistPrefsRaidHead"
inherits="GameFontNormal"
justifyH="LEFT"
text="SASSTEXT_RTARGET_HEAD"
>
<Size>
<AbsDimension x="440" y="140"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsChatHead"
>
<Offset>
744,49 → 665,49
</Anchor>
</Anchors>
<Color r=".2" g="1" b="1" a="1" />
</FontString>
 
 
 
<FontString
name="SimpleAssistPrefsTextRaid0"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
</FontString>
 
 
 
<FontString
name="SimpleAssistPrefsTextRaid0"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_RTARGET0"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsRaidHead"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsRaidHead"
>
<Offset><AbsDimension x="60" y="-100"/></Offset>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
<FontString
name="SimpleAssistPrefsTextRaid1"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
<FontString
name="SimpleAssistPrefsTextRaid1"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_RTARGET1"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid0"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid0"
>
<Offset><AbsDimension x="0" y="-20"/></Offset>
</Anchor>
794,93 → 715,93
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
<FontString
name="SimpleAssistPrefsTextRaid2"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
<FontString
name="SimpleAssistPrefsTextRaid2"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_RTARGET2"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid1"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid1"
>
<Offset><AbsDimension x="0" y="-20"/></Offset>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
<FontString
name="SimpleAssistPrefsTextRaid3"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
<FontString
name="SimpleAssistPrefsTextRaid3"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_RTARGET3"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid2"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid2"
>
<Offset><AbsDimension x="0" y="-20"/></Offset>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
<FontString
name="SimpleAssistPrefsTextRaid4"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
<FontString
name="SimpleAssistPrefsTextRaid4"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_RTARGET4"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsRaidHead"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsRaidHead"
>
<Offset><AbsDimension x="240" y="-100"/></Offset>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
<FontString
name="SimpleAssistPrefsTextRaid5"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
<FontString
name="SimpleAssistPrefsTextRaid5"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_RTARGET5"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid4"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid4"
>
<Offset><AbsDimension x="0" y="-20"/></Offset>
</Anchor>
888,69 → 809,69
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
 
<FontString
name="SimpleAssistPrefsTextRaid6"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
<FontString
name="SimpleAssistPrefsTextRaid6"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_RTARGET6"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid5"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid5"
>
<Offset><AbsDimension x="0" y="-20"/></Offset>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
<FontString
name="SimpleAssistPrefsTextRaid7"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
<FontString
name="SimpleAssistPrefsTextRaid7"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_RTARGET7"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid6"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid6"
>
<Offset><AbsDimension x="0" y="-20"/></Offset>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1" /> <!-- White Color -->
</FontString>
 
<FontString
name="SimpleAssistPrefsTextRaid8"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
 
<FontString
name="SimpleAssistPrefsTextRaid8"
inherits="GameFontNormal"
justifyV="TOP"
justifyH="LEFT"
text="SASSTEXT_RTARGET8"
nonspacewrap="false"
nonspacewrap="false"
>
<Size>
<AbsDimension x="200" y="40"/>
</Size>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid7"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid7"
>
<Offset><AbsDimension x="0" y="-20"/></Offset>
</Anchor>
960,8 → 881,8
 
 
 
 
 
 
 
</Layer>
</Layers>
 
969,15 → 890,15
<frames>
 
 
<CheckButton
name="SimpleAssistPrefsEMOTE"
<CheckButton
name="SimpleAssistPrefsEMOTE"
inherits="UICheckButtonTemplate"
id="01"
>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextEMOTE"
>
<Offset><AbsDimension x="-30" y="10"/></Offset>
989,15 → 910,15
</CheckButton>
 
 
<CheckButton
name="SimpleAssistPrefsSAY"
<CheckButton
name="SimpleAssistPrefsSAY"
inherits="UICheckButtonTemplate"
id="01"
>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextSAY"
>
<Offset><AbsDimension x="-30" y="10"/></Offset>
1008,15 → 929,15
</Scripts>
</CheckButton>
 
<CheckButton
name="SimpleAssistPrefsYELL"
<CheckButton
name="SimpleAssistPrefsYELL"
inherits="UICheckButtonTemplate"
id="01"
>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextYELL"
>
<Offset><AbsDimension x="-30" y="10"/></Offset>
1027,15 → 948,15
</Scripts>
</CheckButton>
 
<CheckButton
name="SimpleAssistPrefsRAID"
<CheckButton
name="SimpleAssistPrefsRAID"
inherits="UICheckButtonTemplate"
id="01"
>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRAID"
>
<Offset><AbsDimension x="-30" y="10"/></Offset>
1046,15 → 967,15
</Scripts>
</CheckButton>
 
<CheckButton
name="SimpleAssistPrefsPARTY"
<CheckButton
name="SimpleAssistPrefsPARTY"
inherits="UICheckButtonTemplate"
id="01"
>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextPARTY"
>
<Offset><AbsDimension x="-30" y="10"/></Offset>
1065,15 → 986,15
</Scripts>
</CheckButton>
 
<CheckButton
name="SimpleAssistPrefsRW"
<CheckButton
name="SimpleAssistPrefsRW"
inherits="UICheckButtonTemplate"
id="01"
>
<Anchors>
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRW"
>
<Offset><AbsDimension x="-30" y="10"/></Offset>
1089,13 → 1010,13
 
 
 
<EditBox name="SimpleAssistChatText1"
inherits="SimpleAssistInputBoxTemplate"
<EditBox name="SimpleAssistChatText1"
inherits="SimpleAssistInputBoxTemplate"
>
<Anchors>
<Anchor
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsCustomChatHead"
>
<Offset>
1105,17 → 1026,17
</Anchors>
<Scripts>
<OnTextChanged>SimpleAssist_GetPrefsText(); </OnTextChanged>
</Scripts>
</Scripts>
</EditBox>
 
 
<EditBox name="SimpleAssistChatText2"
inherits="SimpleAssistInputBoxTemplate"
<EditBox name="SimpleAssistChatText2"
inherits="SimpleAssistInputBoxTemplate"
>
<Anchors>
<Anchor
<Anchor
point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistChatText1"
>
<Offset>
1125,29 → 1046,29
</Anchors>
<Scripts>
<OnTextChanged>SimpleAssist_GetPrefsText(); </OnTextChanged>
</Scripts>
</Scripts>
</EditBox>
 
 
<EditBox name="SimpleAssistChatText3"
inherits="SimpleAssistInputBoxTemplate"
<EditBox name="SimpleAssistChatText3"
inherits="SimpleAssistInputBoxTemplate"
>
<Scripts>
<OnTextChanged>SimpleAssist_GetPrefsText(); </OnTextChanged>
</Scripts>
</Scripts>
</EditBox>
 
 
 
 
 
<CheckButton
name="SimpleAssist_RB0"
inherits="SendMailRadioButtonTemplate"
<CheckButton
name="SimpleAssist_RB0"
inherits="SendMailRadioButtonTemplate"
>
<Anchors>
<Anchor point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid0"
>
<Offset><AbsDimension x="-20" y="2"/></Offset>
1162,13 → 1083,13
</CheckButton>
 
 
<CheckButton
name="SimpleAssist_RB1"
inherits="SendMailRadioButtonTemplate"
<CheckButton
name="SimpleAssist_RB1"
inherits="SendMailRadioButtonTemplate"
>
<Anchors>
<Anchor point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid1"
>
<Offset><AbsDimension x="-20" y="2"/></Offset>
1183,13 → 1104,13
</CheckButton>
 
 
<CheckButton
name="SimpleAssist_RB2"
inherits="SendMailRadioButtonTemplate"
<CheckButton
name="SimpleAssist_RB2"
inherits="SendMailRadioButtonTemplate"
>
<Anchors>
<Anchor point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid2"
>
<Offset><AbsDimension x="-20" y="2"/></Offset>
1204,13 → 1125,13
</CheckButton>
 
 
<CheckButton
name="SimpleAssist_RB3"
inherits="SendMailRadioButtonTemplate"
<CheckButton
name="SimpleAssist_RB3"
inherits="SendMailRadioButtonTemplate"
>
<Anchors>
<Anchor point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid3"
>
<Offset><AbsDimension x="-20" y="2"/></Offset>
1226,13 → 1147,13
 
 
 
<CheckButton
name="SimpleAssist_RB4"
inherits="SendMailRadioButtonTemplate"
<CheckButton
name="SimpleAssist_RB4"
inherits="SendMailRadioButtonTemplate"
>
<Anchors>
<Anchor point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid4"
>
<Offset><AbsDimension x="-20" y="2"/></Offset>
1246,13 → 1167,13
</Scripts>
</CheckButton>
 
<CheckButton
name="SimpleAssist_RB5"
inherits="SendMailRadioButtonTemplate"
<CheckButton
name="SimpleAssist_RB5"
inherits="SendMailRadioButtonTemplate"
>
<Anchors>
<Anchor point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid5"
>
<Offset><AbsDimension x="-20" y="2"/></Offset>
1266,13 → 1187,13
</Scripts>
</CheckButton>
 
<CheckButton
name="SimpleAssist_RB6"
inherits="SendMailRadioButtonTemplate"
<CheckButton
name="SimpleAssist_RB6"
inherits="SendMailRadioButtonTemplate"
>
<Anchors>
<Anchor point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid6"
>
<Offset><AbsDimension x="-20" y="2"/></Offset>
1287,13 → 1208,13
</CheckButton>
 
 
<CheckButton
name="SimpleAssist_RB7"
inherits="SendMailRadioButtonTemplate"
<CheckButton
name="SimpleAssist_RB7"
inherits="SendMailRadioButtonTemplate"
>
<Anchors>
<Anchor point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid7"
>
<Offset><AbsDimension x="-20" y="2"/></Offset>
1307,13 → 1228,13
</Scripts>
</CheckButton>
 
<CheckButton
name="SimpleAssist_RB8"
inherits="SendMailRadioButtonTemplate"
<CheckButton
name="SimpleAssist_RB8"
inherits="SendMailRadioButtonTemplate"
>
<Anchors>
<Anchor point="TOPLEFT"
relativePoint="TOPLEFT"
relativePoint="TOPLEFT"
relativeTo="SimpleAssistPrefsTextRaid8"
>
<Offset><AbsDimension x="-20" y="2"/></Offset>
trunk/panel.lua New file
0,0 → 1,123
function SimpleAssist_Options_CreatePanel()
SassAddon.panel = CreateFrame( "Frame", "SassAddonPanel", UIParent );
-- Register in the Interface Addon Options GUI
-- Set the name for the Category for the Options Panel
SassAddon.panel.name = "SimpleAssist";
-- Add the panel to the Interface Options
InterfaceOptions_AddCategory(SassAddon.panel);
 
-- child panels
SassAddon.panel2 = CreateFrame( "Frame", "SassAddonInfo", UIParent );
SassAddon.panel2.name = "Information";
SassAddon.panel2.parent = SassAddon.panel.name;
InterfaceOptions_AddCategory(SassAddon.panel2);
end
 
 
 
-- GUI Handlers:
-- =============================
 
 
-- prefs:
function SimpleAssist_Options_OnClick(self)
id = self:GetID()
local buttonName=self:GetName()
SimpleAssistDefaults[buttonName] =getglobal(buttonName):GetChecked();
SimpleAssistSavedVars[buttonName] =getglobal(buttonName):GetChecked();
end
 
 
function SimpleAssist_Radio_OnClick(arg1)
SimpleAssistSavedVars["SimpleAssistRaidIcon"]=arg1;
SimpleAssistUpdateRadios();
end
 
 
-- OnShow
function SimpleAssistPrefsFrameOnShow()
 
 
-- draw the current settings:
table.foreach(SimpleAssistSavedVars,
function(k,v)
if (getglobal(k) ~= nil) then
if string.find("Text",k) then
 
else
getglobal(k):SetChecked(v);
end
 
end
end
 
);
-- fill in the text for the custom chat message:
for i = 1,3 do
local tMsgName="SimpleAssistChatText"..i;
local tMsgText= SimpleAssistSavedVars["CustomChat"][i];
if (tMsgText ~= nil) then
getglobal(tMsgName):SetText(tMsgText);
end
end
 
-- draw the radio buttons for Icon
if (SimpleAssistSavedVars["SimpleAssistRaidIcon"] == nil) then
SimpleAssistSavedVars["SimpleAssistRaidIcon"] = 0;
end
 
SimpleAssistUpdateRadios();
 
 
 
 
end
 
 
 
function SimpleAssistUpdateRadios()
i=0;
while (i<9) do
if (i==SimpleAssistSavedVars["SimpleAssistRaidIcon"]) then
getglobal("SimpleAssist_RB"..i):SetChecked(true);
else
getglobal("SimpleAssist_RB"..i):SetChecked(false);
end
i=i+1;
end
end
 
 
 
 
 
function SimpleAssist_ShowPanel(whichPanel)
 
if (SimpleAssistPrefs_CurrentPanel > 0) then
SimpleAssist_HidePanel(SimpleAssistPrefs_CurrentPanel);
end
 
 
getglobal(SimpleAssistPrefs_PanelFrames[whichPanel]):Show();
SimpleAssistPrefs_CurrentPanel=whichPanel;
end
 
 
function SimpleAssist_HidePanel(whichPanel)
getglobal(SimpleAssistPrefs_PanelFrames[whichPanel]):Hide();
SimpleAssistPrefs_CurrentPanel = 0;
end
 
 
 
function SimpleAssist_GetPrefsText()
 
SimpleAssistSavedVars["CustomChat"]={};
for i = 1,3 do
local tMsgName="SimpleAssistChatText"..i;
local tMsgText=getglobal(tMsgName):GetText();
if (tMsgText ~= nil) then
SimpleAssistSavedVars["CustomChat"][i]=tMsgText;
end
end
end
Property changes : Added: svn:executable + *
trunk/SimpleAssist.lua
9,16 → 9,18
"SimpleAssistDescriptionPanel",
"SimpleAssistOptionsPanel"
};
-- our big global object:
SassAddon = {};
SassAddon.eventframe = CreateFrame("frame", "EventFrame");
-- and register our basic events:
SassAddon.eventframe:RegisterEvent("PLAYER_ENTERING_WORLD")
SassAddon.eventframe:RegisterEvent("VARIABLES_LOADED");
 
-- self:RegisterEvent("CHAT_MSG_TEXT_EMOTE");
SassAddon.eventframe:SetScript("OnEvent", SimpleAssist_Event);
 
-- Locals:
-- =======
 
local MYADDON_NAME = "SimpleAssist";
local MYADDON_VERSION = "3.31";
local MYADDON_AUTHOR = "Schnoggo";
local MYADDON_EMAIL = "schnoggo@gmail.com";
local MYADDON_WEBSITE = "http://www.wowinterface.com/downloads/author-45553.html";
 
local myPlayerRealm=GetCVar("realmName");
local myPlayerName=UnitName("player");
local myPlayerClassText, myPlayerClassType = UnitClass("player");
49,24 → 51,18
-- Event functions
-- Onload:
function SimpleAssist_OnLoad(self)
-- self:RegisterEvent("ADDON_LOADED");
 
-- Register the slash command
-- --------------------------
SLASH_SIMPLEASSIST1 = "/sass";
SlashCmdList["SIMPLEASSIST"] = SimpleAssist_CommandLine;
 
--[[this is code]]--
 
 
 
 
-- Register the event handlers:
-- =============================
 
self:RegisterEvent("VARIABLES_LOADED");
-- self:RegisterEvent("CHAT_MSG_TEXT_EMOTE");
self:RegisterEvent("PLAYER_ENTERING_WORLD");
 
self:RegisterEvent("UPDATE_BINDINGS");
self:RegisterEvent("PLAYER_LEAVE_COMBAT");
self:RegisterEvent("PLAYER_REGEN_ENABLED");
75,6 → 71,9
myPlayerName = UnitName("player");
end
 
-- Set up the preference panel:
SimpleAssist_Options_CreatePanel();
 
DEFAULT_CHAT_FRAME:AddMessage(SASSTEXT.WELCOME, 0.5, 1.0, 0.5, 1);
 
 
204,149 → 203,14
 
end
 
-- command line parameters: (slash command handler)
function SimpleAssist_CommandLine(msg)
cmd=string.lower(msg);
 
if ( ( msg=="1") or (msg=="")) then
SimpleAssistPrefsFrame:Show();
end
 
if ( msg =="0") then
SimpleAssistPrefsFrame:Hide();
end
 
 
end
 
 
 
 
-- GUI Handlers:
-- =============================
 
 
-- prefs:
function SimpleAssist_Options_OnClick(self)
id = self:GetID()
local buttonName=self:GetName()
SimpleAssistDefaults[buttonName] =getglobal(buttonName):GetChecked();
SimpleAssistSavedVars[buttonName] =getglobal(buttonName):GetChecked();
end
 
 
function SimpleAssist_Radio_OnClick(arg1)
SimpleAssistSavedVars["SimpleAssistRaidIcon"]=arg1;
SimpleAssistUpdateRadios();
end
 
 
-- OnShow
function SimpleAssistPrefsFrameOnShow()
 
 
-- draw the current settings:
table.foreach(SimpleAssistSavedVars,
function(k,v)
if (getglobal(k) ~= nil) then
if string.find("Text",k) then
 
else
getglobal(k):SetChecked(v);
end
 
end
end
 
);
-- fill in the text for the custom chat message:
for i = 1,3 do
local tMsgName="SimpleAssistChatText"..i;
local tMsgText= SimpleAssistSavedVars["CustomChat"][i];
if (tMsgText ~= nil) then
getglobal(tMsgName):SetText(tMsgText);
end
end
 
-- draw the radio buttons for Icon
if (SimpleAssistSavedVars["SimpleAssistRaidIcon"] == nil) then
SimpleAssistSavedVars["SimpleAssistRaidIcon"] = 0;
end
 
SimpleAssistUpdateRadios();
 
-- update tabs:
if (SimpleAssistPrefs_CurrentPanel==nil) then
SimpleAssistPrefs_CurrentPanel=-1;
end
local tPanel = SimpleAssistPrefs_CurrentPanel;
SimpleAssistPrefs_CurrentPanel=-1;
SimpleAssist_HidePanel(2);
SimpleAssist_HidePanel(1);
 
if (tPanel<1) then
tPanel=1
end
SimpleAssist_ShowPanel(tPanel);
 
 
 
end
 
 
 
function SimpleAssistUpdateRadios()
i=0;
while (i<9) do
if (i==SimpleAssistSavedVars["SimpleAssistRaidIcon"]) then
getglobal("SimpleAssist_RB"..i):SetChecked(true);
else
getglobal("SimpleAssist_RB"..i):SetChecked(false);
end
i=i+1;
end
end
 
 
 
 
 
function SimpleAssist_ShowPanel(whichPanel)
 
if (SimpleAssistPrefs_CurrentPanel > 0) then
SimpleAssist_HidePanel(SimpleAssistPrefs_CurrentPanel);
end
 
 
getglobal(SimpleAssistPrefs_PanelFrames[whichPanel]):Show();
SimpleAssistPrefs_CurrentPanel=whichPanel;
end
 
 
function SimpleAssist_HidePanel(whichPanel)
getglobal(SimpleAssistPrefs_PanelFrames[whichPanel]):Hide();
SimpleAssistPrefs_CurrentPanel = 0;
end
 
 
 
function SimpleAssist_GetPrefsText()
 
SimpleAssistSavedVars["CustomChat"]={};
for i = 1,3 do
local tMsgName="SimpleAssistChatText"..i;
local tMsgText=getglobal(tMsgName):GetText();
if (tMsgText ~= nil) then
SimpleAssistSavedVars["CustomChat"][i]=tMsgText;
end
end
end
 
 
 
 
 
 
-- In Game Functions:
 
function SimpleAssist_LearnAssist(unit)
trunk/SimpleAssist.toc
1,11 → 1,11
## Interface: 80300
## X-Min-Interface: 70300
## Interface: 90002
## Title: SimpleAssist
## Notes: Replace the common /assist macro
## Version: 3.31
## Version: 4.00
## Author: Schnoggo
## Dependencies:
## SavedVariables: SimpleAssistSavedVars
localization.lua
SimpleAssist.lua
panel.lua
SimpleAssist.xml