Skip to content

Commit 7490430

Browse files
committed
Update FramehandleNames with Reforged 2.0 changes
1 parent d4dff03 commit 7490430

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

wurst/_wurst/assets/FramehandleNames.wurst

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,32 @@ public class FramehandleDefaultNames
9494
static constant colorBackdrop = "ColorBackdrop"
9595
/** The framehandle name colorBorder has the subframes [0 to 23] */
9696
static constant colorBorder = "ColorBorder"
97+
/** Container of the 12 command card buttons (1.32+). See commandButton(index) for the buttons. */
98+
static constant commandBarFrame = "CommandBarFrame"
99+
/** Name of a command card button, index 0 to 11 (1.32+): 0 is the top-left (0,0) button, 11 the
100+
bottom-right (3,2). Move/hide via these named frames, not ORIGIN_FRAME_COMMAND_BUTTON (moving
101+
the origin frames glitches in 1.32+). NOTE: command buttons reappear/update on every unit
102+
selection, even while hidden via BlzHideOriginFrames - re-hide on selection if needed. */
103+
static function commandButton(int index) returns string
104+
return "CommandButton_" + I2S(index)
97105
static constant confirmQuitCancelButton = "ConfirmQuitCancelButton"
98106
static constant confirmQuitCancelButtonText = "ConfirmQuitCancelButtonText"
99107
static constant confirmQuitMessageText = "ConfirmQuitMessageText"
100108
static constant confirmQuitPanel = "ConfirmQuitPanel"
101109
static constant confirmQuitQuitButton = "ConfirmQuitQuitButton"
102110
static constant confirmQuitQuitButtonText = "ConfirmQuitQuitButtonText"
103111
static constant confirmQuitTitleText = "ConfirmQuitTitleText"
112+
/** Reforged 2.0+: parent of the bottom console art (CommandBarFrame, info panel parent, idle worker,
113+
ORIGIN_FRAME_UBERTOOLTIP are its children). Does not exist before 2.0 (getter returns null).
114+
Hiding it also hides those children - reparent the ones you want to keep to ConsoleUI first. */
115+
static constant consoleBottomBar = "ConsoleBottomBar"
116+
/** Reforged 2.0+: parent of the top console art (resource bar / menu button background textures).
117+
Does not exist before 2.0 (getter returns null). */
118+
static constant consoleTopBar = "ConsoleTopBar"
104119
static constant consoleUI = "ConsoleUI"
120+
/** Reforged+: the black BACKDROP behind the bottom console; NOT hidden by BlzHideOriginFrames and
121+
it blocks mouse clicks. Standard treatment is collapsing it (setSize(0, 0.0001)) rather than
122+
hiding: it stays useful as a console-level Frame parent (e.g. to move the minimap out of 4:3). */
105123
static constant consoleUIBackdrop = "ConsoleUIBackdrop"
106124
static constant customKeysLabel = "CustomKeysLabel"
107125
static constant customKeysValue = "CustomKeysValue"
@@ -169,6 +187,9 @@ public class FramehandleDefaultNames
169187
static constant extraHighLatencyLabel = "ExtraHighLatencyLabel"
170188
static constant extraHighLatencyRadio = "ExtraHighLatencyRadio"
171189
static constant fileListFrame = "FileListFrame"
190+
/** The bottom minimap button (formation toggle), 1.32+. One of the five minimap buttons; see
191+
miniMapButtonBar for the container and the inconsistent in-game casing of the others. */
192+
static constant formationButton = "FormationButton"
172193
static constant formationToggleCheckBox = "FormationToggleCheckBox"
173194
static constant formationToggleLabel = "FormationToggleLabel"
174195
static constant gameplayButton = "GameplayButton"
@@ -241,6 +262,14 @@ public class FramehandleDefaultNames
241262
static constant insideHelpPanel = "InsideHelpPanel"
242263
static constant insideMainPanel = "InsideMainPanel"
243264
static constant insideTipsPanel = "InsideTipsPanel"
265+
/** Name of an inventory item button, index 0 to 5 (1.32+). Move/hide via these named frames, not
266+
ORIGIN_FRAME_ITEM_BUTTON (moving the origin frames glitches in 1.32+). NOTE: like command
267+
buttons, they reappear/update on every unit selection. */
268+
static function inventoryButton(int index) returns string
269+
return "InventoryButton_" + I2S(index)
270+
/** Reforged 2.0+ texture covering the inventory area when no unit with inventory is selected.
271+
Pre-2.0 this is simpleInventoryCover. Standard treatment: setAlpha(0). */
272+
static constant inventoryCoverTexture = "InventoryCoverTexture"
244273
static constant keyScrollFastLabel = "KeyScrollFastLabel"
245274
static constant keyScrollLabel = "KeyScrollLabel"
246275
static constant keyScrollSlider = "KeyScrollSlider"
@@ -278,6 +307,23 @@ public class FramehandleDefaultNames
278307
static constant mainPanel = "MainPanel"
279308
static constant mapListBoxBackdrop = "MapListBoxBackdrop"
280309
static constant mapListScrollBar = "MapListScrollBar"
310+
/** Minimap ally-filter button (1.32+). Casing of the five minimap buttons is inconsistent in-game;
311+
these constants reproduce it exactly. Individual buttons can only be shown while their container
312+
miniMapButtonBar is visible. */
313+
static constant miniMapAllyButton = "MiniMapAllyButton"
314+
/** Container of the five minimap buttons (ConsoleUI child [4], 1.32.6+ via name). Buttons top to
315+
bottom: minimapSignalButton, miniMapTerrainButton, miniMapAllyButton, miniMapCreepButton,
316+
formationButton (= ORIGIN_FRAME_MINIMAP_BUTTON 0 to 4). */
317+
static constant miniMapButtonBar = "MiniMapButtonBar"
318+
/** Minimap creep-camp filter button (1.32+). */
319+
static constant miniMapCreepButton = "MiniMapCreepButton"
320+
/** The minimap (1.32+); equal to ORIGIN_FRAME_MINIMAP. Quirk: repositioning it a SECOND time in
321+
1.31.1 desyncs minimap clicks from the visual (clicks act relative to the first position). */
322+
static constant miniMapFrame = "MiniMapFrame"
323+
/** Minimap ping/signal button (1.32+). Note the lowercase 'm' in "Minimap": in-game casing. */
324+
static constant minimapSignalButton = "MinimapSignalButton"
325+
/** Minimap terrain-toggle button (1.32+). */
326+
static constant miniMapTerrainButton = "MiniMapTerrainButton"
281327
static constant modelDetailLabel = "ModelDetailLabel"
282328
static constant modelDetailValue = "ModelDetailValue"
283329
static constant mouseScrollDisable = "MouseScrollDisable"
@@ -414,6 +460,9 @@ public class FramehandleDefaultNames
414460
/** The framehandle name simpleInfoPanelItemDetail has the subframe [3] */
415461
static constant simpleInfoPanelItemDetail = "SimpleInfoPanelItemDetail"
416462
static constant simpleInfoPanelUnitDetail = "SimpleInfoPanelUnitDetail"
463+
/** Pre-2.0 texture covering the inventory area when no unit with inventory is selected; Reforged
464+
2.0+ uses inventoryCoverTexture instead. Standard treatment: setAlpha(0). */
465+
static constant simpleInventoryCover = "SimpleInventoryCover"
417466
/** The framehandle name simpleItemDescriptionValue has the subframe [3] */
418467
static constant simpleItemDescriptionValue = "SimpleItemDescriptionValue"
419468
/** The framehandle name simpleItemNameValue has the subframe [3] */

0 commit comments

Comments
 (0)