View Single Post
Old 03-09-2022, 05:29 PM   #35
Emilari
A Snow Cougar
 
Join Date: Jun 2020
Posts: 45
Interface Author - Click to view interfaces
Default

Alright, so... here's how I fixed mine, and should solve many of peoples remaining issues. Unfortunately staggered buffs aren't possible, UI's using custom art for staggered buffs will need to update their art to a non-staggered form.

So first, the actual new buff template (not much change from the original):

Code:
<Button item="BW_Player_Buff_Template"> <ScreenID>Player_Buff_Template</ScreenID> <RelativePosition>true</RelativePosition> <Size> <CX>170</CX> <CY>15</CY> </Size> <Template>BDT_PlayerBuff</Template> <DecalOffset> <X>0</X> <Y>0</Y> </DecalOffset> <DecalSize> <CX>15</CX> <CY>15</CY> </DecalSize> </Button> <TileLayoutBox item="BW_Buttons"> <ScreenID>Buff_Buttons</ScreenID> <RelativePosition>true</RelativePosition> <AutoStretch>true</AutoStretch> <TopAnchorOffset>1</TopAnchorOffset> <LeftAnchorOffset>1</LeftAnchorOffset> <RightAnchorOffset>1</RightAnchorOffset> <BottomAnchorOffset>1</BottomAnchorOffset> <BottomAnchorToTop>false</BottomAnchorToTop> <RightAnchorToLeft>false</RightAnchorToLeft> <Style_Transparent>true</Style_Transparent> <Spacing>0</Spacing> <SecondarySpacing>0</SecondarySpacing> <HorizontalFirst>true</HorizontalFirst> <AnchorToTop>true</AnchorToTop> <AnchorToLeft>true</AnchorToLeft> <FirstPieceTemplate>true</FirstPieceTemplate> <SnapToChildren>true</SnapToChildren> <Style_Sizable>false</Style_Sizable> <Pieces>BW_Player_Buff_Template</Pieces> </TileLayoutBox>


Then, to add number placeholders (1, 2, 3, 4, etc): (only listed 2 here, you can see my pending uploads for the full version).

Code:
<Label item="BW_Buff0_Place"> <ScreenID>Buff0Place</ScreenID> <RelativePosition>true</RelativePosition> <Font>2</Font> <Size> <CX>170</CX> <CY>15</CY> </Size> <Text>1</Text> <NoWrap>true</NoWrap> <Style_Tooltip>false</Style_Tooltip> <AlignLeft>true</AlignLeft> </Label> <Label item="BW_Buff1_Place"> <ScreenID>Buff1Place</ScreenID> <RelativePosition>true</RelativePosition> <Font>2</Font> <Text>2</Text> <Style_Tooltip>false</Style_Tooltip> </Label><TileLayoutBox item="BW_Places"> <RelativePosition>true</RelativePosition> <AutoStretch>true</AutoStretch> <TopAnchorOffset>1</TopAnchorOffset> <LeftAnchorOffset>1</LeftAnchorOffset> <RightAnchorOffset>1</RightAnchorOffset> <BottomAnchorOffset>1</BottomAnchorOffset> <BottomAnchorToTop>false</BottomAnchorToTop> <RightAnchorToLeft>false</RightAnchorToLeft> <Style_Transparent>true</Style_Transparent> <Spacing>0</Spacing> <SecondarySpacing>0</SecondarySpacing> <HorizontalFirst>true</HorizontalFirst> <AnchorToTop>true</AnchorToTop> <AnchorToLeft>true</AnchorToLeft> <FirstPieceTemplate>true</FirstPieceTemplate> <SnapToChildren>true</SnapToChildren> <Style_Sizable>false</Style_Sizable> <Style_Tooltip>false</Style_Tooltip> <Pieces>BW_Buff0_Place</Pieces> <Pieces>BW_Buff1_Place</Pieces></TileLayoutBox>


Then, to add labels in proper places with proper spacing:

Code:
<Label item="BW_Buff_FrontSpacer"> <ScreenID>BuffFrontSpacer</ScreenID> <RelativePosition>true</RelativePosition> <Font>2</Font> <Location> <X>0</X> <Y>2</Y> </Location> <Size> <CX>12</CX> <CY>16</CY> </Size> <Style_Tooltip>false</Style_Tooltip> </Label> <Label item="BW_Buff_BackSpacer"> <ScreenID>BuffBackSpacer</ScreenID> <RelativePosition>true</RelativePosition> <Font>2</Font> <Location> <X>151</X> <Y>2</Y> </Location> <Size> <CX>15</CX> <CY>16</CY> </Size> <Style_Tooltip>false</Style_Tooltip> </Label> <Label item="BW_Buff0_Label"> <ScreenID>Buff0Label</ScreenID> <RelativePosition>true</RelativePosition> <Font>2</Font> <Location> <X>16</X> <Y>2</Y> </Location> <Size> <CX>135</CX> <CY>15</CY> </Size> <EQType>500</EQType> <NoWrap>true</NoWrap> <Style_Tooltip>false</Style_Tooltip> </Label> <Screen item="BW_00_Screen"> <Size> <CX>170</CX> <CY>15</CY> </Size> <Pieces>BW_Buff_FrontSpacer</Pieces> <Pieces>BW_Buff0_Label</Pieces> <Pieces>BW_Buff_BackSpacer</Pieces> </Screen> <Label item="BW_Buff1_Label"> <ScreenID>Buff1Label</ScreenID> <RelativePosition>true</RelativePosition> <Font>2</Font> <Location> <X>16</X> <Y>2</Y> </Location> <Size> <CX>135</CX> <CY>15</CY> </Size> <EQType>501</EQType> <NoWrap>true</NoWrap> <Style_Tooltip>false</Style_Tooltip> </Label> <Screen item="BW_01_Screen"> <Size> <CX>170</CX> <CY>15</CY> </Size> <Pieces>BW_Buff_FrontSpacer</Pieces> <Pieces>BW_Buff1_Label</Pieces> <Pieces>BW_Buff_BackSpacer</Pieces> </Screen><TileLayoutBox item="BW_Labels"> <RelativePosition>true</RelativePosition> <AutoStretch>true</AutoStretch> <TopAnchorOffset>1</TopAnchorOffset> <LeftAnchorOffset>1</LeftAnchorOffset> <RightAnchorOffset>1</RightAnchorOffset> <BottomAnchorOffset>1</BottomAnchorOffset> <BottomAnchorToTop>false</BottomAnchorToTop> <RightAnchorToLeft>false</RightAnchorToLeft> <Style_Transparent>true</Style_Transparent> <Spacing>0</Spacing> <SecondarySpacing>0</SecondarySpacing> <HorizontalFirst>true</HorizontalFirst> <AnchorToTop>true</AnchorToTop> <AnchorToLeft>true</AnchorToLeft> <FirstPieceTemplate>true</FirstPieceTemplate> <SnapToChildren>true</SnapToChildren> <Style_Sizable>false</Style_Sizable> <Style_Tooltip>false</Style_Tooltip> <Pieces>Screen:BW_00_Screen</Pieces> <Pieces>Screen:BW_01_Screen</Pieces></TileLayoutBox>


And to put it all together at the end:

Code:
<LayoutStrategy item="BW_Snap_Both"> <Padding>0</Padding> <ResizeHorizontal>true</ResizeHorizontal> <ResizeVertical>true</ResizeVertical> </LayoutStrategy> <Screen item="BuffWindow"> <RelativePosition>false</RelativePosition> <Font>2</Font> <Location> <X>415</X> <Y>0</Y> </Location> <Size> <CX>104</CX> <CY>395</CY> </Size> <DrawTemplate>WDT_Inner</DrawTemplate> <Layout>BW_Snap_Both</Layout> <Style_Transparent>true</Style_Transparent> <Style_Titlebar>false</Style_Titlebar> <Style_Closebox>true</Style_Closebox> <Style_Minimizebox>false</Style_Minimizebox> <Style_Border>true</Style_Border> <Style_Sizable>true</Style_Sizable> <Style_ClientMovable>true</Style_ClientMovable> <Escapable>false</Escapable> <Pieces>TileLayoutBox:BW_Places</Pieces> <Pieces>TileLayoutBox:BW_Buttons</Pieces> <Pieces>TileLayoutBox:BW_Labels</Pieces> </Screen>


I've tested and all functionality works, adjusting properly, being able to click, etc, etc. I hope this helps some of you figure yours out.
Emilari is offline   Reply With Quote