mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
Convert player list, data, module, and vlayer
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user