vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<Ui>
        <Script file="tradeDispenser_Settings.lua"/>
        
        
        <!-- ####################################  MAIN DROPDOWN-CLASS: Label, titlefield, DropDownButton ####################  -->

        <Button name="tDChannelBtnTemp"  inherits="UIPanelButtonGrayTemplate" virtual="true">
                <Size>  <AbsDimension x="123" y="17"/>  </Size>
                <Scripts>
                        <OnLoad>
                                this:SetFrameLevel(this:GetParent():GetParent():GetFrameLevel()+4);
                        </OnLoad>
                        <OnClick>
                                tD_CharDatas.ChannelID=this:GetID();
                                tradeDispenser_ChannelUpdate();
                                this:GetParent():Hide();
                                tradeDispenserPlaySound(this)
                        </OnClick>                                              
                </Scripts>
        </Button>
        

        <Frame name="tDChannelDDTemp" virtual="true">
                <Size>  <AbsDimension x="155" y="25"/>  </Size>
                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                        <BackgroundInsets>
                                <AbsInset left="0" right="0" top="0" bottom="0"/>
                        </BackgroundInsets>
                        <TileSize><AbsValue val="2"/></TileSize>
                        <EdgeSize><AbsValue val="0"/></EdgeSize>
                </Backdrop>     
                <Layers>
                        <Layer level="ARTWORK">         <!-- TITLE -->
                                <FontString name="$parentLbL" inherits="GameFontNormalSmall" text="Channel:">
                                        <Anchors>
                                                <Anchor point="LEFT">
                                                        <Offset><AbsDimension x="0" y="3"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Frames>
                        <Button name="$parent_DDbtn">
                                <Size><AbsDimension x="24" y="24"/></Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT">
                                                <Offset><AbsDimension x="0" y="2"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                PlaySound("MINIMAPCLOSE")
                                                local f=getglobal(this:GetParent():GetName().."DDframe");
                                                if (f:IsShown()) then   f:Hide();       else            f:Show();               end
                                        </OnClick>
                                </Scripts>
                                <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up"></NormalTexture>
                                <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down"></PushedTexture>
                                <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"></HighlightTexture>
                        </Button>
                        <Frame name="$parentDDTitle" hidden="false">
                                <Size><AbsDimension x="102" y="22"/></Size>
                                <Anchors>
                                        <Anchor point="RIGHT" relativeTo="$parent_DDbtn" relativePoint="RIGHT">
                                                <Offset><AbsDimension x="-1" y="0"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <BackgroundInsets>
                                                <AbsInset left="2" right="2" top="2" bottom="2" />
                                        </BackgroundInsets>
                                        <TileSize><AbsValue val="12" /></TileSize>
                                        <EdgeSize><AbsValue val="2" /></EdgeSize>
                                </Backdrop>
                                <Layers>
                                        <Layer level="ARTWORK">         <!-- TITLE -->
                                                <FontString name="$parentLbL" inherits="GameFontNormalSmall" text="channel-Name:">
                                                        <Anchors>
                                                                <Anchor point="LEFT">
                                                                        <Offset><AbsDimension x="-1" y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0, 0, 0, 0);
                                                this:SetBackdropColor(0,0,0, 0);
                                        </OnLoad>
                                        <OnShow>
                                                if (tD_CharDatas.ChannelID) then tradeDispenser_ChannelUpdate() end;
                                        </OnShow>
                                </Scripts>
                        </Frame>
                        <Frame name="$parentDDframe" hidden="true"  enableMouse="true">
                                <Size><AbsDimension x="145" y="182"/></Size>    
                                <Anchors>
                                        <Anchor point="TOPRIGHT">
                                                <Offset><AbsDimension x="-18" y="0"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <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>
                <!-- ######################  SUB-FRAMES of DROP-DOWN  (clickable) ###################### -->
                                <Frames>
                                        <Button name="$parentSub1"  inherits="tDChannelBtnTemp" id="1" text="SAY" >
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset><AbsDimension x="0" y="-15"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Button>
                                        <Button name="$parentSub2"  inherits="tDChannelBtnTemp" id="2" text="YELL" >
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentSub1" relativePoint="BOTTOM">
                                                                <Offset><AbsDimension x="0" y="0"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Button>
                                        <Button name="$parentSub3"  inherits="tDChannelBtnTemp" id="3" text="RAID/PARTY" >
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentSub2" relativePoint="BOTTOM">
                                                                <Offset><AbsDimension x="0" y="0"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Button>
                                        <Button name="$parentSub4"  inherits="tDChannelBtnTemp" id="4" text="PARTY ONLY" >
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentSub3" relativePoint="BOTTOM">
                                                                <Offset><AbsDimension x="0" y="0"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Button>
                                        <Button name="$parentSub5"  inherits="tDChannelBtnTemp" id="5" text="GUILD" >
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentSub4" relativePoint="BOTTOM">
                                                                <Offset><AbsDimension x="0" y="0"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Button>
                                </Frames>
                                <Scripts>
                                        <OnLoad>
                                                this:SetFrameLevel(this:GetParent():GetFrameLevel()+3);
                                        </OnLoad>
                                        <OnShow>
                                                this:SetHeight( 12*6+31+10 );
                                                local i=0;
                                                for i=1,5 do 
                                                        local zielobj = getglobal(this:GetName().."Sub"..(i));
                                                        local col = tradeDispenserChannelColors[i];
                                                        zielobj:SetTextColor(col.r,col.g,col.b);
                                                        zielobj:SetText(col.text);
                                                        zielobj:Show();
                                                end 
                                        </OnShow>
                                </Scripts>
                        </Frame>
                </Frames>
                <Scripts>
                        <OnLoad>
                                <!--getglobal(this:GetName().."LbL"):SetText("Grp"..this:GetID());-->
                                getglobal(this:GetName().."LbL"):SetText(tD_Loc.settings.channel..":");
                                this:SetBackdropBorderColor(0, 0, 0, 0);
                                this:SetBackdropColor(0, 0, 0, 0);
                        </OnLoad>
                </Scripts>
        </Frame>        


        
        <EditBox name="tDEditBoxTemp" inherits="UIEditBoxTemplate" letters="256" historyLines="0" autoFocus="false" virtual="true">
                <Size><AbsDimension x="350" y="16"/></Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                        <Size><AbsDimension x="12" y="29"/>     </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset><AbsDimension x="-11" y="2"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
                                </Texture>
                                <Texture name="$parentMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                        <Size><AbsDimension x="406" y="29"/></Size>
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
                                        </Anchors>
                                        <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/>
                                </Texture>
                                <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                        <Size><AbsDimension x="12" y="29"/>     </Size>
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
                                        </Anchors>
                                        <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/>
                                </Texture>                                              
                        </Layer>
                        <Layer level="ARTWORK">
                                <FontString name="$parentLbL" inherits="GameFontNormalSmall" text="BroadcastText 1:">
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="LEFT">
                                                        <Offset><AbsDimension x="-90" y="4"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>                               
                <FontString inherits="GameFontHighlight"/>
                <Scripts>
                        <OnLoad>
                                this:ClearFocus();
                                getglobal(this:GetName().."LbL"):SetText(tD_Loc.settings.broadcasttext.." "..this:GetID()..":");
                                this:SetText("DummyText");
                                this:SetTextColor(1,1,1);
                        </OnLoad>
                        <OnEditFocusLost>
                                tD_CharDatas.OnBroadcastText=nil;
                        </OnEditFocusLost>
                        <OnHide>
                                tD_CharDatas.OnBroadcastText=nil;
                        </OnHide>
                        <OnEscapePressed>
                                this:ClearFocus()
                                tD_CharDatas.OnBroadcastText=nil;
                        </OnEscapePressed>
                        <OnEnterPressed>
                                this:ClearFocus();
                                tD_CharDatas.OnBroadcastText=nil;
                        </OnEnterPressed>
                        <OnTextChanged>
                                tD_CharDatas.RndText[this:GetID()]=this:GetText();
                        </OnTextChanged>
                        <OnEditFocusGained>
                                tD_CharDatas.OnBroadcastText=this;
                                tradeDispenserVerbose(1,"Focused Random-Text "..this:GetID());
                        </OnEditFocusGained>
                </Scripts>
        </EditBox>
        
        
        
        <!-- ####################################  SETTINGs-FRAME     ############################  -->
        
        
        
        <Frame name="tradeDispenserSettings" hidden="true" parent="tradeDispenser" enableMouse="true">
                <Size>  <AbsDimension x="182" y="346"/> </Size>
                <Anchors>
                        <Anchor point="BOTTOMRIGHT"  relativeTo="$parent" relativePoint="BOTTOMLEFT">
                                <Offset><AbsDimension x="0" y="2"/></Offset>
                        </Anchor>
                </Anchors>      
                <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                        <EdgeSize>      <AbsValue val="16"/>    </EdgeSize>
                        <TileSize>      <AbsValue val="0"/>              </TileSize>
                        <BackgroundInsets>
                                <AbsInset left="4" right="4" top="4" bottom="4"/>
                        </BackgroundInsets>
                </Backdrop>     
                <Layers>
                        <Layer level="ARTWORK">         <!-- TITLE -->
                                <FontString name="$parentLbL" inherits="GameFontNormal" text="Broadcast-Options:">
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset><AbsDimension x="8" y="-135"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>                                           
                        </Layer>
                </Layers>                       
                <Frames>
                        <Frame name="$parentTitleBkg" hidden="false">
                                <Size>  <AbsDimension x="182" y="28"/>  </Size>
                                <Anchors>
                                        <Anchor point="BOTTOM"  relativeTo="$parent" relativePoint="TOP">
                                                <Offset><AbsDimension x="0" y="2"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>      <AbsValue val="16"/>    </EdgeSize>
                                        <TileSize>      <AbsValue val="0"/>              </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="4" right="4" top="4" bottom="4"/>
                                        </BackgroundInsets>
                                </Backdrop>     
                                <Layers>
                                        <Layer level="ARTWORK">         <!-- TITLE -->
                                                <FontString name="$parentLbL" inherits="GameFontNormal" text="SETTINGS:">
                                                        <Anchors>
                                                                <Anchor point="Center">
                                                                        <Offset><AbsDimension x="0" y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnLoad>
                                                this:SetWidth(this:GetParent():GetWidth());
                                                this:SetBackdropBorderColor(1, 1, 1,1);
                                                this:SetBackdropColor(0.2, 0, 0, 1);    
                                                local f = getglobal(this:GetName().."LbL");
                                                f:SetText(tD_Loc.settings.title);
                                                f:SetTextColor(1,1,1);
                                        </OnLoad>
                                </Scripts>
                        </Frame>

                        <CheckButton name="$parentOSDCheck" inherits="UICheckButtonTemplate">           
                                <Size><AbsDimension x="24" y="24"/></Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset><AbsDimension x="5" y="-4"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">         <!-- TITLE -->
                                                <FontString name="$parentLbLTitle" inherits="GameFontNormal" text="OSD:">
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
                                                                        <Offset><AbsDimension x="0" y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>                           
                                        </Layer>
                                </Layers>                                       
                                <Scripts>
                                        <OnLoad>        
                                                local f=getglobal(this:GetName().."LbLTitle");
                                                f:SetTextColor(1,1,1);
                                                f:SetText(tD_Loc.OSD.OSDtitle);
                                        </OnLoad>
                                        <OnClick>
                                                tradeDispenserPlaySound(this)
                                                tD_CharDatas.OSD.isEnabled = not tD_CharDatas.OSD.isEnabled;
                                                tradeDispenserSettings_OnUpdate();
                                                tradeDispenserOSD_OnUpdate();
                                        </OnClick>
                                        <OnEnter>
                                                GameTooltip:SetOwner(this:GetParent(),"ANCHOR_TOPRIGHT",200,50);
                                                tradeDispenserDrawTooltip(tD_Loc.settings.osdtooltip)                   
                                        </OnEnter>
                                        <OnLeave>               GameTooltip:Hide();             </OnLeave>
                                </Scripts>
                        </CheckButton>
                        
                        <CheckButton name="$parentOSDLock" inherits="UICheckButtonTemplate">            
                                <Size><AbsDimension x="24" y="24"/></Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT">
                                                <Offset><AbsDimension x="-5" y="-4"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">         <!-- TITLE -->
                                                <FontString name="$parentLbLTitle" inherits="GameFontNormalSmall" text="Locked">
                                                        <Anchors>
                                                                <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
                                                                        <Offset><AbsDimension x="-2" y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>                           
                                        </Layer>
                                </Layers>                                       
                                <Scripts>
                                        <OnLoad>          
                                                getglobal(this:GetName().."LbLTitle"):SetText(tD_Loc.settings.lock);                                            
                                        </OnLoad>
                                        <OnClick>
                                                tradeDispenserPlaySound(this)
                                                tD_CharDatas.OSD.locked = not tD_CharDatas.OSD.locked;
                                                tradeDispenserSettings_OnUpdate();
                                                tradeDispenserOSD_OnUpdate();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        
                        <Slider name="$parentOSDscale" inherits="OptionsSliderTemplate">
                                <Size><AbsDimension x="110" y="16"/></Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
                                                <Offset><AbsDimension x="-10" y="-32"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK"> 
                                                <FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Scale:">
                                                        <Anchors>
                                                                <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
                                                                        <Offset><AbsDimension x="-8" y="1"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>                                
                                </Layers>                               
                                <Scripts>
                                        <OnLoad>
                                                local n=this:GetName();
                                                getglobal(n.."Text"):SetText("");
                                                getglobal(n.."High"):SetText("");
                                                getglobal(n.."Low"):SetText("");
                                                getglobal(n.."Lbl"):SetText(tD_Loc.settings.scale);
                                                this:SetMinMaxValues(0.4, 2);
                                                this:SetValueStep(0.025);
                                                this:SetValue(1);
                                        </OnLoad>
                                        <OnValueChanged>
                                                if (tD_CharDatas.OSD) then tD_CharDatas.OSD.scale = floor(this:GetValue()*100)/100 end
                                                tradeDispenserSettings_OnUpdate();
                                                tradeDispenserOSD_OnUpdate();
                                        </OnValueChanged>
                                </Scripts>
                        </Slider>       
                                        
                        <Button name="$parentSwatch" hidden="false">
                                <Size>
                                        <AbsDimension x="24" y="24"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentOSDscale">
                                                <Offset>
                                                        <AbsDimension x="-1" y="-5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>      <AbsValue val="16"/>    </EdgeSize>
                                        <TileSize>      <AbsValue val="0"/>              </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="4" right="4" top="4" bottom="4"/>
                                        </BackgroundInsets>
                                </Backdrop>                                     
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parentBG">
                                                        <Size>
                                                                <AbsDimension x="14" y="14"/>
                                                        </Size>
                                                        <Color r="1.0" g="1.0" b="1.0"/>
                                                        <Anchors>
                                                                <Anchor point="CENTER"/>
                                                        </Anchors>
                                                </Texture>
                                        </Layer>
                                        <Layer level="ARTWORK"> 
                                                <FontString name="$parentLbl" inherits="GameFontNormal" text="BK-Color">
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
                                                                        <Offset><AbsDimension x="3" y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>                                
                                </Layers>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Lbl"):SetText(tD_Loc.settings.bkcolor);
                                        </OnLoad>
                                        <OnShow>
                                                local col = tD_CharDatas.OSD;
                                                getglobal(this:GetName() .. "NormalTexture"):SetVertexColor(col.r, col.g, col.b);
                                        </OnShow>
                                        <OnClick>
                                            tradeDispenserPlaySound(this)
                                                tradeDispenserSettings_OnColorChange(this:GetParent());
                                        </OnClick>
                                </Scripts>
                                <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
                        </Button>

                        <CheckButton name="$parentOSDborder" inherits="UICheckButtonTemplate">          
                                <Size><AbsDimension x="24" y="24"/></Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentSwatch">
                                                <Offset><AbsDimension x="1" y="0"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">         <!-- TITLE -->
                                                <FontString name="$parentLbLTitle" inherits="GameFontNormal" text="Border">
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
                                                                        <Offset><AbsDimension x="4" y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>                           
                                        </Layer>
                                </Layers>                                       
                                <Scripts>
                                        <OnShow>        
                                                this:SetChecked(tD_CharDatas.OSD.border);         
                                                getglobal(this:GetName().."LbLTitle"):SetText(tD_Loc.settings.border);
                                        </OnShow>
                                        <OnClick>
                                                tradeDispenserPlaySound(this)
                                                tD_CharDatas.OSD.border = not tD_CharDatas.OSD.border;
                                                tradeDispenserOSD_OnUpdate();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <CheckButton name="$parentOSDhoriz" inherits="UICheckButtonTemplate">           
                                <Size><AbsDimension x="24" y="24"/></Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentOSDborder">
                                                <Offset><AbsDimension x="0" y="0"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">         <!-- TITLE -->
                                                <FontString name="$parentLbLTitle" inherits="GameFontNormal" text="Horizontal">
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
                                                                        <Offset><AbsDimension x="4" y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>                           
                                        </Layer>
                                </Layers>                                       
                                <Scripts>
                                        <OnShow>        
                                                this:SetChecked(tD_CharDatas.OSD.horiz);          
                                                getglobal(this:GetName().."LbLTitle"):SetText(tD_Loc.settings.horiz);
                                        </OnShow>
                                        <OnClick>
                                                tradeDispenserPlaySound(this)
                                                tD_CharDatas.OSD.horiz = not tD_CharDatas.OSD.horiz;
                                                tradeDispenserOSD_OnUpdate();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>                  
                        
                        <Frame name="$parentChannel" inherits="tDChannelDDTemp" hidden="false">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentLbL" relativePoint="BOTTOMLEFT">
                                                <Offset><AbsDimension x="10" y="-8"/></Offset>
                                        </Anchor>
                                </Anchors>                      
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parentLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                                        <Size><AbsDimension x="12" y="29"/>     </Size>
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT">
                                                                        <Offset><AbsDimension x="-11" y="2"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
                                                </Texture>
                                                <Texture name="$parentMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                                        <Size><AbsDimension x="143" y="29"/></Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
                                                        </Anchors>
                                                        <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/>
                                                </Texture>
                                                <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                                        <Size><AbsDimension x="12" y="29"/>     </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
                                                        </Anchors>
                                                        <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/>
                                                </Texture>
                                        </Layer>
                                </Layers>
                        </Frame>
        
                        <CheckButton name="$parentBroadcastCheck" inherits="UICheckButtonTemplate">             
                                <Size><AbsDimension x="24" y="24"/></Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentOSDCheck" relativePoint="BOTTOMLEFT">
                                                <Offset><AbsDimension x="0" y="-160"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <FontString name="$parentLbL" inherits="GameFontNormal" text="Auto-Broadcast:">
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
                                                                        <Offset><AbsDimension x="0" y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>                           
                                        </Layer>
                                </Layers>                               
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."LbL"):SetText(tD_Loc.settings.autobroadcast);
                                        </OnLoad>
                                        <OnClick>
                                                tradeDispenserPlaySound(this)
                                                local f=getglobal(this:GetParent():GetName().."BroadcastTimer");
                                                if ( this:GetChecked() ) then   f:Show()        else            f:Hide()        end
                                                tD_CharDatas.AutoBroadcast= not tD_CharDatas.AutoBroadcast;
                                                tradeDispenserSettings_OnUpdate();
                                                tradeDispenserUpdate();
                                                tradeDispenser_OSD_buttons()
                                        </OnClick>
                                        <OnEnter>
                                                GameTooltip:SetOwner(this:GetParent(),"ANCHOR_TOPRIGHT",200,50);
                                                tradeDispenserDrawTooltip(tD_Loc.settings.broadcasttooltip)                             
                                        </OnEnter>
                                        <OnLeave>               GameTooltip:Hide();             </OnLeave>                                      
                                </Scripts>
                        </CheckButton>  
                        <Slider name="$parentBroadcastTimer" inherits="OptionsSliderTemplate">
                                <Size><AbsDimension x="110" y="16"/></Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentBroadcastCheck" relativePoint="BOTTOMLEFT">
                                                <Offset><AbsDimension x="56" y="-1"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK"> 
                                                <FontString name="$parentLbl" inherits="GameFontNormalSmall" text="30 min">
                                                        <Anchors>
                                                                <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
                                                                        <Offset><AbsDimension x="-8" y="1"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>                                
                                </Layers>                               
                                <Scripts>
                                        <OnLoad>
                                                local n=this:GetName();
                                                getglobal(n.."Text"):SetText("");
                                                getglobal(n.."High"):SetText(tradeDispenser_MaxBroadcastLength.." min");
                                                getglobal(n.."Low"):SetText("1 min");
                                                getglobal(n.."High"):SetTextColor(1,0.9,0);
                                                getglobal(n.."Low"):SetTextColor(1,0.9,0);
                                                getglobal(n.."Lbl"):SetTextColor(1,1,1);
                                                this:SetMinMaxValues(1, tradeDispenser_MaxBroadcastLength);
                                                this:SetValueStep(1);
                                                this:SetValue(math.floor(tradeDispenser_MaxBroadcastLength/2));
                                        </OnLoad>
                                        <OnShow>
                                                tradeDispenserSettings_OnUpdate();
                                        </OnShow>
                                        <OnValueChanged>
                                                tD_CharDatas.broadcastSlice = math.floor(this:GetValue())*60;
                                                tD_Temp.broadcastSlice=10;
                                                tradeDispenserSettings_OnUpdate();
                                                tradeDispenserUpdate();
                                        </OnValueChanged>
                                </Scripts>
                        </Slider>
                        
                        <CheckButton name="$parentTimelimitCheck" inherits="UICheckButtonTemplate">             
                                <Size><AbsDimension x="24" y="24"/></Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentBroadcastCheck" relativePoint="BOTTOMLEFT">
                                                <Offset><AbsDimension x="0" y="-30"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <FontString name="$parentLbL" inherits="GameFontNormal" text="TimeLimit:">
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
                                                                        <Offset><AbsDimension x="0" y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>                           
                                        </Layer>
                                </Layers>                               
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."LbL"):SetText(tD_Loc.settings.Timelimit);
                                        </OnLoad>
                                        <OnClick>
                                                tradeDispenserPlaySound(this)
                                                local f=getglobal(this:GetParent():GetName().."TimelimitSlider");
                                                if ( this:GetChecked() ) then   f:Show()        else            f:Hide()        end
                                                tD_CharDatas.TimelimitCheck = not tD_CharDatas.TimelimitCheck;
                                                tradeDispenserSettings_OnUpdate();
                                                <!--tradeDispenserUpdate();
                                                tradeDispenser_OSD_buttons()-->
                                        </OnClick>
                                        <OnEnter>
                                                GameTooltip:SetOwner(this:GetParent(),"ANCHOR_TOPRIGHT",200,50);
                                                tradeDispenserDrawTooltip(tD_Loc.settings.TimerTooltip)                         
                                        </OnEnter>
                                        <OnLeave>               GameTooltip:Hide();             </OnLeave>                                      
                                </Scripts>
                        </CheckButton>  
                        <Slider name="$parentTimelimitSlider" inherits="OptionsSliderTemplate">
                                <Size><AbsDimension x="110" y="16"/></Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentTimelimitCheck" relativePoint="BOTTOMLEFT">
                                                <Offset><AbsDimension x="56" y="-1"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK"> 
                                                <FontString name="$parentLbl" inherits="GameFontNormalSmall" text="30 sec">
                                                        <Anchors>
                                                                <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
                                                                        <Offset><AbsDimension x="-8" y="1"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>                                
                                </Layers>                               
                                <Scripts>
                                        <OnLoad>
                                                local n=this:GetName();
                                                getglobal(n.."Text"):SetText("");
                                                getglobal(n.."High"):SetText("60 sec");
                                                getglobal(n.."Low"):SetText("10 sec");
                                                getglobal(n.."High"):SetTextColor(1,0.9,0);
                                                getglobal(n.."Low"):SetTextColor(1,0.9,0);
                                                getglobal(n.."Lbl"):SetTextColor(1,1,1);
                                                this:SetMinMaxValues(10, 60);
                                                this:SetValueStep(5);
                                                this:SetValue(30);
                                        </OnLoad>
                                        <OnShow>
                                                tradeDispenserSettings_OnUpdate();
                                        </OnShow>
                                        <OnValueChanged>
                                                tD_CharDatas.Timelimit = math.floor(this:GetValue());
                                                tradeDispenserSettings_OnUpdate();
                                        </OnValueChanged>
                                </Scripts>
                        </Slider>
                        
                        
                        <Slider name="$parentRandom" inherits="OptionsSliderTemplate">
                                <Size><AbsDimension x="156" y="16"/></Size>
                                <Anchors>
                                        <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM">
                                                <Offset><AbsDimension x="0" y="10"/></Offset>
                                        </Anchor>
                                </Anchors>                              
                                <Scripts>
                                        <OnLoad>
                                                local f = getglobal(this:GetName().."Text");
                                                f:SetText("dummy");
                                                f:SetTextColor(1,1,1);
                                                local font, size, flags = f:GetFont();
                                                f:SetFont(font,12);                                                             
                                                getglobal(this:GetName().."High"):SetText("");
                                                getglobal(this:GetName().."Low"):SetText("");                           
                                                this:SetMinMaxValues(1, 8);
                                                this:SetValueStep(1);
                                                this:SetValue(5);
                                        </OnLoad>
                                        <OnValueChanged>
                                                getglobal(this:GetName().."Text"):SetText(tD_Loc.settings.randomtext.." "..this:GetValue());
                                                tD_CharDatas.Random=this:GetValue();
                                                tradeDispenser_EditBoxUpdate();
                                                if (tradeDispenserBanlist) then tradeDispenser_Banlist_Update() end
                                        </OnValueChanged>
                                </Scripts>
                        </Slider>
                        
                        
                        <Frame name="$parentText" hidden="false">
                                <Size>  <AbsDimension x="482" y="30"/>  </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT"  relativeTo="$parent" relativePoint="BOTTOMLEFT">
                                                <Offset><AbsDimension x="0" y="-2"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>      <AbsValue val="16"/>    </EdgeSize>
                                        <TileSize>      <AbsValue val="0"/>              </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="4" right="4" top="4" bottom="4"/>
                                        </BackgroundInsets>
                                </Backdrop>     
                                <Frames>
                                        <EditBox name="$parentBroadcastText1" id="1" inherits="tDEditBoxTemp">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
                                                                <Offset><AbsDimension x="110" y="-5"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </EditBox>
                                        <EditBox name="$parentBroadcastText2" id="2" inherits="tDEditBoxTemp">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentBroadcastText1" relativePoint="BOTTOM">
                                                                <Offset><AbsDimension x="0" y="-8"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </EditBox>
                                        <EditBox name="$parentBroadcastText3" id="3" inherits="tDEditBoxTemp">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentBroadcastText2" relativePoint="BOTTOM">
                                                                <Offset><AbsDimension x="0" y="-8"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </EditBox>
                                        <EditBox name="$parentBroadcastText4" id="4" inherits="tDEditBoxTemp">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentBroadcastText3" relativePoint="BOTTOM">
                                                                <Offset><AbsDimension x="0" y="-8"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </EditBox>
                                        <EditBox name="$parentBroadcastText5" id="5" inherits="tDEditBoxTemp">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentBroadcastText4" relativePoint="BOTTOM">
                                                                <Offset><AbsDimension x="0" y="-8"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </EditBox>
                                        <EditBox name="$parentBroadcastText6" id="6" inherits="tDEditBoxTemp">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentBroadcastText5" relativePoint="BOTTOM">
                                                                <Offset><AbsDimension x="0" y="-8"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </EditBox>
                                        <EditBox name="$parentBroadcastText7" id="7" inherits="tDEditBoxTemp">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentBroadcastText6" relativePoint="BOTTOM">
                                                                <Offset><AbsDimension x="0" y="-8"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </EditBox>
                                        <EditBox name="$parentBroadcastText8" id="8" inherits="tDEditBoxTemp">
                                                <Anchors>
                                                        <Anchor point="TOP" relativeTo="$parentBroadcastText7" relativePoint="BOTTOM">
                                                                <Offset><AbsDimension x="0" y="-8"/></Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </EditBox>
                                </Frames>
                                <Scripts>
                                        <OnLoad>
                                                this:SetWidth(this:GetParent():GetWidth());
                                                this:SetBackdropBorderColor(1, 1, 1,1);
                                                this:SetBackdropColor(0.2, 0, 0, 1);    
                                        </OnLoad>
                                </Scripts>
                        </Frame>                        
                </Frames>
                <Scripts>
                        <OnLoad>
                                local f=getglobal(this:GetName().."LbL");
                                f:SetText(tD_Loc.settings.broadcastopt);
                                f:SetTextColor(1,1,1);
                                this:SetBackdropBorderColor(1, 1, 1,1);
                                this:SetBackdropColor(0, 0, 0.2, 1);
                        </OnLoad>       
                        <OnShow>
                                tradeDispenser_EditBoxUpdate();
                        </OnShow>
                        <OnMouseDown> this:GetParent():StartMoving();  </OnMouseDown>
                        <OnMouseUp>  this:GetParent():StopMovingOrSizing(); </OnMouseUp>
                        <OnDragStop> this:GetParent():StopMovingOrSizing(); </OnDragStop>                                       
                </Scripts>
        </Frame>        
</Ui>

Generated by GNU Enscript 1.6.5.90.