<Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Script file="VuhDoNewOptionsToolsKeyLayouts.lua" /> <Frame name="VuhDoNewOptionsToolsKeyLayoutsTemplate" virtual="true"> <Frames> <Frame name="$parentStorePanel" inherits="VuhDoPanelTemplate"> <Size> <AbsDimension x="320" y="245" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="30" y="-30" /> </Offset> </Anchor> </Anchors> <Frames> <Button name="$parentSaveAsButton" text="VUHDO_I18N_SAVE_AS" inherits="VuhDoButtonTemplate"> <Size> <AbsDimension x="100" y="32" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="210" y="-127" /> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> VUHDO_saveKeyLayoutOnClick(self); </OnClick> </Scripts> </Button> <Button name="$parentExportButton" text="VUHDO_I18N_EXPORT" inherits="VuhDoButtonTemplate"> <Size> <AbsDimension x="100" y="32" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="210" y="-165" /> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> VUHDO_exportKeyLayoutOnClick(self); </OnClick> </Scripts> </Button> <Button name="$parentImportButton" text="VUHDO_I18N_IMPORT" inherits="VuhDoButtonTemplate"> <Size> <AbsDimension x="100" y="32" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="210" y="-203" /> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> VUHDO_importKeyLayoutOnClick(self); </OnClick> </Scripts> </Button> <EditBox name="$parentSaveAsEditBox" inherits="VuhDoEditBoxTemplate"> <Size> <AbsDimension x="170" y="32" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="17" y="-177" /> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad> VUHDO_lnfSetModel(self, "VUHDO_CURR_LAYOUT"); VUHDO_lnfSetTooltip(self, VUHDO_I18N_TT.K403); </OnLoad> </Scripts> </EditBox> <Button name="$parentLayoutCombo" inherits="VuhDoComboBoxTemplate"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="23" y="-28" /> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad> VUHDO_setComboModel(self, "VUHDO_CURR_LAYOUT", VUHDO_KEY_LAYOUT_COMBO_MODEL); self:SetAttribute("custom_function", VUHDO_keyLayoutComboChanged); VUHDO_lnfSetTooltip(self, VUHDO_I18N_TT.K404); </OnLoad> <OnShow> VUHDO_lnfPatchFont(self, "Text"); VUHDO_initKeyLayoutComboModel(); VUHDO_lnfComboBoxInitFromModel(self); </OnShow> </Scripts> </Button> <CheckButton name="$parentSpec2CheckButton" text="VUHDO_I18N_SPEC_2" inherits="VuhDoCheckButtonTemplate"> <Size> <AbsDimension x="80" y="32" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="105" y="-70" /> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> VUHDO_keyLayoutSpecOnClick(self, "2"); VUHDO_lnfCheckButtonClicked(self); </OnClick> <OnShow> VUHDO_lnfPatchFont(self, "Label"); self:SetChecked(VUHDO_CURR_LAYOUT == VUHDO_SPEC_LAYOUTS["2"]); VUHDO_lnfCheckButtonClicked(self); </OnShow> </Scripts> </CheckButton> <CheckButton name="$parentSpec1CheckButton" text="VUHDO_I18N_SPEC_1" inherits="VuhDoCheckButtonTemplate"> <Size> <AbsDimension x="80" y="32" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="13" y="-70" /> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> VUHDO_keyLayoutSpecOnClick(self, "1"); VUHDO_lnfCheckButtonClicked(self); </OnClick> <OnShow> VUHDO_lnfPatchFont(self, "Label"); self:SetChecked(VUHDO_CURR_LAYOUT == VUHDO_SPEC_LAYOUTS["1"]); VUHDO_lnfCheckButtonClicked(self); </OnShow> </Scripts> </CheckButton> <CheckButton name="$parentSpec3CheckButton" text="VUHDO_I18N_SPEC_3" inherits="VuhDoCheckButtonTemplate"> <Size> <AbsDimension x="80" y="32" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="13" y="-107" /> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> VUHDO_keyLayoutSpecOnClick(self, "3"); VUHDO_lnfCheckButtonClicked(self); </OnClick> <OnShow> VUHDO_lnfPatchFont(self, "Label"); self:SetChecked(VUHDO_CURR_LAYOUT == VUHDO_SPEC_LAYOUTS["3"]); VUHDO_lnfCheckButtonClicked(self); </OnShow> </Scripts> </CheckButton> <CheckButton name="$parentSpec4CheckButton" text="VUHDO_I18N_SPEC_4" inherits="VuhDoCheckButtonTemplate"> <Size> <AbsDimension x="80" y="32" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="105" y="-107" /> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> VUHDO_keyLayoutSpecOnClick(self, "4"); VUHDO_lnfCheckButtonClicked(self); </OnClick> <OnShow> VUHDO_lnfPatchFont(self, "Label"); self:SetChecked(VUHDO_CURR_LAYOUT == VUHDO_SPEC_LAYOUTS["4"]); VUHDO_lnfCheckButtonClicked(self); </OnShow> </Scripts> </CheckButton> <CheckButton name="$parentDefaultLayoutCheckButton" text="VUHDO_I18N_DEFAULT_LAYOUT" inherits="VuhDoCheckButtonTemplate"> <Size> <AbsDimension x="125" y="32" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="13" y="-145" /> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad> VUHDO_lnfSetTooltip(self, VUHDO_I18N_TT.K554); </OnLoad> <OnShow> VUHDO_lnfCheckButtonInitFromModel(self); VUHDO_keyLayoutInitDefaultLayoutCheckButton(self); VUHDO_lnfPatchFont(self, "Label"); VUHDO_lnfRadioButtonOnShow(self); </OnShow> <OnClick> VUHDO_lnfCheckButtonClicked(self); VUHDO_keyLayoutDefaultLayoutCheckButtonClicked(self); </OnClick> </Scripts> </CheckButton> <Button name="$parentDeleteButton" text="VUHDO_I18N_DELETE" inherits="VuhDoButtonTemplate"> <Size> <AbsDimension x="100" y="32" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="210" y="-89" /> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> VUHDO_keyLayoutDeleteOnClick(self); </OnClick> </Scripts> </Button> <Button name="$parentApplyButton" text="VUHDO_I18N_APPLY" inherits="VuhDoButtonTemplate"> <Size> <AbsDimension x="100" y="32" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="210" y="-51" /> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> VUHDO_keyLayoutApplyOnClick(self); </OnClick> </Scripts> </Button> <CheckButton name="$parentLoadHotsCheckButton" text="VUHDO_I18N_LOAD_HOTS" inherits="VuhDoCheckButtonTemplate"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="210" y="-13" /> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad> VUHDO_lnfSetModel(self, "VUHDO_SPELL_CONFIG.IS_LOAD_HOTS"); VUHDO_lnfSetTooltip(self, VUHDO_I18N_TT.K365); </OnLoad> </Scripts> </CheckButton> <Frame name="$parentTitleLabel" inherits="VuhDoLabelFrameTemplate"> <Layers> <Layer> <FontString name="$parentLabel" text="VUHDO_I18N_MANAGE_KEYS" inherits="VuDoDefaultTitleFontTemplate"> </FontString> </Layer> </Layers> </Frame> </Frames> </Frame> <Frame name="$parentSharePanel" inherits="VuhDoPanelTemplate"> <Size> <AbsDimension x="126" y="72" /> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="30" y="-285" /> </Offset> </Anchor> </Anchors> <Frames> <Frame name="$parentTitleLabel" inherits="VuhDoLabelFrameTemplate"> <Layers> <Layer> <FontString name="$parentLabel" text="Send Layout" inherits="VuDoDefaultTitleFontTemplate"> </FontString> </Layer> </Layers> </Frame> <Button name="$parentShareButton" inherits="VuhDoShareButtonTemplate"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="13" y="-30" /> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad> VUHDO_lnfSetModel(self, { "VUHDO_shareCurrentKeyLayout", "VUHDO_CURR_LAYOUT" } ); </OnLoad> </Scripts> </Button> </Frames> </Frame> <Frame name="$parentExportFrame" inherits="VuhDoFrameTemplate" frameStrata="TOOLTIP"> <Size> <AbsDimension x="580" y="350"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="35" y="-25" /> </Offset> </Anchor> </Anchors> <Frames> <Frame name="$parentRootPane" setallpoints="true" inherits="VuhDoPanelTemplate"> <Frames> <Frame name="$parentTitleLabel" inherits="VuhDoLabelFrameTemplate"> <Layers> <Layer> <FontString name="$parentLabel" text="VUHDO_I18N_EXPORT" inherits="VuDoDefaultTitleFontTemplate"> </FontString> </Layer> </Layers> </Frame> <ScrollFrame name="$parentStringScrollFrame" inherits="VuhDoScrollPanelTemplate"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="13" y="-30" /> </Offset> </Anchor> </Anchors> <Size> <AbsDimension x="550" y="250" /> </Size> <ScrollChild> <EditBox name="$parentStringEditBox" inherits="VuhDoEditBoxMultiLineTemplate"> <Size> <AbsDimension x="540" y="200" /> </Size> <Scripts> <OnShow> VUHDO_keyLayoutExportButtonShown(self); </OnShow> </Scripts> </EditBox> </ScrollChild> </ScrollFrame> <Button name="$parentOkayButton" inherits="VuhDoOkayButtonTemplate"> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="13" y="15"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> self:GetParent():GetParent():Hide(); </OnClick> </Scripts> </Button> <Button name="$parentCancelButton" inherits="VuhDoCancelButtonTemplate"> <Anchors> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-13" y="15"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> self:GetParent():GetParent():Hide(); </OnClick> </Scripts> </Button> </Frames> </Frame> </Frames> <Scripts> <OnLoad> self:SetScript("OnKeyDown", function(anInstance, aKey) if (aKey == "ESCAPE") then self:Hide(); end end); </OnLoad> <OnShow> _G[self:GetName() .. "RootPane"]:Show(); _G[self:GetName() .. "RootPaneTitleLabelLabel"]:SetText(VUHDO_I18N_EXPORT .. " " .. strtrim(_G[self:GetParent():GetName() .. "StorePanelSaveAsEditBox"]:GetText())); </OnShow> </Scripts> </Frame> <Frame name="$parentImportFrame" inherits="VuhDoFrameTemplate" frameStrata="TOOLTIP"> <Size> <AbsDimension x="580" y="350"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="35" y="-25" /> </Offset> </Anchor> </Anchors> <Frames> <Frame name="$parentRootPane" setallpoints="true" inherits="VuhDoPanelTemplate"> <Frames> <Frame name="$parentTitleLabel" inherits="VuhDoLabelFrameTemplate"> <Layers> <Layer> <FontString name="$parentLabel" text="VUHDO_I18N_EXPORT" inherits="VuDoDefaultTitleFontTemplate"> </FontString> </Layer> </Layers> </Frame> <ScrollFrame name="$parentStringScrollFrame" inherits="VuhDoScrollPanelTemplate"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="13" y="-30" /> </Offset> </Anchor> </Anchors> <Size> <AbsDimension x="550" y="250" /> </Size> <ScrollChild> <EditBox name="$parentStringEditBox" inherits="VuhDoEditBoxMultiLineTemplate"> <Size> <AbsDimension x="540" y="200" /> </Size> </EditBox> </ScrollChild> </ScrollFrame> <Button name="$parentOkayButton" inherits="VuhDoOkayButtonTemplate"> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="13" y="15"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> VUHDO_importKeyLayoutOkayClicked(self); </OnClick> </Scripts> </Button> <Button name="$parentCancelButton" inherits="VuhDoCancelButtonTemplate"> <Anchors> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-13" y="15"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> self:GetParent():GetParent():Hide(); </OnClick> </Scripts> </Button> </Frames> </Frame> </Frames> <Scripts> <OnLoad> self:SetScript("OnKeyDown", function(anInstance, aKey) if (aKey == "ESCAPE") then self:Hide(); end end); </OnLoad> <OnShow> _G[self:GetName() .. "RootPane"]:Show(); _G[self:GetName() .. "RootPaneTitleLabelLabel"]:SetText(VUHDO_I18N_IMPORT); </OnShow> </Scripts> </Frame> </Frames> <Scripts> <OnShow> _G[self:GetName() .. "ExportFrame"]:Hide(); _G[self:GetName() .. "ImportFrame"]:Hide(); </OnShow> </Scripts> </Frame> </Ui>