forked from brues/pfUI
The built-in pages moved to gui_pages.lua as build functions that add settings (p:Checkbox, p:Dropdown and so on) instead of making frames. All of them share one ScrollBox list, which keeps rows from the row templates only for the settings in view. Each page keeps its scroll position. A tree replaces the two columns of tabs: a category opens its first page and shows its pages, and the other categories close. Pages have ids, and pfUI.gui:OpenPage(id) opens one. Unlock mode opens a frame's page by its id. Its "Group Frames" links had opened nothing and the stance bar link the wrong page; the castbars now open their own pages. Plugin pages from CreateGUIEntry stay frame pages. Their populate runs on the first show with `this` as the content, and CreateConfig stacks its rows there as before. The About page is a frame page too, and reads its values when it shows instead of every second. Search goes through the settings of the list pages without building them, and through the rows of the frame pages, which it builds on the first search. A result opens its page and marks its row. Focusing the search box no longer opens an empty result page. A change refreshes the other rows in view, so the uneven orientation dropdown follows a new bar layout without keeping a reference to its row.
125 lines
4.3 KiB
XML
125 lines
4.3 KiB
XML
<Ui xmlns="http://www.blizzard.com/wow/ui/">
|
|
<!--
|
|
The rows of the config GUI. Each template takes a mixin from gui_rows.lua,
|
|
and row:Init(setting) shows a setting on it.
|
|
-->
|
|
|
|
<!-- A caption on a row that lights up under the cursor. -->
|
|
<Frame name="pfUIConfigRowTemplate" mixin="pfUIConfigRowMixin" enableMouseMotion="true" virtual="true">
|
|
<Size y="22"/>
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<Texture parentKey="tex" setAllPoints="true" hidden="true">
|
|
<Color r="1" g="1" b="1" a=".05"/>
|
|
</Texture>
|
|
</Layer>
|
|
<Layer level="ARTWORK">
|
|
<FontString parentKey="caption" inherits="GameFontWhite" justifyH="LEFT">
|
|
<Anchors>
|
|
<Anchor point="LEFT" x="3" y="1"/>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad method="OnLoad"/>
|
|
<OnEnter method="OnEnter"/>
|
|
<OnLeave method="OnLeave"/>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Frame name="pfUIConfigTextRowTemplate" inherits="pfUIConfigRowTemplate" mixin="pfUIConfigTextRowMixin" virtual="true">
|
|
<Frames>
|
|
<EditBox parentKey="input" autoFocus="false" propagateMouseInput="Motion">
|
|
<Size x="100" y="18"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT" x="-3"/>
|
|
</Anchors>
|
|
</EditBox>
|
|
</Frames>
|
|
</Frame>
|
|
|
|
<Frame name="pfUIConfigCheckboxRowTemplate" inherits="pfUIConfigRowTemplate" mixin="pfUIConfigCheckboxRowMixin" virtual="true">
|
|
<Frames>
|
|
<CheckButton parentKey="input" inherits="UICheckButtonTemplate" propagateMouseInput="Motion">
|
|
<Size x="14" y="14"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT" x="-5" y="1"/>
|
|
</Anchors>
|
|
</CheckButton>
|
|
</Frames>
|
|
</Frame>
|
|
|
|
<Frame name="pfUIConfigDropdownRowTemplate" inherits="pfUIConfigRowTemplate" mixin="pfUIConfigDropdownRowMixin" virtual="true">
|
|
<Frames>
|
|
<DropdownButton parentKey="input" inherits="pfUIDropdownTemplate" propagateMouseInput="Motion">
|
|
<Anchors>
|
|
<Anchor point="RIGHT"/>
|
|
</Anchors>
|
|
</DropdownButton>
|
|
</Frames>
|
|
</Frame>
|
|
|
|
<Frame name="pfUIConfigColorRowTemplate" inherits="pfUIConfigRowTemplate" mixin="pfUIConfigColorRowMixin" virtual="true">
|
|
<Frames>
|
|
<Button parentKey="color" propagateMouseInput="Motion">
|
|
<Size x="24" y="12"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT" x="-5" y="1"/>
|
|
</Anchors>
|
|
</Button>
|
|
</Frames>
|
|
</Frame>
|
|
|
|
<Frame name="pfUIConfigListRowTemplate" inherits="pfUIConfigRowTemplate" mixin="pfUIConfigListRowMixin" virtual="true">
|
|
<Frames>
|
|
<Button parentKey="del" inherits="UIPanelButtonTemplate" propagateMouseInput="Motion">
|
|
<Size x="16" y="16"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT" x="-4"/>
|
|
</Anchors>
|
|
</Button>
|
|
<Button parentKey="add" inherits="UIPanelButtonTemplate" propagateMouseInput="Motion">
|
|
<Size x="16" y="16"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT" relativeKey="$parent.del" relativePoint="LEFT" x="-4"/>
|
|
</Anchors>
|
|
</Button>
|
|
<DropdownButton parentKey="input" inherits="pfUIDropdownTemplate" propagateMouseInput="Motion">
|
|
<Anchors>
|
|
<Anchor point="RIGHT" relativeKey="$parent.add" relativePoint="LEFT" x="-2"/>
|
|
</Anchors>
|
|
</DropdownButton>
|
|
</Frames>
|
|
</Frame>
|
|
|
|
<!-- Buttons in a line from the right, without a caption. -->
|
|
<Frame name="pfUIConfigButtonsRowTemplate" mixin="pfUIConfigButtonsRowMixin" virtual="true">
|
|
<Size y="22"/>
|
|
</Frame>
|
|
|
|
<!--
|
|
A section title near the bottom of a row as tall as two rows, which leaves
|
|
the gap under the title that the row below it would.
|
|
-->
|
|
<Frame name="pfUIConfigHeaderRowTemplate" mixin="pfUIConfigHeaderRowMixin" virtual="true">
|
|
<Size y="45"/>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<FontString parentKey="caption" inherits="GameFontWhite" justifyH="LEFT" justifyV="BOTTOM">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"/>
|
|
<Anchor point="BOTTOMRIGHT" y="5"/>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad method="OnLoad"/>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<!-- A caption in a box with a red border. -->
|
|
<Frame name="pfUIConfigWarningRowTemplate" inherits="pfUIConfigRowTemplate" mixin="pfUIConfigWarningRowMixin" virtual="true"/>
|
|
</Ui>
|