refactor: adjust UI layouts and templates across options XML files

This commit is contained in:
Bluewhale1337
2026-10-10 15:45:29 +02:00
parent 962f2a46aa
commit d949b7489a
3 changed files with 52 additions and 58 deletions
+16 -24
View File
@@ -89,11 +89,10 @@
<OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad> <OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad>
</Scripts> </Scripts>
</Frame> </Frame>
<CheckButton name="HealBot_Options_Buff1Self" inherits="OptionsCheckButtonTemplate" id="1"> <CheckButton name="HealBot_Options_Buff1Self" inherits="UICheckButtonTemplate" id="1">
<Size><AbsDimension x="80" y="20"/></Size>
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff1" relativePoint="TOPLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff1" relativePoint="TOPLEFT">
<Offset><AbsDimension x="100" y="18"/></Offset> <Offset><AbsDimension x="145" y="8"/></Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
<Scripts> <Scripts>
@@ -127,11 +126,10 @@
<OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad> <OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad>
</Scripts> </Scripts>
</Frame> </Frame>
<CheckButton name="HealBot_Options_Buff2Self" inherits="OptionsCheckButtonTemplate" id="2"> <CheckButton name="HealBot_Options_Buff2Self" inherits="UICheckButtonTemplate" id="2">
<Size><AbsDimension x="80" y="20"/></Size>
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff2" relativePoint="TOPLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff2" relativePoint="TOPLEFT">
<Offset><AbsDimension x="100" y="18"/></Offset> <Offset><AbsDimension x="145" y="8"/></Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
<Scripts> <Scripts>
@@ -165,11 +163,10 @@
<OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad> <OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad>
</Scripts> </Scripts>
</Frame> </Frame>
<CheckButton name="HealBot_Options_Buff3Self" inherits="OptionsCheckButtonTemplate" id="3"> <CheckButton name="HealBot_Options_Buff3Self" inherits="UICheckButtonTemplate" id="3">
<Size><AbsDimension x="80" y="20"/></Size>
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff3" relativePoint="TOPLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff3" relativePoint="TOPLEFT">
<Offset><AbsDimension x="100" y="18"/></Offset> <Offset><AbsDimension x="145" y="8"/></Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
<Scripts> <Scripts>
@@ -203,11 +200,10 @@
<OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad> <OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad>
</Scripts> </Scripts>
</Frame> </Frame>
<CheckButton name="HealBot_Options_Buff4Self" inherits="OptionsCheckButtonTemplate" id="4"> <CheckButton name="HealBot_Options_Buff4Self" inherits="UICheckButtonTemplate" id="4">
<Size><AbsDimension x="80" y="20"/></Size>
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff4" relativePoint="TOPLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff4" relativePoint="TOPLEFT">
<Offset><AbsDimension x="100" y="18"/></Offset> <Offset><AbsDimension x="145" y="8"/></Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
<Scripts> <Scripts>
@@ -242,11 +238,10 @@
<OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad> <OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad>
</Scripts> </Scripts>
</Frame> </Frame>
<CheckButton name="HealBot_Options_Buff5Self" inherits="OptionsCheckButtonTemplate" id="5"> <CheckButton name="HealBot_Options_Buff5Self" inherits="UICheckButtonTemplate" id="5">
<Size><AbsDimension x="80" y="20"/></Size>
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff5" relativePoint="TOPLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff5" relativePoint="TOPLEFT">
<Offset><AbsDimension x="100" y="18"/></Offset> <Offset><AbsDimension x="145" y="8"/></Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
<Scripts> <Scripts>
@@ -280,11 +275,10 @@
<OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad> <OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad>
</Scripts> </Scripts>
</Frame> </Frame>
<CheckButton name="HealBot_Options_Buff6Self" inherits="OptionsCheckButtonTemplate" id="6"> <CheckButton name="HealBot_Options_Buff6Self" inherits="UICheckButtonTemplate" id="6">
<Size><AbsDimension x="80" y="20"/></Size>
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff6" relativePoint="TOPLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff6" relativePoint="TOPLEFT">
<Offset><AbsDimension x="100" y="18"/></Offset> <Offset><AbsDimension x="145" y="8"/></Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
<Scripts> <Scripts>
@@ -318,11 +312,10 @@
<OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad> <OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad>
</Scripts> </Scripts>
</Frame> </Frame>
<CheckButton name="HealBot_Options_Buff7Self" inherits="OptionsCheckButtonTemplate" id="7"> <CheckButton name="HealBot_Options_Buff7Self" inherits="UICheckButtonTemplate" id="7">
<Size><AbsDimension x="80" y="20"/></Size>
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff7" relativePoint="TOPLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff7" relativePoint="TOPLEFT">
<Offset><AbsDimension x="100" y="18"/></Offset> <Offset><AbsDimension x="145" y="8"/></Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
<Scripts> <Scripts>
@@ -356,11 +349,10 @@
<OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad> <OnLoad>HealBot_Options_Buff_OnLoad(this)</OnLoad>
</Scripts> </Scripts>
</Frame> </Frame>
<CheckButton name="HealBot_Options_Buff8Self" inherits="OptionsCheckButtonTemplate" id="8"> <CheckButton name="HealBot_Options_Buff8Self" inherits="UICheckButtonTemplate" id="8">
<Size><AbsDimension x="80" y="20"/></Size>
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff8" relativePoint="TOPLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Buff8" relativePoint="TOPLEFT">
<Offset><AbsDimension x="100" y="18"/></Offset> <Offset><AbsDimension x="145" y="8"/></Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
<Scripts> <Scripts>
+2 -2
View File
@@ -128,7 +128,7 @@
<Anchors> <Anchors>
<Anchor point="TOPLEFT"> <Anchor point="TOPLEFT">
<Offset> <Offset>
<AbsDimension x="60" y="-30" /> <AbsDimension x="0" y="-30" />
</Offset> </Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
@@ -197,7 +197,7 @@
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_GenFrame" relativePoint="BOTTOMLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_GenFrame" relativePoint="BOTTOMLEFT">
<Offset> <Offset>
<AbsDimension x="60" y="-10" /> <AbsDimension x="0" y="-10" />
</Offset> </Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
+34 -32
View File
@@ -8,7 +8,7 @@
<Anchors> <Anchors>
<Anchor point="TOPLEFT"> <Anchor point="TOPLEFT">
<Offset> <Offset>
<AbsDimension x="90" y="-30"/> <AbsDimension x="100" y="-35"/>
</Offset> </Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
@@ -27,7 +27,7 @@
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_UnitXP" relativePoint="BOTTOMLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_UnitXP" relativePoint="BOTTOMLEFT">
<Offset> <Offset>
<AbsDimension x="0" y="-4"/> <AbsDimension x="0" y="-6"/>
</Offset> </Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
@@ -44,9 +44,9 @@
<CheckButton name="HealBot_Options_Integrations_SuperWoW" inherits="OptionsCheckButtonTemplate"> <CheckButton name="HealBot_Options_Integrations_SuperWoW" inherits="OptionsCheckButtonTemplate">
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_NampowerInfo" relativePoint="BOTTOMLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_Nampower" relativePoint="BOTTOMLEFT">
<Offset> <Offset>
<AbsDimension x="-20" y="-12"/> <AbsDimension x="0" y="-60"/>
</Offset> </Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
@@ -65,7 +65,7 @@
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_SuperWoW" relativePoint="BOTTOMLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_SuperWoW" relativePoint="BOTTOMLEFT">
<Offset> <Offset>
<AbsDimension x="0" y="-4"/> <AbsDimension x="0" y="-6"/>
</Offset> </Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
@@ -84,7 +84,7 @@
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_ClassicAPI" relativePoint="BOTTOMLEFT"> <Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_ClassicAPI" relativePoint="BOTTOMLEFT">
<Offset> <Offset>
<AbsDimension x="0" y="-4"/> <AbsDimension x="0" y="-6"/>
</Offset> </Offset>
</Anchor> </Anchor>
</Anchors> </Anchors>
@@ -97,33 +97,35 @@
</OnClick> </OnClick>
</Scripts> </Scripts>
</CheckButton> </CheckButton>
<Frame setAllPoints="true">
<Layers>
<Layer level="ARTWORK">
<FontString name="HealBot_Options_Integrations_NampowerInfo" inherits="GameFontHighlightSmall" justifyH="LEFT" justifyV="TOP" text="Note: For the 1-click Shapeshift auto-unshift to work smoothly, you must ENABLE 'Retry server rejected spells' in Nampower ENABLE Queue Instant Cast Spells and Queue Cast Time Spells.">
<Size x="340" y="48"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_Nampower" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="20" y="-4"/>
</Offset>
</Anchor>
</Anchors>
<Color r="0.7" g="0.7" b="0.7"/>
</FontString>
<FontString name="HealBot_Options_Integrations_HoTInfo" inherits="GameFontHighlightSmall" justifyH="LEFT" justifyV="TOP" text="Note: HoT Timers require Nampower to be enabled and active to provide accurate aura times.">
<Size x="340" y="30"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_ShowHoTTimers" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="20" y="-4"/>
</Offset>
</Anchor>
</Anchors>
<Color r="0.7" g="0.7" b="0.7"/>
</FontString>
</Layer>
</Layers>
</Frame>
</Frames> </Frames>
<Layers>
<Layer level="ARTWORK">
<FontString name="HealBot_Options_Integrations_NampowerInfo" inherits="GameFontHighlightSmall" justifyH="LEFT" justifyV="TOP" text="Note: For the 1-click Shapeshift auto-unshift to work smoothly, you must ENABLE 'Retry server rejected spells' in Nampower ENABLE Queue Instant Cast Spells and Queue Cast Time Spells.">
<Size x="340" y="30"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_Nampower" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="20" y="-2"/>
</Offset>
</Anchor>
</Anchors>
<Color r="0.7" g="0.7" b="0.7"/>
</FontString>
<FontString name="HealBot_Options_Integrations_HoTInfo" inherits="GameFontHighlightSmall" justifyH="LEFT" justifyV="TOP" text="Note: HoT Timers require Nampower to be enabled and active to provide accurate aura times.">
<Size x="340" y="30"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="HealBot_Options_Integrations_ShowHoTTimers" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="20" y="-2"/>
</Offset>
</Anchor>
</Anchors>
<Color r="0.7" g="0.7" b="0.7"/>
</FontString>
</Layer>
</Layers>
<Scripts> <Scripts>
<OnShow> <OnShow>
HealBot_Options_Integrations_OnShow(this); HealBot_Options_Integrations_OnShow(this);