You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2414 lines
74 KiB
2414 lines
74 KiB
<!--Neuron is a World of Warcraft® user interface addon.
|
|
Copyright (c) 2017-2021 Britt W. Yazel
|
|
Copyright (c) 2006-2014 Connor H. Chenoweth
|
|
This code is licensed under the MIT license (see LICENSE for details)-->
|
|
|
|
<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/ https://raw.githubusercontent.com/Gethe/wow-ui-source/live/FrameXML/UI.xsd">
|
|
<Button name="NeuronPopupButtonTemplate" virtual="true" inherits="BackdropTemplate">
|
|
<CheckedTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="2" y="-2"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-2" y="2"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckedTexture>
|
|
<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="2" y="-2"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-2" y="2"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</HighlightTexture>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self:SetBackdropColor(0, 0, 0)
|
|
self:SetBackdropBorderColor(0.5, 0.5, 0.5)
|
|
</OnLoad>
|
|
<OnClick>
|
|
local text = self.text:GetText()
|
|
local parent = self:GetParent()
|
|
local parentparent = self:GetParent():GetParent()
|
|
local edit = parentparent.edit
|
|
|
|
if (text) then
|
|
|
|
if (parentparent:GetObjectType() == "EditBox") then
|
|
|
|
parentparent:SetText("")
|
|
parentparent:SetText(text)
|
|
parentparent:SetFocus()
|
|
parentparent:ClearFocus()
|
|
|
|
if (self.value) then
|
|
parentparent.value = self.value
|
|
end
|
|
|
|
elseif (edit and self.value) then
|
|
|
|
Neuron:Print("hit2")
|
|
|
|
edit:SetText("")
|
|
edit:SetText(self.value)
|
|
|
|
elseif (edit) then
|
|
|
|
Neuron:Print("hit3")
|
|
|
|
edit:SetText("")
|
|
edit:SetText(text)
|
|
end
|
|
end
|
|
|
|
parent:Hide()
|
|
</OnClick>
|
|
<OnEnter>
|
|
if (self.tooltip) then
|
|
GameTooltip:SetOwner(self, "ANCHOR_CURSOR")
|
|
GameTooltip:SetText(self.tooltip)
|
|
end
|
|
</OnEnter>
|
|
<OnLeave>
|
|
GameTooltip:Hide()
|
|
</OnLeave>
|
|
</Scripts>
|
|
<ButtonText name="$parentText" inherits="GameFontHighlight" justifyH="CENTER" parentKey="text">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"/>
|
|
<Anchor point="BOTTOMRIGHT"/>
|
|
</Anchors>
|
|
</ButtonText>
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<Button name="NeuronEditFrameTemplate" frameStrata="TOOLTIP" hidden="true" virtual="true" inherits="BackdropTemplate">
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentType" parentKey="type" inherits="ChatFontSmall" justifyH="CENTER" justifyV="CENTER" nonspacewrap="true">
|
|
<Anchors>
|
|
<Anchor point="TOP">
|
|
<Offset x="0" y="-1"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOM">
|
|
<Offset x="0" y="3"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Shadow>
|
|
<Offset x="1" y="-1"/>
|
|
<Color r="0" g="0" b="0"/>
|
|
</Shadow>
|
|
<Color r="1" g="1" b="1"/>
|
|
</FontString>
|
|
<FontString name="$parentMessage" inherits="GameFontNormalSmall" justifyH="CENTER" justifyV="CENTER" nonspacewrap="true">
|
|
<Anchors>
|
|
<Anchor point="TOP" relativeTo="$parent" relativePoint="BOTTOM">
|
|
<Offset x="0" y="-1"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Frame name="$parentSelect" parentKey="select" setAllPoints="true" hidden="true" inherits="BackdropTemplate">
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<Texture name="$parentReticleTL" parentKey="TL" file="Interface\Buttons\UI-AutoCastableOverlay">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="1" y="-1"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.234375" right="0.328125" top="0.234375" bottom="0.328125"/>
|
|
</Texture>
|
|
<Texture name="$parentReticleTR" parentKey="TR" file="Interface\Buttons\UI-AutoCastableOverlay">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT">
|
|
<Offset x="-1" y="-1"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.640625" right="0.75" top="0.234375" bottom="0.328125"/>
|
|
</Texture>
|
|
<Texture name="$parentReticleBL" parentKey="BL" file="Interface\Buttons\UI-AutoCastableOverlay">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMLEFT">
|
|
<Offset x="1" y="1"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.234375" right="0.328125" top="0.640625" bottom="0.75"/>
|
|
</Texture>
|
|
<Texture name="$parentReticleBR" parentKey="BR" file="Interface\Buttons\UI-AutoCastableOverlay">
|
|
<Size x="8" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-1" y="1"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.640625" right="0.75" top="0.640625" bottom="0.75"/>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
</Frames>
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<EditBox name="NeuronEditBoxTemplateSmall" historyLines="0" numeric="false" autoFocus="false" nonspacewrap="true" virtual="true" inherits="BackdropTemplate">
|
|
<Size x="37" y="21"/>
|
|
<Scripts>
|
|
<OnEscapePressed>
|
|
self:ClearFocus()
|
|
</OnEscapePressed>
|
|
<OnEditFocusLost>
|
|
self:HighlightText(0, 0)
|
|
</OnEditFocusLost>
|
|
<OnEditFocusGained>
|
|
self:HighlightText()
|
|
</OnEditFocusGained>
|
|
</Scripts>
|
|
<FontString name="$parentFont" justifyH="CENTER" inherits="GameFontHighlight"/>
|
|
</EditBox>
|
|
|
|
|
|
|
|
|
|
|
|
<Frame name="NeuronAdjustOptionTemplate" virtual="true" inherits="BackdropTemplate">
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString parentKey="text" inherits="GameFontNormal" justifyH="LEFT" nonspacewrap="false">
|
|
<Anchors>
|
|
<Anchor point="RIGHT" relativePoint="CENTER">
|
|
<Offset x="-15" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Frame parentKey="method1" enableMouse="true" hidden="true" inherits="BackdropTemplate">
|
|
<Size x="100" y="24"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="CENTER">
|
|
<Offset x="5" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="RIGHT">
|
|
<Offset x="-10" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<Button parentKey="add" hidden="true">
|
|
<Size x="24" y="30"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT">
|
|
<Offset x="10" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.elapsed = 0
|
|
self:RegisterForClicks("AnyUp","AnyDown")
|
|
</OnLoad>
|
|
<OnClick>
|
|
Neuron.NeuronGUI:NeuronAdjustOption_AddOnClick(self, button, down)
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\AddOns\Neuron\Images\AdjustOptionRight-Up"/>
|
|
<PushedTexture file="Interface\AddOns\Neuron\Images\AdjustOptionRight-Down"/>
|
|
<HighlightTexture file="Interface\AddOns\Neuron\Images\AdjustOptionRight-Highlight" alphaMode="ADD"/>
|
|
</Button>
|
|
<Button parentKey="sub" hidden="true">
|
|
<Size x="24" y="30"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT">
|
|
<Offset x="-10" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.elapsed = 0
|
|
self:RegisterForClicks("AnyUp","AnyDown")
|
|
</OnLoad>
|
|
<OnClick>
|
|
Neuron.NeuronGUI:NeuronAdjustOption_SubOnClick(self, button, down)
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\AddOns\Neuron\Images\AdjustOptionLeft-Up"/>
|
|
<PushedTexture file="Interface\AddOns\Neuron\Images\AdjustOptionLeft-Down"/>
|
|
<HighlightTexture file="Interface\AddOns\Neuron\Images\AdjustOptionLeft-Highlight" alphaMode="ADD"/>
|
|
</Button>
|
|
<EditBox parentKey="edit" inherits="NeuronEditBoxTemplateSmall" letters="6">
|
|
<Size x="70" y="24"/>
|
|
<Anchors>
|
|
<Anchor point="CENTER">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
--Neuron.SubFrameBlankBackdrop_OnLoad(self)
|
|
self:SetBackdropColor(0, 0, 0, 0)
|
|
self:SetBackdropBorderColor(0.3, 0.3, 0.3, 0)
|
|
</OnLoad>
|
|
<OnTabPressed>
|
|
self.hasfocus = nil
|
|
self:ClearFocus()
|
|
</OnTabPressed>
|
|
<OnEnterPressed>
|
|
self.hasfocus = nil
|
|
self:ClearFocus()
|
|
</OnEnterPressed>
|
|
<OnEditFocusGained>
|
|
self.hasfocus = true
|
|
self:GetParent().add:Show()
|
|
self:GetParent().sub:Show()
|
|
self:HighlightText()
|
|
</OnEditFocusGained>
|
|
<OnEditFocusLost>
|
|
self.hasfocus = nil
|
|
</OnEditFocusLost>
|
|
</Scripts>
|
|
</EditBox>
|
|
</Frames>
|
|
</Frame>
|
|
<Frame parentKey="method2" hidden="true" inherits="BackdropTemplate">
|
|
<Size x="100" y="24"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="CENTER">
|
|
<Offset x="-5" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="RIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<EditBox parentKey="edit" inherits="NeuronDropDownOption">
|
|
<Size x="100" y="24"/>
|
|
<Anchors>
|
|
<Anchor point="CENTER">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
--Neuron.NeuronGUI:SubFrameBlankBackdrop_OnLoad(self)
|
|
self:SetBackdropColor(0, 0, 0, 0)
|
|
self:SetBackdropBorderColor(0.3, 0.3, 0.3, 0)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</EditBox>
|
|
</Frames>
|
|
</Frame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.method1.add:Show()
|
|
self.method1.sub:Show()
|
|
self.method1.edit:SetBackdropBorderColor(1, 0.82, 0, 1)
|
|
self.shown = true
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
|
|
|
|
|
|
|
|
<EditBox name="NeuronDropDownOption" historyLines="0" numeric="false" autoFocus="false" nonspacewrap="true" virtual="true" inherits="BackdropTemplate">
|
|
<Frames>
|
|
<Button name="$parentButton" parentKey="button" hidden="false">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
self:GetParent().show = nil
|
|
self:GetParent().popup.timer = 0;
|
|
if (self:GetParent().popup:IsVisible()) then
|
|
self:GetParent().popup:Hide()
|
|
else
|
|
if (self:GetParent().popup.data) then
|
|
self:GetParent().popup:Show()
|
|
end
|
|
end
|
|
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
|
|
</OnClick>
|
|
<OnEnter>
|
|
self:GetParent():SetBackdropBorderColor(1, 0.82, 0, 1)
|
|
</OnEnter>
|
|
<OnLeave>
|
|
self:GetParent():SetBackdropBorderColor(0, 0, 0, 0)
|
|
</OnLeave>
|
|
</Scripts>
|
|
</Button>
|
|
<Frame name="$parentPopUp" parentkey="popup" toplevel="true" enableMouse="true" clampedToScreen="true" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="CENTER">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Backdrop name="$parentBackdrop" bgFile="Interface\ItemTextFrame\ItemText-Stone-TopLeft" edgeFile="Interface\AddOns\Neuron\Images\UI-Tooltip-Border" tile="true">
|
|
<EdgeSize>
|
|
<AbsValue val="18"/>
|
|
</EdgeSize>
|
|
<TileSize>
|
|
<AbsValue val="8"/>
|
|
</TileSize>
|
|
<BackgroundInsets>
|
|
<AbsInset left="3" right="3" top="2" bottom="2"/>
|
|
</BackgroundInsets>
|
|
</Backdrop>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.timer = 0
|
|
self.options = {}
|
|
self:RegisterEvent("ADDON_LOADED")
|
|
self:SetBackdropColor(0, 0, 0)
|
|
self:SetBackdropBorderColor(0.25, 0.25, 0.25, 1)
|
|
self:Hide()
|
|
</OnLoad>
|
|
<OnShow>
|
|
self.timer = 0
|
|
</OnShow>
|
|
<OnHide>
|
|
self:GetParent().click = nil
|
|
</OnHide>
|
|
<OnUpdate>
|
|
self.timer = self.timer + elapsed
|
|
if (self:IsVisible() and self.timer > 5) then
|
|
if (not self:IsMouseOver()) then
|
|
self:Hide()
|
|
end
|
|
end
|
|
</OnUpdate>
|
|
</Scripts>
|
|
</Frame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self:RegisterEvent("PLAYER_LOGIN")
|
|
self:SetBackdropColor(0, 0, 0)
|
|
self:SetBackdropBorderColor(0.5, 0.5, 0.5)
|
|
</OnLoad>
|
|
<OnTabPressed>
|
|
self:ClearFocus()
|
|
</OnTabPressed>
|
|
<OnEnterPressed>
|
|
self:ClearFocus()
|
|
</OnEnterPressed>
|
|
<OnEscapePressed>
|
|
self:ClearFocus()
|
|
</OnEscapePressed>
|
|
<OnEditFocusLost>
|
|
self:HighlightText(0, 0)
|
|
</OnEditFocusLost>
|
|
<OnEditFocusGained>
|
|
self:HighlightText()
|
|
</OnEditFocusGained>
|
|
</Scripts>
|
|
<FontString name="$parentFont" justifyH="CENTER" inherits="GameFontHighlight"/>
|
|
</EditBox>
|
|
|
|
|
|
|
|
|
|
|
|
<EditBox name="NeuronDropDownOptionFull" historyLines="0" numeric="false" autoFocus="false" nonspacewrap="true" virtual="true" inherits="BackdropTemplate">
|
|
<Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
|
<EdgeSize>
|
|
<AbsValue val="14"/>
|
|
</EdgeSize>
|
|
<TileSize>
|
|
<AbsValue val="20"/>
|
|
</TileSize>
|
|
<BackgroundInsets>
|
|
<AbsInset left="3" right="3" top="2" bottom="2"/>
|
|
</BackgroundInsets>
|
|
</Backdrop>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" parentKey="text" justifyH="CENTER" inherits="GameFontNormalSmall" nonspacewrap="true">
|
|
<Anchors>
|
|
<Anchor point="BOTTOM" relativePoint="TOP">
|
|
<Offset x="0" y="1"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Button name="$parentButton" hidden="false">
|
|
<Size x="32" y="32"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
|
|
<Offset x="-5" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self:RegisterEvent("ADDON_LOADED")
|
|
</OnLoad>
|
|
<OnEvent>
|
|
if (... == "Neuron") then
|
|
self:SetWidth(self:GetParent():GetHeight())
|
|
self:SetHeight(self:GetParent():GetHeight())
|
|
end
|
|
</OnEvent>
|
|
<OnClick>
|
|
self:GetParent().show = nil
|
|
self:GetParent().popup.timer = 0;
|
|
if (self:GetParent().popup:IsVisible()) then
|
|
self:GetParent().popup:Hide()
|
|
else
|
|
if (self:GetParent().popup.data) then
|
|
self:GetParent().popup:Show()
|
|
end
|
|
end
|
|
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture name="$parentNormalTexture" file="Interface\AddOns\Neuron\Images\UI-Panel-ExpandButton-Up"/>
|
|
<PushedTexture name="$parentPushedTexture" file="Interface\AddOns\Neuron\Images\UI-Panel-ExpandButton-Down"/>
|
|
<DisabledTexture name="$parentDisabledTexture" file="Interface\AddOns\Neuron\Images\UI-Panel-ExpandButton-Disabled"/>
|
|
<HighlightTexture name="$parentHighlightTexture" file="Interface\AddOns\Neuron\Images\UI-Common-MouseHilight" alphaMode="ADD"/>
|
|
</Button>
|
|
<Frame name="$parentPopUp" parentKey="popup" toplevel="true" enableMouse="true" clampedToScreen="true" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Backdrop name="$parentBackdrop" bgFile="Interface\ItemTextFrame\ItemText-Stone-TopLeft" edgeFile="Interface\AddOns\Neuron\Images\UI-Tooltip-Border" tile="true">
|
|
<EdgeSize>
|
|
<AbsValue val="18"/>
|
|
</EdgeSize>
|
|
<TileSize>
|
|
<AbsValue val="8"/>
|
|
</TileSize>
|
|
<BackgroundInsets>
|
|
<AbsInset left="3" right="3" top="2" bottom="2"/>
|
|
</BackgroundInsets>
|
|
</Backdrop>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.timer = 0
|
|
self.options = {}
|
|
self:RegisterEvent("ADDON_LOADED")
|
|
self:SetBackdropColor(0, 0, 0)
|
|
self:SetBackdropBorderColor(0.25, 0.25, 0.25, 1)
|
|
self:Hide()
|
|
</OnLoad>
|
|
<OnShow>
|
|
self.timer = 0
|
|
</OnShow>
|
|
<OnHide>
|
|
self:GetParent().click = nil
|
|
</OnHide>
|
|
<OnUpdate>
|
|
self.timer = self.timer + elapsed
|
|
if (self:IsVisible() and self.timer > 5) then
|
|
if (not self:IsMouseOver()) then
|
|
self:Hide()
|
|
end
|
|
end
|
|
</OnUpdate>
|
|
</Scripts>
|
|
</Frame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self:RegisterEvent("PLAYER_LOGIN")
|
|
self:SetBackdropColor(0, 0, 0, 0)
|
|
self:SetBackdropBorderColor(0.5, 0.5, 0.5)
|
|
</OnLoad>
|
|
<OnTabPressed>
|
|
self:ClearFocus()
|
|
</OnTabPressed>
|
|
<OnEnterPressed>
|
|
self:ClearFocus()
|
|
</OnEnterPressed>
|
|
<OnEscapePressed>
|
|
self:ClearFocus()
|
|
</OnEscapePressed>
|
|
<OnEditFocusLost>
|
|
self:HighlightText(0, 0)
|
|
</OnEditFocusLost>
|
|
<OnEditFocusGained>
|
|
self:HighlightText()
|
|
</OnEditFocusGained>
|
|
</Scripts>
|
|
<FontString name="$parentFont" justifyH="CENTER" inherits="GameFontHighlightSmall"/>
|
|
</EditBox>
|
|
|
|
|
|
<CheckButton name="NeuronOptionsCheckButtonTemplate" virtual="true" inherits="BackdropTemplate">
|
|
<Size x="26" y="26"/>
|
|
<HitRectInsets>
|
|
<AbsInset left="0" right="-50" top="0" bottom="0"/>
|
|
</HitRectInsets>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" parentkey="text" inherits="GameFontNormal">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="RIGHT">
|
|
<Offset x="3" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnClick>
|
|
if ( self:GetChecked() ) then
|
|
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
|
|
else
|
|
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF);
|
|
end
|
|
</OnClick>
|
|
<OnEnter>
|
|
if ( self.tooltipText ) then
|
|
GameTooltip:SetOwner(self, self.tooltipOwnerPoint or "ANCHOR_RIGHT")
|
|
GameTooltip:SetText(self.tooltipText)
|
|
end
|
|
if ( self.tooltipRequirement ) then
|
|
GameTooltip:AddLine(self.tooltipRequirement)
|
|
end
|
|
GameTooltip:Show();
|
|
</OnEnter>
|
|
<OnLeave>
|
|
GameTooltip:Hide();
|
|
</OnLeave>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\Addons\Neuron\Images\RoundCheckBox.tga"/>
|
|
<CheckedTexture file="Interface\Addons\Neuron\Images\RoundCheck.tga"/>
|
|
<DisabledTexture file="Interface\Addons\Neuron\Images\RoundCheckBox.tga"/>
|
|
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
|
|
</CheckButton>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button name="NeuronButtonTemplate1" virtual="true" inherits="BackdropTemplate">
|
|
<Size x="60" y="20"/>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" parentKey="text" inherits="GameFontNormal" justifyH="CENTER" text="">
|
|
<Anchors>
|
|
<Anchor point="CENTER"/>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<NormalTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Up">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</NormalTexture>
|
|
<PushedTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Down">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</PushedTexture>
|
|
<HighlightTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Highlight" alphaMode="ADD">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</HighlightTexture>
|
|
<CheckedTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Highlight" alphaMode="ADD">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</CheckedTexture>
|
|
<DisabledTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Disabled">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</DisabledTexture>
|
|
<NormalFont inherits="GameFontNormalSmall"/>
|
|
<HighlightFont inherits="GameFontHighlightSmall"/>
|
|
<DisabledFont inherits="GameFontDisableSmall"/>
|
|
</Button>
|
|
|
|
<Button name="NeuronTopTabTemplate" motionScriptsWhileDisabled="true" virtual="true" inherits="BackdropTemplate">
|
|
<Size x="10" y="32"/>
|
|
<HitRectInsets>
|
|
<AbsInset left="10" right="10" top="-6" bottom="4"/>
|
|
</HitRectInsets>
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<Texture name="$parentLeftDisabled" parentKey="leftdisabled" file="Interface\AddOns\Neuron\Images\UI-Character-ActiveTab">
|
|
<Size x="20" y="35"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="20"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0" right="0.15625" top="0" bottom="0.546875"/>
|
|
</Texture>
|
|
<Texture name="$parentMiddleDisabled" parentKey="middledisabled" file="Interface\AddOns\Neuron\Images\UI-Character-ActiveTab">
|
|
<Size x="88" y="35"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="$parentLeftDisabled" relativePoint="RIGHT"/>
|
|
</Anchors>
|
|
<TexCoords left="0.15625" right="0.84375" top="0" bottom="0.546875"/>
|
|
</Texture>
|
|
<Texture name="$parentRightDisabled" parentKey="rightdisabled" file="Interface\AddOns\Neuron\Images\UI-Character-ActiveTab">
|
|
<Size x="20" y="35"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="$parentMiddleDisabled" relativePoint="RIGHT"/>
|
|
</Anchors>
|
|
<TexCoords left="0.84375" right="1.0" top="0" bottom="0.546875"/>
|
|
</Texture>
|
|
<Texture name="$parentLeft" parentKey="left" file="Interface\AddOns\Neuron\Images\UI-Character-InActiveTab">
|
|
<Size x="20" y="32"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="0" y="13"/>
|
|
</Anchors>
|
|
<TexCoords left="0" right="0.15625" top="0" bottom="1.0"/>
|
|
</Texture>
|
|
<Texture name="$parentMiddle" parentKey="middle" file="Interface\AddOns\Neuron\Images\UI-Character-InActiveTab">
|
|
<Size x="88" y="32"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
|
|
</Anchors>
|
|
<TexCoords left="0.15625" right="0.84375" top="0" bottom="1.0"/>
|
|
</Texture>
|
|
<Texture name="$parentRight" parentKey="right" file="Interface\AddOns\Neuron\Images\UI-Character-InActiveTab">
|
|
<Size x="20" y="32"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
|
|
</Anchors>
|
|
<TexCoords left="0.84375" right="1.0" top="0" bottom="1.0"/>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
<ButtonText parentKey="text">
|
|
<Size x="0" y="10"/>
|
|
<Anchors>
|
|
<Anchor point="CENTER">
|
|
<Offset x="0" y="2"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</ButtonText>
|
|
<NormalFont style="GameFontNormalSmall"/>
|
|
<HighlightFont style="GameFontHighlightSmall"/>
|
|
<DisabledFont style="GameFontDisableSmall"/>
|
|
<HighlightTexture parentKey="highlighttexture" file="Interface\AddOns\Neuron\Images\UI-Character-Tab-RealHighlight" alphaMode="ADD">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="-4" y="13"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="3" y="-2"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</HighlightTexture>
|
|
</Button>
|
|
|
|
<Button name="NeuronColorSwatchTempate" virtual="true" inherits="BackdropTemplate">
|
|
<Size x="16" y="16"/>
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<Texture parentKey="left">
|
|
<Size x="1" y="1"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Color r="0.5" g="0.5" b="0.5"/>
|
|
</Texture>
|
|
<Texture parentKey="right">
|
|
<Size x="1" y="1"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Color r="0.5" g="0.5" b="0.5"/>
|
|
</Texture>
|
|
<Texture parentKey="top">
|
|
<Size x="1" y="1"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="TOPRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Color r="0.5" g="0.5" b="0.5"/>
|
|
</Texture>
|
|
<Texture parentKey="bottom">
|
|
<Size x="1" y="1"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Color r="0.5" g="0.5" b="0.5"/>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self:GetNormalTexture():SetVertexColor(0,0,0,1)
|
|
</OnLoad>
|
|
<OnEnter>
|
|
self.left:SetTexture(1, 0.82, 0, 1)
|
|
self.right:SetTexture(1, 0.82, 0, 1)
|
|
self.top:SetTexture(1, 0.82, 0, 1)
|
|
self.bottom:SetTexture(1, 0.82, 0, 1)
|
|
</OnEnter>
|
|
<OnLeave>
|
|
self.left:SetTexture(0.5, 0.5, 0.5, 1)
|
|
self.right:SetTexture(0.5, 0.5, 0.5, 1)
|
|
self.top:SetTexture(0.5, 0.5, 0.5, 1)
|
|
self.bottom:SetTexture(0.5, 0.5, 0.5, 1)
|
|
</OnLeave>
|
|
</Scripts>
|
|
<NormalTexture name="$parentNormalTexture" drawLayer="ARTWORK" file="Interface\ChatFrame\ChatFrameColorSwatch">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="-1" y="1"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="1" y="-1"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</NormalTexture>
|
|
</Button>
|
|
|
|
<!-- CheckButton Templates -->
|
|
|
|
<CheckButton name="NeuronCheckButtonTemplate1" virtual="true" inherits="BackdropTemplate">
|
|
<Size x="60" y="20"/>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" parentKey="text" inherits="GameFontNormal" justifyH="CENTER" text="">
|
|
<Anchors>
|
|
<Anchor point="CENTER"/>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnEnter>
|
|
if ( self.tooltipText ) then
|
|
GameTooltip:SetOwner(self, self.tooltipOwnerPoint or "ANCHOR_RIGHT")
|
|
GameTooltip:SetText(self.tooltipText)
|
|
end
|
|
if ( self.tooltipRequirement ) then
|
|
GameTooltip:AddLine(self.tooltipRequirement)
|
|
end
|
|
GameTooltip:Show();
|
|
</OnEnter>
|
|
<OnLeave>
|
|
GameTooltip:Hide();
|
|
</OnLeave>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Up">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</NormalTexture>
|
|
<PushedTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Down">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</PushedTexture>
|
|
<HighlightTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Highlight" alphaMode="ADD">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</HighlightTexture>
|
|
<CheckedTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Highlight" alphaMode="ADD">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</CheckedTexture>
|
|
<DisabledTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Disabled">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</DisabledTexture>
|
|
<NormalFont inherits="GameFontNormalSmall"/>
|
|
<HighlightFont inherits="GameFontHighlightSmall"/>
|
|
<DisabledFont inherits="GameFontDisableSmall"/>
|
|
</CheckButton>
|
|
|
|
<CheckButton name="NeuronCheckButtonTabTemplate" virtual="true" inherits="BackdropTemplate">
|
|
<Size x="60" y="20"/>
|
|
<Backdrop bgFile="Interface\AddOns\Neuron\Images\UI-Panel-Tab-Background" edgeFile="Interface\AddOns\Neuron\Images\UI-Tooltip-Border-Tab">
|
|
<EdgeSize>
|
|
<AbsValue val="18"/>
|
|
</EdgeSize>
|
|
<TileSize>
|
|
<AbsValue val="64"/>
|
|
</TileSize>
|
|
<BackgroundInsets>
|
|
<AbsInset left="2" right="2" top="0" bottom="2"/>
|
|
</BackgroundInsets>
|
|
</Backdrop>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" parentKey="text" inherits="GameFontNormal" justifyH="CENTER" text="">
|
|
<Anchors>
|
|
<Anchor point="CENTER"/>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<NormalFont inherits="GameFontNormalSmall"/>
|
|
<HighlightFont inherits="GameFontHighlightSmall"/>
|
|
<DisabledFont inherits="GameFontDisableSmall"/>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self:SetBackdropBorderColor(0.35, 0.35, 0.35, 1)
|
|
self:SetBackdropColor(0.7,0.7,0.7,1)
|
|
</OnLoad>
|
|
<OnEnter>
|
|
self:SetBackdropColor(1,1,1,1)
|
|
</OnEnter>
|
|
<OnLeave>
|
|
if (not self.selected) then
|
|
self:SetBackdropColor(0.7,0.7,0.7,1)
|
|
end
|
|
</OnLeave>
|
|
</Scripts>
|
|
</CheckButton>
|
|
|
|
<CheckButton name="NeuronCheckButtonTemplateGrey" virtual="true" inherits="BackdropTemplate">
|
|
<Size x="60" y="20"/>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" parentKey="text" inherits="GameFontNormal" justifyH="CENTER" text="">
|
|
<Anchors>
|
|
<Anchor point="CENTER"/>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<NormalTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Disabled">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</NormalTexture>
|
|
<PushedTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Disabled-Down">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</PushedTexture>
|
|
<HighlightTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-YellowHighlight" alphaMode="ADD">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</HighlightTexture>
|
|
<CheckedTexture file="" alphaMode="ADD">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</CheckedTexture>
|
|
<DisabledTexture file="Interface\AddOns\Neuron\Images\UI-Panel-Button-Disabled">
|
|
<TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
|
|
</DisabledTexture>
|
|
<NormalFont inherits="GameFontNormalSmall"/>
|
|
<HighlightFont inherits="GameFontHighlightSmall"/>
|
|
<DisabledFont inherits="GameFontDisableSmall"/>
|
|
</CheckButton>
|
|
|
|
<CheckButton name="NeuronScrollFrameButtonTemplate" virtual="true" inherits="BackdropTemplate">
|
|
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" inherits="GameFontNormalSmall" justifyH="CENTER" nonspacewrap="false">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="2" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-4" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Button name="$parentToggle" parentKey="toggle" hidden="true">
|
|
<Size x="14" y="14"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT">
|
|
<Offset x="-3" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<NormalTexture name="$parentNormalTexture" urgency="5" file="Interface\Buttons\UI-PlusButton-Up"/>
|
|
<PushedTexture name="$parentPushedTexture" file="Interface\Buttons\UI-MinusButton-Up"/>
|
|
<HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD"/>
|
|
</Button>
|
|
</Frames>
|
|
<NormalTexture file="Interface\QuestFrame\UI-QuestTitleHighlight">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="2" y="-2"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-2" y="2"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</NormalTexture>
|
|
<CheckedTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="2" y="-2"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-2" y="2"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckedTexture>
|
|
<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="2" y="-2"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-2" y="2"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</HighlightTexture>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self:GetNormalTexture():SetVertexColor(0.7,0.7,0.7)
|
|
self:SetBackdropColor(0, 0, 0)
|
|
self:SetBackdropBorderColor(0.5, 0.5, 0.5)
|
|
</OnLoad>
|
|
<OnEnter>
|
|
if (self.tooltip) then
|
|
GameTooltip:SetOwner(self, "ANCHOR_CURSOR")
|
|
GameTooltip:SetText(self.tooltip)
|
|
end
|
|
</OnEnter>
|
|
<OnLeave>
|
|
GameTooltip:Hide()
|
|
</OnLeave>
|
|
</Scripts>
|
|
</CheckButton>
|
|
|
|
<CheckButton name="NeuronMacroIconButtonTemplate" virtual="true" inherits="BackdropTemplate">
|
|
<Size x="30" y="30"/>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<Texture file="Interface\AddOns\Neuron\Images\UI-QuickslotGray" parentKey="slot">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="-2" y="2"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="2" y="-2"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0" right="1" top="0" bottom="1"/>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.elapsed = 0
|
|
self.click = false
|
|
self:RegisterForClicks("AnyUp")
|
|
</OnLoad>
|
|
<OnClick>
|
|
if (self.onclick_func) then
|
|
self.onclick_func(self, button, down)
|
|
end
|
|
</OnClick>
|
|
<OnUpdate>
|
|
if (self.onupdate_func) then
|
|
self.onupdate_func(self, elapsed)
|
|
end
|
|
</OnUpdate>
|
|
</Scripts>
|
|
<NormalTexture name="$parentIcon" drawLayer="ARTWORK" parentKey="icon">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="2" y="-2"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-2" y="2"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.07" right="0.93" top="0.07" bottom="0.93"/>
|
|
</NormalTexture>
|
|
<CheckedTexture alphaMode="ADD" file="Interface\AddOns\Neuron\Images\CheckButtonHilight"/>
|
|
</CheckButton>
|
|
|
|
<CheckButton name="NeuronOptionsCheckButtonSwatchTemplate" virtual="true" inherits="BackdropTemplate">
|
|
<Size x="20" y="20"/>
|
|
<HitRectInsets>
|
|
<AbsInset left="2" right="2" top="2" bottom="2"/>
|
|
</HitRectInsets>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString justifyH="RIGHT" parentKey="text" inherits="GameFontNormal">
|
|
<Anchors>
|
|
<Anchor point="RIGHT" relativePoint="LEFT">
|
|
<Offset x="-15" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Button parentKey="swatch1" inherits="NeuronColorSwatchTempate" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="RIGHT">
|
|
<Offset x="20" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Button>
|
|
<Button parentKey="swatch2" inherits="NeuronColorSwatchTempate" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="RIGHT">
|
|
<Offset x="45" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Button>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnClick>
|
|
if ( self:GetChecked() ) then
|
|
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
|
|
else
|
|
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF);
|
|
end
|
|
</OnClick>
|
|
<OnEnter>
|
|
if ( self.tooltipText ) then
|
|
GameTooltip:SetOwner(self, self.tooltipOwnerPoint or "ANCHOR_RIGHT")
|
|
GameTooltip:SetText(self.tooltipText)
|
|
end
|
|
if ( self.tooltipRequirement ) then
|
|
GameTooltip:AddLine(self.tooltipRequirement)
|
|
end
|
|
GameTooltip:Show();
|
|
</OnEnter>
|
|
<OnLeave>
|
|
GameTooltip:Hide();
|
|
</OnLeave>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\Addons\Neuron\Images\RoundCheckBox.tga"/>
|
|
<CheckedTexture file="Interface\Addons\Neuron\Images\RoundCheck.tga"/>
|
|
<DisabledTexture file="Interface\Addons\Neuron\Images\RoundCheckBox.tga"/>
|
|
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
|
|
</CheckButton>
|
|
|
|
<!-- Editbox Templates -->
|
|
|
|
<!-- ScrollFrame Templates -->
|
|
|
|
<ScrollFrame name="NeuronScrollFrameTemplate1" toplevel="true" inherits="UIPanelScrollFrameTemplate,BackdropTemplate" virtual="true">
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.offset = 0
|
|
self.scrollbar = _G[self:GetName().."ScrollBar"]
|
|
self.scrollbarup = _G[self.scrollbar:GetName().."ScrollUpButton"]
|
|
self.scrollbardown = _G[self.scrollbar:GetName().."ScrollDownButton"]
|
|
self.thumbtexture = _G[self.scrollbar:GetName().."ThumbTexture"]
|
|
|
|
self.scrollbar:ClearAllPoints()
|
|
self.scrollbar:SetPoint("TOPLEFT", self, "TOPRIGHT", -18, -10)
|
|
self.scrollbar:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", -18, 8)
|
|
|
|
self.scrollbarup:SetPoint("BOTTOM", self.scrollbar, "TOP", 0, -4)
|
|
self.scrollbardown:SetPoint("TOP", self.scrollbar, "BOTTOM", 0, 4)
|
|
|
|
self.parent = self:GetParent()
|
|
</OnLoad>
|
|
<OnScrollRangeChanged>
|
|
ScrollFrame_OnScrollRangeChanged(self, yrange)
|
|
</OnScrollRangeChanged>
|
|
<OnVerticalScroll>
|
|
self.scrollbar:SetValue(offset)
|
|
local min, max = self.scrollbar:GetMinMaxValues()
|
|
if ( offset == 0 ) then
|
|
self.scrollbarup:Disable()
|
|
else
|
|
self.scrollbarup:Enable()
|
|
end
|
|
if ((self.scrollbar:GetValue() - max) == 0) then
|
|
self.scrollbardown:Disable()
|
|
else
|
|
self.scrollbardown:Enable()
|
|
end
|
|
</OnVerticalScroll>
|
|
<OnMouseWheel>
|
|
ScrollFrameTemplate_OnMouseWheel(self, delta)
|
|
</OnMouseWheel>
|
|
</Scripts>
|
|
</ScrollFrame>
|
|
|
|
<ScrollFrame name="NeuronScrollFrameTemplate2" inherits="UIPanelScrollFrameTemplate,BackdropTemplate" virtual="true">
|
|
<ScrollChild>
|
|
<EditBox name="$parentEditBox" parentKey="edit" multiLine="true" letters="1023" countInvisibleLetters="true" autoFocus="false">
|
|
<Size x="330" y="1"/>
|
|
<Scripts>
|
|
<OnTextChanged>
|
|
ScrollingEdit_OnTextChanged(self, self:GetParent())
|
|
</OnTextChanged>
|
|
<OnCursorChanged function="ScrollingEdit_OnCursorChanged"/>
|
|
<OnEscapePressed>
|
|
self:ClearFocus()
|
|
</OnEscapePressed>
|
|
<OnTabPressed>
|
|
self:ClearFocus()
|
|
</OnTabPressed>
|
|
<OnHide>
|
|
self:ClearFocus()
|
|
</OnHide>
|
|
<OnUpdate>
|
|
ScrollingEdit_OnUpdate(self, elapsed, self:GetParent())
|
|
</OnUpdate>
|
|
</Scripts>
|
|
<FontString inherits="GameFontHighlight"/>
|
|
</EditBox>
|
|
</ScrollChild>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.scrollbar = _G[self:GetName().."ScrollBar"]
|
|
self.scrollbarup = _G[self.scrollbar:GetName().."ScrollUpButton"]
|
|
self.scrollbardown = _G[self.scrollbar:GetName().."ScrollDownButton"]
|
|
|
|
self.scrollbar:ClearAllPoints()
|
|
self.scrollbar:SetPoint("TOPLEFT", self, "TOPRIGHT", -18, -10)
|
|
self.scrollbar:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", -18, 8)
|
|
|
|
self.scrollbarup:SetPoint("BOTTOM", self.scrollbar, "TOP", 0, -4)
|
|
self.scrollbardown:SetPoint("TOP", self.scrollbar, "BOTTOM", 0, 4)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</ScrollFrame>
|
|
|
|
<!-- Frame Templates -->
|
|
|
|
<!-- Not Templates -->
|
|
|
|
<Frame name="NeuronMainMenu" enableMouse="true" movable="true" hidden="true" frameStrata="DIALOG" parent="UIParent" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER">
|
|
<Offset x="0" y="75"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:MainMenu_OnLoad(self)
|
|
</OnLoad>
|
|
<OnDragStart>
|
|
self:StartMoving()
|
|
</OnDragStart>
|
|
<OnDragStop>
|
|
self:StopMovingOrSizing()
|
|
</OnDragStop>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="NeuronBarEditor" enableMouse="true" movable="true" hidden="true" frameStrata="DIALOG" parent="UIParent" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER">
|
|
<Offset x="0" y="75"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<Frame name="$parentBarList" parentKey="barlist" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="10" y="-10"/>
|
|
</Anchor>
|
|
<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
|
|
<Offset x="150" y="-10"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<ScrollFrame name="$parentScrollFrame" inherits="NeuronScrollFrameTemplate1">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="5" y="-5"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-27" y="5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<ScrollChild>
|
|
<Frame name="$parentScrollChildFrame" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="5" y="-5"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-5" y="5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Frame>
|
|
<Scripts>
|
|
<OnShow>
|
|
--self:SetValue(0)
|
|
</OnShow>
|
|
</Scripts>
|
|
</ScrollChild>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:BarListScrollFrame_OnLoad(self)
|
|
</OnLoad>
|
|
<OnShow>
|
|
Neuron.NeuronGUI:BarListScrollFrameUpdate(self)
|
|
</OnShow>
|
|
<OnVerticalScroll>
|
|
FauxScrollFrame_OnVerticalScroll(self, offset, 2, Neuron.BarListScrollFrameUpdate)
|
|
</OnVerticalScroll>
|
|
</Scripts>
|
|
</ScrollFrame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:BarList_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="$parentBarOptions" parentKey="baropt" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentBarList" relativePoint="TOPRIGHT" >
|
|
<Offset x="3" y="-30"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-10" y="45"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<Frame name="$parentCheckOptions" parentKey="chkoptions" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
|
|
<Offset x="160" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:BarOptions_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="$parentAdjustableOptions" parentKey="adjoptions" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentCheckOptions" relativePoint="TOPRIGHT">
|
|
<Offset x="3" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMLEFT" relativeTo="$parentCheckOptions" relativePoint="BOTTOMRIGHT">
|
|
<Offset x="0" y="115"/>
|
|
</Anchor>
|
|
<Anchor point="RIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:AdjustableOptions_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="$parentVisiualOptions" parentKey="visoptions" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentAdjustableOptions" relativePoint="BOTTOMLEFT">
|
|
<Offset x="0" y="-3"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:VisiualOptions_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="$parentColorPicker" parentKey="colorpicker" hidden="true" toplevel="true" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentAdjustableOptions" relativePoint="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:BarEditorColorPicker_OnLoad(self)
|
|
</OnLoad>
|
|
<OnShow>
|
|
Neuron.NeuronGUI:BarEditorColorPicker_OnShow(self)
|
|
</OnShow>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="$parentBarStates" parentKey="barstates" hidden="true" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentBarList" relativePoint="TOPRIGHT" >
|
|
<Offset x="3" y="-30"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-10" y="45"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<Frame name="$parentActionEditor" parentKey="actionedit" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="163" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
|
|
<Offset x="0" y="-170"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<Frame name="$parentPresets" parentKey="presets" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentPrimary" parentKey="primary" justifyH="CENTER" inherits="GameFontNormalSmall">
|
|
<Anchors>
|
|
<Anchor point="TOP">
|
|
<Offset x="-100" y="-10"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentSecondary" parentKey="secondary" justifyH="CENTER" inherits="GameFontNormalSmall">
|
|
<Anchors>
|
|
<Anchor point="TOP">
|
|
<Offset x="150" y="-10"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Frame parentKey="primary" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="6" y="-6"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
|
|
<Offset x="110" y="50"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SubFrameBlackBackdrop_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
<Frame name="$parentSecondary" parentKey="secondary" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="111" y="-6"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
|
|
<Offset x="-5" y="50"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
|
|
<Frames>
|
|
<ScrollFrame name="$parentScrollFrame" inherits="NeuronScrollFrameTemplate1">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="5" y="-5"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-27" y="5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<ScrollChild>
|
|
<Frame name="$parentScrollChildFrame" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="5" y="-5"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-5" y="5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Frame>
|
|
<Scripts>
|
|
<OnShow>
|
|
--self:SetValue(0)
|
|
</OnShow>
|
|
</Scripts>
|
|
</ScrollChild>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SecondaryPresetsScrollFrame_OnLoad(self)
|
|
</OnLoad>
|
|
<OnShow>
|
|
Neuron.NeuronGUI:SecondaryPresetsScrollFrameUpdate(self)
|
|
</OnShow>
|
|
<OnVerticalScroll>
|
|
FauxScrollFrame_OnVerticalScroll(self, offset, 18, Neuron.SecondaryPresetsScrollFrameUpdate)
|
|
</OnVerticalScroll>
|
|
</Scripts>
|
|
</ScrollFrame>
|
|
</Frames>
|
|
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SubFrameBlackBackdrop_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
</Frames>
|
|
</Frame>
|
|
<Frame name="$parentCustom" parentKey="custom" hidden="true" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<Frame inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Frame>
|
|
</Frames>
|
|
</Frame>
|
|
<Frame name="$parentHidden" parentKey="hidden" hidden="true" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<Frame inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Frame>
|
|
</Frames>
|
|
</Frame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:ActionEditor_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
<Frame name="$parentVisEditor" parentKey="visedit" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentActionEditor" relativePoint="BOTTOMLEFT">
|
|
<Offset x="0" y="-55"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<ScrollFrame name="$parentScrollFrame" inherits="NeuronScrollFrameTemplate1">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="5" y="-5"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-27" y="5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<ScrollChild>
|
|
<Frame name="$parentScrollChildFrame" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="5" y="-5"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-5" y="5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Frame>
|
|
<Scripts>
|
|
<OnShow>
|
|
--self:SetValue(0)
|
|
</OnShow>
|
|
</Scripts>
|
|
</ScrollChild>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:VisEditorScrollFrame_OnLoad(self)
|
|
</OnLoad>
|
|
<OnShow>
|
|
Neuron.NeuronGUI:VisEditorScrollFrameUpdate(self)
|
|
</OnShow>
|
|
<OnVerticalScroll>
|
|
FauxScrollFrame_OnVerticalScroll(self, offset, 18, Neuron.VisEditorScrollFrameUpdate)
|
|
</OnVerticalScroll>
|
|
</Scripts>
|
|
</ScrollFrame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:VisEditor_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="$parentStateList" parentKey="statelist" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT" relativeTo="$parentVisEditor" relativePoint="BOTTOMLEFT">
|
|
<Offset x="-3" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:StateList_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:BarStates_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="$parentTargetOptions" parentKey="targetoptions" hidden="true" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentBarList" relativePoint="TOPRIGHT" >
|
|
<Offset x="3" y="-30"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-10" y="45"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<Frame name="$parentList" parentKey="list" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
|
|
<Offset x="150" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Backdrop bgFile="Interface\FriendsFrame\UI-Toast-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
|
<EdgeSize>
|
|
<AbsValue val="16"/>
|
|
</EdgeSize>
|
|
<TileSize>
|
|
<AbsValue val="16"/>
|
|
</TileSize>
|
|
<BackgroundInsets>
|
|
<AbsInset left="5" right="5" top="5" bottom="5"/>
|
|
</BackgroundInsets>
|
|
</Backdrop>
|
|
<Frames>
|
|
<ScrollFrame name="$parentScrollFrame" inherits="NeuronScrollFrameTemplate1">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="5" y="-5"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-27" y="5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<ScrollChild>
|
|
<Frame name="$parentScrollChildFrame" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="5" y="-5"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-5" y="5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Frame>
|
|
<Scripts>
|
|
<OnShow>
|
|
--self:SetValue(0)
|
|
</OnShow>
|
|
</Scripts>
|
|
</ScrollChild>
|
|
<Scripts>
|
|
<OnLoad>
|
|
--Neuron.BarGroupScrollFrame_OnLoad(self)
|
|
</OnLoad>
|
|
<OnShow>
|
|
--Neuron.BarGroupScrollFrameUpdate()
|
|
</OnShow>
|
|
<OnVerticalScroll>
|
|
--FauxScrollFrame_OnVerticalScroll(self, offset, 2, Neuron.BarGroupScrollFrameUpdate)
|
|
</OnVerticalScroll>
|
|
</Scripts>
|
|
</ScrollFrame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
--Neuron.BarGroup_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
--Neuron.NeuronGUI:TargetOptions_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Button name="$parentCreate" inherits="NeuronButtonTemplate1">
|
|
<Size x="60" y="28"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentBarList" relativePoint="BOTTOMLEFT">
|
|
<Offset x="-1" y="-4"/>
|
|
</Anchor>
|
|
<Anchor point="TOPRIGHT" relativeTo="$parentBarList" relativePoint="BOTTOMRIGHT">
|
|
<Offset x="2.5" y="-4"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:CreateButton_OnLoad(self)
|
|
</OnLoad>
|
|
<OnClick>
|
|
Neuron.NeuronGUI:BarEditor_CreateNewBar(self)
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
<Button name="$parentDelete" inherits="NeuronButtonTemplate1">
|
|
<Size x="150" y="28"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT" relativeTo="NeuronBarEditor" relativePoint="BOTTOMRIGHT">
|
|
<Offset x="-8" y="14"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:DeleteButton_OnLoad(self)
|
|
</OnLoad>
|
|
<OnClick>
|
|
Neuron.NeuronGUI:BarEditor_DeleteBar(self)
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
<Frame name="$parentConfirm" hidden="true" inherits="BackdropTemplate">
|
|
<Size x="200" y="28"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT" relativeTo="NeuronBarEditor" relativePoint="BOTTOMRIGHT">
|
|
<Offset x="-10" y="14"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentTitle" parentKey="title" inherits="GameFontNormal" justifyH="CENTER">
|
|
<Anchors>
|
|
<Anchor point="CENTER">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Button name="$parentConfirmYes" inherits="NeuronButtonTemplate1">
|
|
<Size x="60" y="28"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:ConfirmYes_OnLoad(self)
|
|
</OnLoad>
|
|
<OnClick>
|
|
Neuron.NeuronGUI:BarEditor_ConfirmYes(self)
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
<Button name="$parentConfirmNo" inherits="NeuronButtonTemplate1">
|
|
<Size x="60" y="28"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:ConfirmNo_OnLoad(self)
|
|
</OnLoad>
|
|
<OnClick>
|
|
Neuron.NeuronGUI:BarEditor_ConfirmNo(self)
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:Confirm_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Button name="$parentDone" toplevel="true" frameStrata="TOOLTIP">
|
|
<Size x="32" y="32"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT">
|
|
<Offset x="1" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.button = "close"
|
|
</OnLoad>
|
|
<OnClick>
|
|
self:GetParent():Hide()
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture urgency="5" file="Interface\AddOns\Neuron\Images\UI-Panel-MinimizeButton-Up"/>
|
|
<PushedTexture file="Interface\AddOns\Neuron\Images\UI-Panel-MinimizeButton-Down"/>
|
|
<HighlightTexture urgency="5" file="Interface\AddOns\Neuron\Images\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
|
|
</Button>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:BarEditor_OnLoad(self)
|
|
</OnLoad>
|
|
<OnDragStart>
|
|
self:StartMoving()
|
|
</OnDragStart>
|
|
<OnDragStop>
|
|
self:StopMovingOrSizing()
|
|
</OnDragStop>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="NeuronObjectEditor" frameStrata="DIALOG" enableMouse="true" movable="true" parent="UIParent" hidden="true" inherits="BackdropTemplate">
|
|
<Size x="500" y="415"/>
|
|
<Anchors>
|
|
<Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<Button name="$parentDone" parentKey="done" toplevel="true" frameStrata="TOOLTIP">
|
|
<Size x="32" y="32"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT">
|
|
<Offset x="1" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.button = "close"
|
|
</OnLoad>
|
|
<OnClick>
|
|
self:GetParent():Hide()
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture urgency="5" file="Interface\AddOns\Neuron\Images\UI-Panel-MinimizeButton-Up"/>
|
|
<PushedTexture file="Interface\AddOns\Neuron\Images\UI-Panel-MinimizeButton-Down"/>
|
|
<HighlightTexture urgency="5" file="Interface\AddOns\Neuron\Images\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
|
|
</Button>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:ObjectEditor_OnLoad(self)
|
|
</OnLoad>
|
|
<OnShow>
|
|
Neuron.NeuronGUI:ObjectEditor_OnShow(self)
|
|
</OnShow>
|
|
<OnHide>
|
|
Neuron.NeuronGUI:ObjectEditor_OnHide(self)
|
|
</OnHide>
|
|
<OnDragStart>
|
|
self:StartMoving()
|
|
</OnDragStart>
|
|
<OnDragStop>
|
|
self:StopMovingOrSizing()
|
|
</OnDragStop>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="NeuronButtonEditor" frameStrata="DIALOG" enableMouse="true" movable="true" parent="NeuronObjectEditor" hidden="true" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="NeuronObjectEditor" relativePoint="TOPLEFT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT" relativeTo="NeuronObjectEditor" relativePoint="BOTTOMRIGHT">
|
|
<Offset x="0" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<Frame name="$parentActionList" parentKey="actionlist" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="10" y="-10"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
|
|
<Offset x="135" y="10"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Backdrop bgFile="Interface\FriendsFrame\UI-Toast-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
|
<EdgeSize>
|
|
<AbsValue val="16"/>
|
|
</EdgeSize>
|
|
<TileSize>
|
|
<AbsValue val="16"/>
|
|
</TileSize>
|
|
<BackgroundInsets>
|
|
<AbsInset left="5" right="5" top="5" bottom="5"/>
|
|
</BackgroundInsets>
|
|
</Backdrop>
|
|
<Frames>
|
|
<ScrollFrame name="$parentScrollFrame" inherits="NeuronScrollFrameTemplate1">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="5" y="-5"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-27" y="5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<ScrollChild>
|
|
<Frame name="$parentScrollChildFrame" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="5" y="-5"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-5" y="5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Frame>
|
|
<Scripts>
|
|
<OnShow>
|
|
--self:SetValue(0)
|
|
</OnShow>
|
|
</Scripts>
|
|
</ScrollChild>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:ActionListScrollFrame_OnLoad(self)
|
|
</OnLoad>
|
|
<OnShow>
|
|
Neuron.NeuronGUI:ActionListScrollFrameUpdate(self)
|
|
</OnShow>
|
|
<OnVerticalScroll>
|
|
FauxScrollFrame_OnVerticalScroll(self, offset, 2, Neuron.NeuronGUI:ActionListScrollFrameUpdate(self))
|
|
</OnVerticalScroll>
|
|
</Scripts>
|
|
</ScrollFrame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:ActionList_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<ScrollFrame name="$parentIconList" frameStrata="TOOLTIP" enableMouse="true" parentKey="iconlist" inherits="NeuronScrollFrameTemplate1" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentActionList" relativePoint="TOPLEFT">
|
|
<Offset x="0" y="-45"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-37" y="14"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
<Frame inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="0" y="45"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="28" y="-5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SubFrameBlackBackdrop_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
<Button toplevel="true" frameStrata="TOOLTIP">
|
|
<Size x="32" y="32"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT">
|
|
<Offset x="30" y="46"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
self:GetParent():Hide()
|
|
</OnClick>
|
|
<OnHide>
|
|
Neuron.NeuronGUI:ButtonEditorIconList_ResetCustom(self:GetParent():GetParent())
|
|
</OnHide>
|
|
</Scripts>
|
|
<NormalTexture urgency="5" file="Interface\AddOns\Neuron\Images\UI-Panel-MinimizeButton-Up"/>
|
|
<PushedTexture file="Interface\AddOns\Neuron\Images\UI-Panel-MinimizeButton-Down"/>
|
|
<HighlightTexture urgency="5" file="Interface\AddOns\Neuron\Images\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
|
|
</Button>
|
|
</Frames>
|
|
<ScrollChild>
|
|
<Frame name="$parentScrollChildFrame" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="5" y="-5"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-5" y="5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Frame>
|
|
<Scripts>
|
|
<OnShow>
|
|
--self:SetValue(0)
|
|
</OnShow>
|
|
</Scripts>
|
|
</ScrollChild>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.offset = 0
|
|
self.scrollbar = _G[self:GetName().."ScrollBar"]
|
|
self.scrollbarup = _G[self.scrollbar:GetName().."ScrollUpButton"]
|
|
self.scrollbardown = _G[self.scrollbar:GetName().."ScrollDownButton"]
|
|
self.parent = self:GetParent()
|
|
</OnLoad>
|
|
<OnVerticalScroll>
|
|
FauxScrollFrame_OnVerticalScroll(self, offset, 1, Neuron.NeuronGUI:MacroIconListUpdate(self))
|
|
</OnVerticalScroll>
|
|
</Scripts>
|
|
</ScrollFrame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
C_Timer.After(1, function() Neuron.NeuronGUI:ButtonEditor_OnLoad(self) Neuron.NeuronGUI:FlyoutOptions_OnLoad(self) end)
|
|
</OnLoad>
|
|
<OnShow>
|
|
Neuron.NeuronGUI:ButtonEditor_OnShow(self)
|
|
</OnShow>
|
|
<OnHide>
|
|
Neuron.NeuronGUI:ButtonEditor_OnHide(self)
|
|
</OnHide>
|
|
<OnDragStart>
|
|
self:GetParent():StartMoving()
|
|
</OnDragStart>
|
|
<OnDragStop>
|
|
self:GetParent():StopMovingOrSizing()
|
|
</OnDragStop>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<ColorSelect name="NeuronColorPicker" parent="UIParent" frameStrata="TOOLTIP" enableMouse="true" enableKeyboard="true" hidden="true" inherits="BackdropTemplate">
|
|
<Size x="400" y="240"/>
|
|
<ColorWheelTexture name="$parentColorPickerWheel">
|
|
<Size x="150" y="150"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="50" y="-10"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</ColorWheelTexture>
|
|
<ColorWheelThumbTexture file="Interface\Buttons\UI-ColorPicker-Buttons">
|
|
<Size x="10" y="10"/>
|
|
<TexCoords left="0" right="0.15625" top="0" bottom="0.625"/>
|
|
</ColorWheelThumbTexture>
|
|
<ColorValueTexture name="$parentColorPickerSwatch">
|
|
<Size x="20" y="150"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="$parentColorPickerWheel" relativePoint="RIGHT">
|
|
<Offset x="20" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
</ColorValueTexture>
|
|
<ColorValueThumbTexture file="Interface\Buttons\UI-ColorPicker-Buttons">
|
|
<Size x="32" y="12"/>
|
|
<TexCoords left="0.25" right="1.0" top="0" bottom="0.875"/>
|
|
</ColorValueThumbTexture>
|
|
<Frames>
|
|
<Slider name="$parentOpacitySlider" parentKey="alpha" orientation="VERTICAL" minValue="0" maxValue="1" valueStep="0.01" defaultValue="1" inherits="BackdropTemplate">
|
|
<Size x="24" y="155"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT">
|
|
<Offset x="-150" y="-6"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SubFrameBlackBackdrop_OnLoad(self)
|
|
</OnLoad>
|
|
<OnValueChanged>
|
|
if (NeuronColorPicker.opacityFunc) then
|
|
NeuronColorPicker.opacityFunc()
|
|
end
|
|
|
|
if (self:GetParent().alphavalue) then
|
|
self:GetParent().alphavalue:SetText(1-self:GetValue())
|
|
end
|
|
</OnValueChanged>
|
|
</Scripts>
|
|
<ThumbTexture file="Interface\Buttons\UI-SliderBar-Button-Vertical">
|
|
<Size x="32" y="32"/>
|
|
</ThumbTexture>
|
|
</Slider>
|
|
<EditBox name="$parentRedValue" parentKey="redvalue" inherits="NeuronEditBoxTemplateSmall" letters="4">
|
|
<Size x="60" y="24"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT">
|
|
<Offset x="-50" y="-5"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" inherits="GameFontHighlight" justifyH="RIGHT" text="R">
|
|
<Anchors>
|
|
<Anchor point="RIGHT" relativePoint="LEFT">
|
|
<Offset x="-1" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Color r="1.0" g="1.0" b="1.0" a="1.0"/>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SubFrameBlackBackdrop_OnLoad(self)
|
|
</OnLoad>
|
|
<OnTabPressed>
|
|
self:GetParent().greenvalue:SetFocus()
|
|
self:GetParent():SetColorRGB(self:GetParent().redvalue:GetText(), self:GetParent().greenvalue:GetText(), self:GetParent().bluevalue:GetText())
|
|
</OnTabPressed>
|
|
<OnEnterPressed>
|
|
self:ClearFocus()
|
|
self:GetParent():SetColorRGB(self:GetParent().redvalue:GetText(), self:GetParent().greenvalue:GetText(), self:GetParent().bluevalue:GetText())
|
|
</OnEnterPressed>
|
|
</Scripts>
|
|
</EditBox>
|
|
<EditBox name="$parentGreenValue" parentKey="greenvalue" inherits="NeuronEditBoxTemplateSmall" letters="4">
|
|
<Size x="60" y="24"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT" relativeTo="$parentRedValue" relativePoint="BOTTOMRIGHT">
|
|
<Offset x="0" y="-10"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" inherits="GameFontHighlight" justifyH="RIGHT" text="G">
|
|
<Anchors>
|
|
<Anchor point="RIGHT" relativePoint="LEFT">
|
|
<Offset x="-1" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Color r="1.0" g="1.0" b="1.0" a="1.0"/>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SubFrameBlackBackdrop_OnLoad(self)
|
|
</OnLoad>
|
|
<OnTabPressed>
|
|
self:GetParent().bluevalue:SetFocus()
|
|
self:GetParent():SetColorRGB(self:GetParent().redvalue:GetText(), self:GetParent().greenvalue:GetText(), self:GetParent().bluevalue:GetText())
|
|
</OnTabPressed>
|
|
<OnEnterPressed>
|
|
self:ClearFocus()
|
|
self:GetParent():SetColorRGB(self:GetParent().redvalue:GetText(), self:GetParent().greenvalue:GetText(), self:GetParent().bluevalue:GetText())
|
|
</OnEnterPressed>
|
|
</Scripts>
|
|
</EditBox>
|
|
<EditBox name="$parentBlueValue" parentKey="bluevalue" inherits="NeuronEditBoxTemplateSmall" letters="4">
|
|
<Size x="60" y="24"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT" relativeTo="$parentGreenValue" relativePoint="BOTTOMRIGHT">
|
|
<Offset x="0" y="-10"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" inherits="GameFontHighlight" justifyH="RIGHT" text="B">
|
|
<Anchors>
|
|
<Anchor point="RIGHT" relativePoint="LEFT">
|
|
<Offset x="-1" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Color r="1.0" g="1.0" b="1.0" a="1.0"/>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SubFrameBlackBackdrop_OnLoad(self)
|
|
</OnLoad>
|
|
<OnTabPressed>
|
|
self:GetParent().hexvalue:SetFocus()
|
|
self:GetParent():SetColorRGB(self:GetParent().redvalue:GetText(), self:GetParent().greenvalue:GetText(), self:GetParent().bluevalue:GetText())
|
|
</OnTabPressed>
|
|
<OnEnterPressed>
|
|
self:ClearFocus()
|
|
self:GetParent():SetColorRGB(self:GetParent().redvalue:GetText(), self:GetParent().greenvalue:GetText(), self:GetParent().bluevalue:GetText())
|
|
</OnEnterPressed>
|
|
</Scripts>
|
|
</EditBox>
|
|
<EditBox name="$parentHexValue" parentKey="hexvalue" inherits="NeuronEditBoxTemplateSmall">
|
|
<Size x="60" y="24"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT" relativeTo="$parentBlueValue" relativePoint="BOTTOMRIGHT">
|
|
<Offset x="0" y="-10"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" inherits="GameFontHighlight" justifyH="RIGHT" text="H">
|
|
<Anchors>
|
|
<Anchor point="RIGHT" relativePoint="LEFT">
|
|
<Offset x="-1" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Color r="1.0" g="1.0" b="1.0" a="1.0"/>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SubFrameBlackBackdrop_OnLoad(self)
|
|
</OnLoad>
|
|
<OnTextChanged>
|
|
self:SetText((self:GetText()):gsub("%X", ""):upper())
|
|
</OnTextChanged>
|
|
<OnTabPressed>
|
|
self:GetParent().redvalue:SetFocus()
|
|
hex = self:GetText()
|
|
local rhex, ghex, bhex = string.sub(hex, 1, 2), string.sub(hex, 3, 4), string.sub(hex, 5, 6)
|
|
local r, g, b = tonumber(rhex, 16), tonumber(ghex, 16), tonumber(bhex, 16)
|
|
r = r/255
|
|
g = g/255
|
|
b = b/255
|
|
self:GetParent():SetColorRGB(r, g, b)
|
|
</OnTabPressed>
|
|
<OnEnterPressed>
|
|
self:ClearFocus()
|
|
hex = self:GetText()
|
|
local rhex, ghex, bhex = string.sub(hex, 1, 2), string.sub(hex, 3, 4), string.sub(hex, 5, 6)
|
|
local r, g, b = tonumber(rhex, 16), tonumber(ghex, 16), tonumber(bhex, 16)
|
|
r = r/255
|
|
g = g/255
|
|
b = b/255
|
|
self:GetParent():SetColorRGB(r, g, b)
|
|
</OnEnterPressed>
|
|
</Scripts>
|
|
</EditBox>
|
|
<EditBox name="$parentAlphaValue" parentKey="alphavalue" inherits="NeuronEditBoxTemplateSmall" letters="4">
|
|
<Size x="60" y="24"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT" relativeTo="$parentHexValue" relativePoint="BOTTOMRIGHT">
|
|
<Offset x="0" y="-10"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentText" inherits="GameFontHighlight" justifyH="RIGHT" text="A">
|
|
<Anchors>
|
|
<Anchor point="RIGHT" relativePoint="LEFT">
|
|
<Offset x="-1" y="0"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Color r="1.0" g="1.0" b="1.0" a="1.0"/>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SubFrameBlackBackdrop_OnLoad(self)
|
|
</OnLoad>
|
|
<OnTabPressed>
|
|
local value = self:GetText()
|
|
value = tonumber(value)
|
|
if (value) then
|
|
self:GetParent().alpha:SetValue(1-value)
|
|
end
|
|
</OnTabPressed>
|
|
<OnEnterPressed>
|
|
local value = self:GetText()
|
|
value = tonumber(value)
|
|
if (value) then
|
|
self:GetParent().alpha:SetValue(1-value)
|
|
end
|
|
</OnEnterPressed>
|
|
</Scripts>
|
|
</EditBox>
|
|
<Button name="$parentApply" parentKey="apply" inherits="NeuronButtonTemplate1">
|
|
<Size x="100" y="25"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMLEFT">
|
|
<Offset x="50" y="20"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.parent = self:GetParent()
|
|
</OnLoad>
|
|
<OnClick>
|
|
PlaySound(SOUNDKIT.GS_TITLE_OPTION_OK)
|
|
if (self.parent.frame) then
|
|
|
|
if (self.parent.frame.updateFunc) then
|
|
self.parent.frame.updateFunc(self.parent.frame)
|
|
end
|
|
|
|
self.parent.frame:Hide()
|
|
|
|
end
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
<Button name="$parentCancel" parentKey="cancel" inherits="NeuronButtonTemplate1">
|
|
<Size x="100" y="25"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-50" y="20"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.parent = self:GetParent()
|
|
</OnLoad>
|
|
<OnClick>
|
|
PlaySound(SOUNDKIT.GS_TITLE_OPTION_OK)
|
|
if (self.parent.frame) then
|
|
self.parent.frame:Hide()
|
|
end
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:ColorPicker_OnLoad(self)
|
|
</OnLoad>
|
|
<OnShow>
|
|
Neuron.NeuronGUI:ColorPicker_OnShow(self)
|
|
</OnShow>
|
|
<OnColorSelect>
|
|
Neuron.NeuronGUI:ColorPicker_OnColorSelect(self, r, g, b)
|
|
</OnColorSelect>
|
|
</Scripts>
|
|
</ColorSelect>
|
|
|
|
|
|
<Frame name="NeuronStatusBarEditor" frameStrata="DIALOG" enableMouse="true" movable="true" parent="UIParent" hidden="true" inherits="BackdropTemplate">
|
|
<Frames>
|
|
<Frame name="$parentTypes" parentKey="types" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset x="10" y="-30"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
|
|
<Offset x="135" y="10"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SB_EditorTypes_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
<Frame name="$parentAdjustableOptions" parentKey="adjoptions" inherits="BackdropTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentTypes" relativePoint="TOPRIGHT">
|
|
<Offset x="5" y="0"/>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset x="-10" y="10"/>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Frames>
|
|
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:SB_AdjustableOptions_OnLoad(self)
|
|
</OnLoad>
|
|
</Scripts>
|
|
</Frame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
Neuron.NeuronGUI:StatusBarEditor_OnLoad(self)
|
|
</OnLoad>
|
|
<OnShow>
|
|
Neuron.NeuronGUI:StatusBarEditor_OnShow(self)
|
|
</OnShow>
|
|
<OnHide>
|
|
Neuron.NeuronGUI:StatusBarEditor_OnHide(self)
|
|
</OnHide>
|
|
<OnDragStart>
|
|
self:GetParent():StartMoving()
|
|
</OnDragStart>
|
|
<OnDragStop>
|
|
self:GetParent():StopMovingOrSizing()
|
|
</OnDragStop>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
|
|
</Ui>
|
|
|