Skip to content

Commit

Permalink
Reorganize the startbox image table
Browse files Browse the repository at this point in the history
  • Loading branch information
AntlerForce committed Dec 17, 2024
1 parent 10ce913 commit 076d2ea
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions LuaMenu/widgets/gui_battle_room_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ local function SetupInfoButtonsPanel(leftInfo, rightInfo, battle, battleID, myUs

local startBoxSelectorNames = {"Default Boxes", "East vs West", "North vs South", "NE vs SW", "NW vs SE", "4 Corners", "4 Sides"}
local startBoxSelectorTooltips = {"Reset to default", "East vs West", "North vs South", "Northeast vs Southwest", "Northwest vs Southeast", "Southwest vs Northeast vs Northwest vs Southeast", "West vs East vs North vs South"}

local startBoxSelectorImages = {startBoxDefaultImage, LUA_DIRNAME .. "images/startboxsplit_v.png", LUA_DIRNAME .. "images/startboxsplit_h.png", LUA_DIRNAME .. "images/startboxsplit_c1.png", LUA_DIRNAME .. "images/startboxsplit_c2.png", LUA_DIRNAME .. "images/startboxsplit_c.png", LUA_DIRNAME .. "images/startboxsplit_s.png"}
local startBoxComboBox = ComboBox:New{
name = 'startBoxComboBox',
x = "12.25%",
Expand All @@ -190,6 +190,7 @@ local function SetupInfoButtonsPanel(leftInfo, rightInfo, battle, battleID, myUs
bottom = 1,
items = startBoxSelectorNames,
itemsTooltips = startBoxSelectorTooltips,
itemImages = startBoxSelectorImages,
itemKeyToName = startBoxSelectorNames,
objectOverrideFont = config:GetFont(2),
parent = startBoxPanel,
Expand All @@ -208,13 +209,13 @@ local function SetupInfoButtonsPanel(leftInfo, rightInfo, battle, battleID, myUs
end

local imageFileMap = {
["Default Boxes"] = startBoxDefaultImage,
["East vs West"] = LUA_DIRNAME .. "images/startboxsplit_v.png",
["North vs South"] = LUA_DIRNAME .. "images/startboxsplit_h.png",
["NE vs SW"] = LUA_DIRNAME .. "images/startboxsplit_c1.png",
["NW vs SE"] = LUA_DIRNAME .. "images/startboxsplit_c2.png",
["4 Corners"] = LUA_DIRNAME .. "images/startboxsplit_c.png",
["4 Sides"] = LUA_DIRNAME .. "images/startboxsplit_s.png",
["Default Boxes"] = startBoxSelectorImages[1],
["East vs West"] = startBoxSelectorImages[2],
["North vs South"] = startBoxSelectorImages[3],
["NE vs SW"] = startBoxSelectorImages[4],
["NW vs SE"] = startBoxSelectorImages[5],
["4 Corners"] = startBoxSelectorImages[6],
["4 Sides"] = startBoxSelectorImages[7],
}

local function UpdateBoxes()
Expand Down

0 comments on commit 076d2ea

Please sign in to comment.