欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

gathererui.xml

时间太紧了
XML
第 1 页 / 共 5 页
字号:
				<Scripts>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText(GATHERER_TAB_MENU_TEXT_TIP);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>

			<!-- Frame handling buttons -->
			<Button name="GathererUI_CallHelpButton">
				<Size>
					<AbsDimension x="24" y="30" /> 
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-7" y="3"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						GathererUI_HelpFrame_Update();
						if ( GathererUI_HelpFrame:IsShown() ) then
							GathererUI_HelpFrame:Hide();
						else
							GathererUI_HelpFrame:Show();
						end
					</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-MicroButton-Help-Up" /> 
				<PushedTexture file="Interface\Buttons\UI-MicroButton-Help-Down" /> 
				<HighlightTexture file="Interface\Buttons\UI-MicroButton-Hilight" alphaMode="ADD" /> 
			</Button>
			
			<Button name="GathererUI_CloseButton" text="CLOSE" inherits="UIPanelButtonTemplate">
				<Size>
					<AbsDimension x="100" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-15" y="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						GathererUI_HideOptions();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="GathererUI_ZoneRematchButton" text="Zone Match" inherits="UIPanelButtonTemplate">
				<Size>
					<AbsDimension x="100" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="15" y="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this.tooltipText = GATHERER_ZMBUTTON_TIP;
					</OnLoad>
					<OnClick>
						GathererUI_ShowRematchDialog();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
						GameTooltip:SetText(this.tooltipText);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			<Button name="GathererUI_ReportButton" text="GATHERER_TEXT_TOGGLE_REPORT" inherits="UIPanelButtonTemplate">
				<Size>
					<AbsDimension x="100" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GathererUI_ZoneRematchButton" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this.tooltipText = GATHERER_REPORT_TIP;
					</OnLoad>
					<OnClick>
						showGathererInfo(1);
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
						GameTooltip:SetText(this.tooltipText);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			<Button name="GathererUI_SearchtButton" text="GATHERER_TEXT_TOGGLE_SEARCH" inherits="UIPanelButtonTemplate">
				<Size>
					<AbsDimension x="100" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="GathererUI_CloseButton" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="-5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this.tooltipText = GATHERER_SEARCH_TIP;
					</OnLoad>
					<OnClick>
						showGathererInfo(2);
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
						GameTooltip:SetText(this.tooltipText);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>

		</Frames>
		<Scripts>
			<OnLoad>
				-- Tab Handling code
				PanelTemplates_SetNumTabs(this, 3);
				PanelTemplates_SetTab(this, 1);
			</OnLoad>
			<OnShow>
				PlaySound("UChatScrollButton");
				ToggleGathererUI_Dialog(GATHERERUI_SUBFRAMES[PanelTemplates_GetSelectedTab(GathererUI_DialogFrame)]);
			</OnShow>
			<OnHide>
				 -- Check if the options frame was opened by myAddOns
				if (MYADDONS_ACTIVE_OPTIONSFRAME == this) then
					ShowUIPanel(myAddOnsFrame);
				end
			</OnHide>
		</Scripts>		
	</Frame>

	<!-- Filtering DropDown menus and skill level editboxes -->
	<Frame name="GathererUI_FiltersOptionsBorderFrame" parent="GathererUI_DialogFrame" inherits="OptionFrameBoxTemplate" hidden="true" id="1">
		<Size>
			<AbsDimension x="410" y="250"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="GathererUI_DialogFrame" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="16" y="-25"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad>
				this:SetBackdropColor(0,0,0)	
			</OnLoad>
		</Scripts>
		<Frames>
			<Frame name="GathererUI_DropDownHerbs" inherits="UIDropDownMenuTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="-22"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						UIDropDownMenu_SetWidth(100);
						this.tooltipText=GATHERER_HERBDDM_TIP;
					</OnLoad>
					<OnShow>
						UIDropDownMenu_ClearAll(this);
						UIDropDownMenu_Initialize(this, GathererUIDropDownHerbs_Initialize);
					</OnShow>
					<OnEnter>
						GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
						GameTooltip:SetText(this.tooltipText);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<Layers>
					<Layer level="ARTWORK">
					<FontString inherits="GameFontNormalSmall" text="GATHERER_TEXT_FILTER_HERBS" nonspacewrap="true">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="GathererUI_DropDownHerbs" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="15" y="15"/>
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
					</Layer>
				</Layers>
			</Frame>
			<EditBox name="GathererUI_HerbSkillEditBox" letters="3" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
				<Size>
					<AbsDimension x="45" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="GathererUI_DropDownHerbs" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-7" y="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this.tooltipText=GATHERER_HERBSKLEB_TIP;
					</OnLoad>
					<OnEnterPressed>
						GathererUI_OnEnterPressed_HerbSkillEditBox();
						this:ClearFocus();
					</OnEnterPressed>
					<OnShow>
						if ( Gather_Player and GatherConfig.users[Gather_Player].minSetHerbSkill ) then
							this:SetNumber(GatherConfig.users[Gather_Player].minSetHerbSkill);
						else
							this:SetNumber(0);
						end
					</OnShow>
					<OnEnter>
						GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
						GameTooltip:SetText(this.tooltipText);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</EditBox>

			<Frame name="GathererUI_DropDownOre" inherits="UIDropDownMenuTemplate" id="3">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="135" y="-22"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						UIDropDownMenu_SetWidth(100);
						this.tooltipText=GATHERER_OREDDM_TIP;
					</OnLoad>
					<OnShow>
						UIDropDownMenu_ClearAll(this);
						UIDropDownMenu_Initialize(this, GathererUIDropDownOre_Initialize);
					</OnShow>
					<OnEnter>
						GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
						GameTooltip:SetText(this.tooltipText);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<Layers>
					<Layer level="ARTWORK">
					<FontString inherits="GameFontNormalSmall" text="GATHERER_TEXT_FILTER_ORE" nonspacewrap="true">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="GathererUI_DropDownOre" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="15" y="15"/>
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
					</Layer>
				</Layers>
			</Frame>
			<EditBox name="GathererUI_OreSkillEditBox" letters="3" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
				<Size>
					<AbsDimension x="45" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="GathererUI_DropDownOre" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-7" y="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this.tooltipText=GATHERER_ORESKLEB_TIP;
					</OnLoad>
					<OnEnterPressed>
						GathererUI_OnEnterPressed_OreSkillEditBox();
						this:ClearFocus();
					</OnEnterPressed>
					<OnShow>
						if ( Gather_Player and GatherConfig.users[Gather_Player].minSetOreSkill ) then
							this:SetNumber(GatherConfig.users[Gather_Player].minSetOreSkill);
						else
							this:SetNumber(0);
						end
					</OnShow>
					<OnEnter>
						GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
						GameTooltip:SetText(this.tooltipText);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</EditBox>

			<Frame name="GathererUI_DropDownTreasure" inherits="UIDropDownMenuTemplate" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="265" y="-22"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						UIDropDownMenu_SetWidth(100);
						this.tooltipText= GATHERER_TREASUREDDM_TIP;
					</OnLoad>
					<OnShow>
						UIDropDownMenu_ClearAll(this);
						UIDropDownMenu_Initialize(this, GathererUIDropDownTreasure_Initialize);
					</OnShow>
					<OnEnter>
						GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
						GameTooltip:SetText(this.tooltipText);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<Layers>
					<Layer level="ARTWORK">
					<FontString inherits="GameFontNormalSmall" text="GATHERER_TEXT_FILTER_TREASURE" nonspacewrap="true">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="GathererUI_DropDownTreasure" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="15" y="15"/>
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
					</Layer>
				</Layers>
			</Frame>

			<CheckButton name="GathererUI_CheckHerbRecord" inherits="OptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-48"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_LINKRECORD);
						this.tooltipText = GATHERER_TEXT_LINKRECORD_TIP;
					</OnLoad>
					<OnClick>
						if (this:GetChecked()) then
							GatherConfig.users[Gather_Player].filterRecording[1] = 1;
						else
   							GatherConfig.users[Gather_Player].filterRecording[1] = nil;
							GathererUI_CheckHerbRecord:SetChecked(GatherConfig.users[Gather_Player].filterRecording[1]);
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
						GameTooltip:SetText(this.tooltipText);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
			<CheckButton name="GathererUI_CheckOreRecord" inherits="OptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="150" y="-48"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_LINKRECORD);
						this.tooltipText = GATHERER_TEXT_LINKRECORD_TIP;
					</OnLoad>
					<OnClick>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -