📄 bag_status_meters.xml
字号:
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="localization.lua"/>
<Script file="Bag_Status_Meters.lua"/>
<FontString name="BSM_Font1" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
<FontHeight>
<AbsValue val="10"/>
</FontHeight>
<Color r="1.0" g="1.0" b="1.0"/>
</FontString>
<StatusBar name="BSM_StatusTemplate" virtual="true" frameStrata="MEDIUM" toplevel="true" hidden="false">
<Size>
<AbsDimension y="8"/>
</Size>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="0.0" g="1.0" b="0.0" a="0.6"/>
</StatusBar>
<!--
<Model name="BSM_CooldownTemplate" file="Interface\Cooldown\UI-Cooldown-Indicator.mdx" scale="0.85" setAllPoints="true" hidden="true" virtual="true">
<Scripts>
<OnUpdateModel>
BSM_Cooldown_OnUpdate();
</OnUpdateModel>
<OnAnimFinished>
BSM_Cooldown_OnFinished();
</OnAnimFinished>
</Scripts>
</Model>
-->
<StatusBar name="BSM_DropdownBarTemplate" hidden="false" virtual="true">
<Size>
<AbsDimension x="66" y="10"/>
</Size>
<Scripts>
<OnLoad>
this:SetFrameLevel(this:GetFrameLevel() - 1);
</OnLoad>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="0.0" g="1.0" b="0.0"/>
</StatusBar>
<Button name="BSM_DropdownTemplate" hidden="false" virtual="true">
<Size>
<AbsDimension x="70" y="19"/>
</Size>
<Layers>
<Layer level="ARTWORK">
<Texture file="Interface\Tooltips\UI-StatusBar-Border"/>
</Layer>
</Layers>
<Scripts>
<OnMouseDown>
if ( arg1 == "LeftButton" and not BSM_Save.O.lock ) then
getglobal(BSM_FRAME):StartMoving();
end
</OnMouseDown>
<OnMouseUp>
if ( arg1 == "LeftButton" ) then
getglobal(BSM_FRAME):StopMovingOrSizing();
BSM_SavePosition();
getglobal("BSM_Options_PositionX"):SetText(math.floor(BSM_Save.dispX));
getglobal("BSM_Options_PositionY"):SetText(math.floor(BSM_Save.dispY));
end
</OnMouseUp>
</Scripts>
</Button>
<!--
<FontString name="BSM_BindingLabel" inherits="BSM_Font1" virtual="true">
<Size>
<AbsDimension x="20" y="19"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT"/>
</Anchors>
</FontString>
-->
<Button name="BSM_BindingButton" inherits="UIPanelButtonTemplate" virtual="true">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT"/>
</Anchors>
<NormalText inherits="GameFontHighlightSmall"/>
<DisabledText inherits="GameFontDisableSmall"/>
<HighlightText inherits="GameFontHighlightSmall"/>
<Scripts>
<OnClick>
BSM_openBag(this);
</OnClick>
</Scripts>
</Button>
<Frame name="BSM_BankBagTemplate" virtual="true" hidden="true">
<Size>
<AbsDimension y="8"/>
</Size>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentLabel" inherits="BSM_Font1" wraponspaces="true" toplevel="true">
<Size>
<AbsDimension y="8"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent"/>
<Anchor point="BOTTOMLEFT" relativeTo="$parent"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<!--Doesn't show correctly on first load-->
<!--<Frames>
<StatusBar name="$parentBar" inherits="BSM_StatusTemplate">
<Anchors>
<Anchor point="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT"/>
</Anchors>
</StatusBar>
</Frames>-->
</Frame>
<Frame name="BSM_BarLabels" toplevel="true" frameStrata="HIGH" movable="false" enableMouse="false" hidden="false" parent="MainMenuBarArtFrame">
<Size>
<AbsDimension x="0" y="8"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="MainMenuBarBackpackButton" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="CharacterBag3Slot" relativePoint="BOTTOMLEFT"/>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parent0" inherits="BSM_Font1" justifyH="CENTER">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="MainMenuBarBackpackButton" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="MainMenuBarBackpackButton" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="$parent1" inherits="BSM_Font1" justifyH="CENTER">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="CharacterBag0Slot" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="CharacterBag0Slot" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="$parent2" inherits="BSM_Font1" justifyH="CENTER">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="CharacterBag1Slot" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="CharacterBag1Slot" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="$parent3" inherits="BSM_Font1" justifyH="CENTER">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="CharacterBag2Slot" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="CharacterBag2Slot" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="$parent4" inherits="BSM_Font1" justifyH="CENTER">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="CharacterBag3Slot" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="CharacterBag3Slot" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<Frame name="BSM_Bars" toplevel="false" frameStrata="HIGH" movable="false" enableMouse="false" hidden="false" parent="MainMenuBarArtFrame">
<Size>
<AbsDimension x="0" y="8"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="MainMenuBarBackpackButton" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="CharacterBag3Slot" relativePoint="BOTTOMLEFT"/>
</Anchors>
<Frames>
<StatusBar name="$parent0" inherits="BSM_StatusTemplate">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="MainMenuBarBackpackButton" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="MainMenuBarBackpackButton" relativePoint="BOTTOMLEFT"/>
</Anchors>
</StatusBar>
<StatusBar name="$parent1" inherits="BSM_StatusTemplate">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="CharacterBag0Slot" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="CharacterBag0Slot" relativePoint="BOTTOMLEFT"/>
</Anchors>
</StatusBar>
<StatusBar name="$parent2" inherits="BSM_StatusTemplate">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="CharacterBag1Slot" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="CharacterBag1Slot" relativePoint="BOTTOMLEFT"/>
</Anchors>
</StatusBar>
<StatusBar name="$parent3" inherits="BSM_StatusTemplate">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="CharacterBag2Slot" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="CharacterBag2Slot" relativePoint="BOTTOMLEFT"/>
</Anchors>
</StatusBar>
<StatusBar name="$parent4" inherits="BSM_StatusTemplate">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="CharacterBag3Slot" relativePoint="BOTTOMRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="CharacterBag3Slot" relativePoint="BOTTOMLEFT"/>
</Anchors>
</StatusBar>
</Frames>
</Frame>
<!--
<Frame name="BSM_Cooldowns" toplevel="true" movable="false" enableMouse="false" hidden="false" parent="MainMenuBarArtFrame">
<Size>
<AbsDimension x="0" y="8"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="MainMenuBarBackpackButton" relativePoint="BOTTOMRIGHT"/>
<Anchor point="TOPLEFT" relativeTo="CharacterBag3Slot" relativePoint="TOPLEFT"/>
</Anchors>
<Frames>
<Model name="$parent0" inherits="BSM_CooldownTemplate" parent="MainMenuBarBackpackButton"/>
<Model name="$parent1" inherits="BSM_CooldownTemplate" parent="CharacterBag0Slot"/>
<Model name="$parent2" inherits="BSM_CooldownTemplate" parent="CharacterBag1Slot"/>
<Model name="$parent3" inherits="BSM_CooldownTemplate" parent="CharacterBag2Slot"/>
<Model name="$parent4" inherits="BSM_CooldownTemplate" parent="CharacterBag3Slot"/>
</Frames>
</Frame>
-->
<Frame name="BSM_Frame" toplevel="false" movable="true" hidden="false" frameStrata="LOW" parent="UIParent">
<Size>
<AbsDimension x="90" y="25"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackAlpha">
<Size>
<AbsDimension x="80" y="15"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Color r="0" g="0" b="0" a="0.5"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentBorder" file="Interface\CastingBar\UI-CastingBar-Border">
<Size>
<AbsDimension x="102" y="50"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="13"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="BSM_FrameButton">
<Size>
<AbsDimension x="47" y="19"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="13"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString name="BSM_FrameButtonLabel" inherits="GameFontHighlight" wraponspaces="true" text="BSM_FREEBAGSLOTS">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="BSM_FrameText" inherits="GameFontHighlight">
<Size>
<AbsDimension x="105" y="21"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="BSM_Frame">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Button>
<StatusBar name="BSM_FrameStatus">
<Size>
<AbsDimension x="74" y="8"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-8"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetFrameLevel(this:GetFrameLevel() - 1);
</OnLoad>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -