Skip to content

Commit

Permalink
Fix some xml stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Nov 23, 2024
1 parent 74f7211 commit 87ca721
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 61 deletions.
13 changes: 13 additions & 0 deletions LootReserve.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ LOOTRESERVE_BACKDROP_BLACK_4 =
edgeSize = 16,
insets = { left = 4, right = 4, top = 4, bottom = 4 },
};
LOOTRESERVE_BACKDROP_BLACK_5 =
{
bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
edgeSize = 16,
insets = { left = 5, right = 5, top = 5, bottom = 5 },
};
LOOTRESERVE_BACKDROP_TOOLTIP_0_16 = {
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
edgeSize = 16,
tileEdge = true,
};


SLASH_LOOTRESERVE1 = "/lootreserve";
SLASH_LOOTRESERVE2 = "/reserve";
Expand Down
18 changes: 3 additions & 15 deletions Windows/ClientWindow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,11 @@
</CheckButton>
<Frame name="LootReserveLootListTemplate" virtual="true" enableMouse="true" inherits="LootReserveBackdropTemplate">
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_TOOLTIP_0_16_5555" type="global" />
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_TOOLTIP_0_16" type="global" />
<KeyValue key="backdropBorderColor" value="NORMAL_FONT_COLOR" type="global" />
<KeyValue key="backdropBorderColorAlpha" value="0" type="number" />
</KeyValues>
<Size y="44" />
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<EdgeSize val="16" />
<BorderColor r="1" g="0.82" b="0" a="0" />
</Backdrop>
<Frames>
<Frame parentKey="ReserveFrame">
<Size x="112" y="32" />
Expand Down Expand Up @@ -576,16 +572,12 @@
</EditBox>
<Frame parentKey="Categories" inherits="LootReserveBackdropTemplate">
<KeyValues>
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_4" type="global" />
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_5" type="global" />
</KeyValues>
<Anchors>
<Anchor point="TOPRIGHT" relativeKey="$parent.Searchbar" relativePoint="BOTTOMRIGHT" x="1" />
<Anchor point="BOTTOMLEFT" x="16" y="16" />
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<BackgroundInsets left="5" right="5" top="5" bottom="5" />
<EdgeSize val="16" />
</Backdrop>
<Frames>
<ScrollFrame parentKey="Scroll" inherits="LootReserveScrollTemplate">
<Anchors>
Expand All @@ -597,16 +589,12 @@
</Frame>
<Frame parentKey="Loot" inherits="LootReserveBackdropTemplate">
<KeyValues>
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_4" type="global" />
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_5" type="global" />
</KeyValues>
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Searchbar" relativePoint="TOPRIGHT" />
<Anchor point="BOTTOMRIGHT" x="-16" y="16" />
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<BackgroundInsets left="5" right="5" top="5" bottom="5" />
<EdgeSize val="16" />
</Backdrop>
<Frames>
<ScrollFrame parentKey="Scroll" inherits="LootReserveScrollTemplate">
<Anchors>
Expand Down
19 changes: 12 additions & 7 deletions Windows/RollRequestWindow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
<Anchors>
<Anchor point="BOTTOM" y="200" />
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<BackgroundInsets left="4" right="4" top="4" bottom="4" />
<EdgeSize val="16" />
</Backdrop>
<Frames>
<Frame parentKey="DurationFrame">
<Size y="20" />
Expand Down Expand Up @@ -118,6 +114,9 @@
</Layer>
</Layers>
<Scripts>
<OnLoad inherit="preprend">
self.PassedIcon:Disable();
</OnLoad>
<OnClick>
LootReserve.Client:RespondToRollRequest(self.rollMax);
self:Disable();
Expand All @@ -138,7 +137,7 @@
<HighlightTexture file="Interface\Buttons\UI-GroupLoot-Dice-Highlight" alphaMode="ADD" />
<PushedTexture file="Interface\Buttons\UI-GroupLoot-Dice-Down" />
<Frames>
<Button parentKey="PassedIcon" hidden="true" disabled="true">
<Button parentKey="PassedIcon" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.ButtonRoll1" relativePoint="TOPLEFT" />
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.ButtonRoll1" relativePoint="BOTTOMRIGHT" />
Expand All @@ -160,6 +159,9 @@
<Anchor point="RIGHT" relativeKey="$parent.ButtonPass" relativePoint="LEFT" />
</Anchors>
<Scripts>
<OnLoad inherit="preprend">
self.PassedIcon:Disable();
</OnLoad>
<OnClick>
LootReserve.Client:RespondToRollRequest(self.rollMax);
self:Disable();
Expand All @@ -180,7 +182,7 @@
<HighlightTexture file="Interface\Buttons\UI-GroupLoot-Coin-Highlight" alphaMode="ADD" />
<PushedTexture file="Interface\Buttons\UI-GroupLoot-Coin-Down" />
<Frames>
<Button parentKey="PassedIcon" hidden="true" disabled="true">
<Button parentKey="PassedIcon" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.ButtonRoll2" relativePoint="TOPLEFT" />
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.ButtonRoll2" relativePoint="BOTTOMRIGHT" />
Expand All @@ -202,6 +204,9 @@
<Anchor point="RIGHT" relativeKey="$parent.ButtonPass" relativePoint="LEFT" />
</Anchors>
<Scripts>
<OnLoad inherit="preprend">
self.PassedIcon:Disable();
</OnLoad>
<OnClick>
LootReserve.Client:RespondToRollRequest(self.rollMax);
self:Disable();
Expand All @@ -222,7 +227,7 @@
<HighlightTexture file="Interface\Buttons\UI-GroupLoot-DE-Highlight" alphaMode="ADD" />
<PushedTexture file="Interface\Buttons\UI-GroupLoot-DE-Down" />
<Frames>
<Button parentKey="PassedIcon" hidden="true" disabled="true">
<Button parentKey="PassedIcon" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.ButtonRoll3" relativePoint="TOPLEFT" />
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.ButtonRoll3" relativePoint="BOTTOMRIGHT" />
Expand Down
12 changes: 2 additions & 10 deletions Windows/ServerImportWindow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,13 @@
<Frames>
<Frame parentKey="Input" inherits="LootReserveBackdropTemplate">
<KeyValues>
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_4" type="global" />
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_5" type="global" />
</KeyValues>
<Size x="150" />
<Anchors>
<Anchor point="TOPLEFT" y="-12" />
<Anchor point="BOTTOMLEFT" />
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<BackgroundInsets left="5" right="5" top="5" bottom="5" />
<EdgeSize val="16" />
</Backdrop>
<Layers>
<Layer>
<FontString inherits="GameFontNormalSmall" text="Import Settings">
Expand Down Expand Up @@ -232,16 +228,12 @@
</Frame>
<Frame parentKey="Columns" inherits="LootReserveBackdropTemplate">
<KeyValues>
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_4" type="global" />
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_5" type="global" />
</KeyValues>
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Input" relativePoint="TOPRIGHT" />
<Anchor point="BOTTOMRIGHT" />
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<BackgroundInsets left="5" right="5" top="5" bottom="5" />
<EdgeSize val="16" />
</Backdrop>
<Layers>
<Layer>
<FontString inherits="GameFontNormalSmall" text="Column Assignments">
Expand Down
18 changes: 3 additions & 15 deletions Windows/ServerLootEditWindow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
<Script file="ServerLootEditWindow.lua" />
<Frame name="LootReserveLootEditListTemplate" virtual="true" enableMouse="true" inherits="LootReserveBackdropTemplate">
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_TOOLTIP_0_16_5555" type="global" />
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_TOOLTIP_0_16" type="global" />
<KeyValue key="backdropBorderColor" value="NORMAL_FONT_COLOR" type="global" />
<KeyValue key="backdropBorderColorAlpha" value="0" type="number" />
</KeyValues>
<Size y="44" />
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<EdgeSize val="16" />
<BorderColor r="1" g="0.82" b="0" a="0" />
</Backdrop>
<Frames>
<Frame parentKey="ConditionsFrame">
<Size x="112" y="32" />
Expand Down Expand Up @@ -695,16 +691,12 @@
</EditBox>
<Frame parentKey="Categories" inherits="LootReserveBackdropTemplate">
<KeyValues>
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_4" type="global" />
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_5" type="global" />
</KeyValues>
<Anchors>
<Anchor point="TOPRIGHT" relativeKey="$parent.Searchbar" relativePoint="BOTTOMRIGHT" x="1" />
<Anchor point="BOTTOMLEFT" x="16" y="16" />
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<BackgroundInsets left="5" right="5" top="5" bottom="5" />
<EdgeSize val="16" />
</Backdrop>
<Frames>
<ScrollFrame parentKey="Scroll" inherits="LootReserveScrollTemplate">
<Anchors>
Expand All @@ -716,16 +708,12 @@
</Frame>
<Frame parentKey="Loot" inherits="LootReserveBackdropTemplate">
<KeyValues>
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_4" type="global" />
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_5" type="global" />
</KeyValues>
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Searchbar" relativePoint="TOPRIGHT" />
<Anchor point="BOTTOMRIGHT" x="-16" y="16" />
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<BackgroundInsets left="5" right="5" top="5" bottom="5" />
<EdgeSize val="16" />
</Backdrop>
<Frames>
<ScrollFrame parentKey="Scroll" inherits="LootReserveScrollTemplate">
<Anchors>
Expand Down
22 changes: 8 additions & 14 deletions Windows/ServerWindow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,11 @@
</Button>
<Frame name="LootReserveReserveListTemplate" virtual="true" enableMouse="true" inherits="LootReserveBackdropTemplate">
<KeyValues>
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_4" type="global" />
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_5" type="global" />
<KeyValue key="backdropBorderColor" value="WHITE_FONT_COLOR" type="global" />
<KeyValue key="backdropBorderColorAlpha" value="1" type="number" />
</KeyValues>
<Size y="200" />
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<BackgroundInsets left="5" right="5" top="5" bottom="5" />
<EdgeSize val="16" />
<BorderColor r="1" g="1" b="1" a="1" />
</Backdrop>
<Frames>
<Button parentKey="RequestRollButton" frameLevel="101">
<Size x="32" y="32" />
Expand Down Expand Up @@ -631,7 +628,7 @@
<Anchor point="TOPLEFT" relativeKey="$parent.ItemFrame" relativePoint="BOTTOMLEFT" x="-1" y="-2" />
</Anchors>
<Layers>
<Layer layer="OVERLAY">
<Layer level="OVERLAY">
<Texture parentKey="Arrow" file="Interface\Minimap\MinimapArrow">
<Size x="24" y="24" />
<Anchors>
Expand Down Expand Up @@ -1201,13 +1198,10 @@
</Button>
<Frame name="LootReserveRollPlaceholderTemplate" virtual="true" enableMouse="true" inherits="LootReserveBackdropTemplate">
<KeyValues>
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_4" type="global" />
<KeyValue key="backdropInfo" value="LOOTRESERVE_BACKDROP_BLACK_5" type="global" />
<KeyValue key="backdropBorderColor" value="WHITE_FONT_COLOR" type="global" />
<KeyValue key="backdropBorderColorAlpha" value="1" type="number" />
</KeyValues>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<BackgroundInsets left="5" right="5" top="5" bottom="5" />
<EdgeSize val="16" />
<BorderColor r="1" g="1" b="1" a="1" />
</Backdrop>
<Frames>
<Button parentKey="RequestRollButton" hidden="true">
<Size x="32" y="32" />
Expand Down Expand Up @@ -2601,7 +2595,7 @@
<OnLeave function="GameTooltip_Hide" />
</Scripts>
</EditBox>
<EditBox parentKey="EditBoxMultireserve" inherits="NumericInputSpinnerTemplate" autoFocus="false" motionScriptsWhileDisabled="true">
<EditBox parentKey="EditBoxMultireserve" inherits="NumericInputSpinnerTemplate" autoFocus="false">
<Size x="40" y="20" />
<Anchors>
<Anchor point="TOP" relativeKey="$parent.LabelMultireserve" relativePoint="BOTTOM" />
Expand Down

0 comments on commit 87ca721

Please sign in to comment.