Convert player list, data, module, and vlayer

This commit is contained in:
Cooldude2606
2025-01-26 21:35:15 +00:00
parent 81c1e17429
commit a2b4fd119b
11 changed files with 363 additions and 300 deletions

View File

@@ -38,6 +38,13 @@ function ExpGui.set_toolbar_button_style(element, state)
return state
end
--- Get the state of a toolbar button
--- @param element LuaGuiElement
--- @return boolean
function ExpGui.get_toolbar_button_state(element)
return element.style.name == toolbar_button_active_style
end
--- Set the visible state of the top flow for a player
--- @param player LuaPlayer
--- @param state boolean?

View File

@@ -168,7 +168,7 @@ elements.header = ExpGui.element("container_header")
}
end
return elements.aligned_flow(subframe, { name = "flow" })
return opts.no_flow and subframe or elements.aligned_flow(subframe, { name = "flow" })
end)
--- A footer frame within a container
@@ -187,7 +187,7 @@ elements.footer = ExpGui.element("container_footer")
}
end
return elements.aligned_flow(subframe, { name = "flow" })
return opts.no_flow and subframe or elements.aligned_flow(subframe, { name = "flow" })
end)
return elements

View File

@@ -6,7 +6,7 @@ local GuiIter = require("modules/exp_gui/iter")
--- @class ExpGui_ExpElement
local ExpElement = {
_elements = {}, --- @type table<string, LuaGuiElement>
_elements = {}, --- @type table<string, ExpElement>
}
ExpElement.events = {}