mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Merge branch 'explosivegaming:main' into aperx
This commit is contained in:
@@ -494,7 +494,7 @@ function Toolbar._ensure_consistency(player)
|
|||||||
if type(allowed) == "function" then
|
if type(allowed) == "function" then
|
||||||
allowed = allowed(player, element)
|
allowed = allowed(player, element)
|
||||||
end
|
end
|
||||||
element.visible = allowed and element.visible or false
|
element.visible = allowed or false
|
||||||
list[button.name].visible = element.visible
|
list[button.name].visible = element.visible
|
||||||
|
|
||||||
-- Update the toggle state and hide the linked left element if the button is not allowed
|
-- Update the toggle state and hide the linked left element if the button is not allowed
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ local default = Roles.new_role("Guest", "")
|
|||||||
-- "command/tag",
|
-- "command/tag",
|
||||||
-- "command/tag-clear",
|
-- "command/tag-clear",
|
||||||
"command/commands",
|
"command/commands",
|
||||||
"command/get-role",
|
"command/get-roles",
|
||||||
"command/locate",
|
"command/locate",
|
||||||
"command/create-report",
|
"command/create-report",
|
||||||
"command/ratio",
|
"command/ratio",
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ local section = Gui.element("autofill_section")
|
|||||||
return def:unlink_element(section_table)
|
return def:unlink_element(section_table)
|
||||||
end)
|
end)
|
||||||
:on_click(function(def, player, element, event)
|
:on_click(function(def, player, element, event)
|
||||||
event.element = element.parent.alignment[toggle_section.name]
|
event.element = element.parent.flow[toggle_section.name]
|
||||||
toggle_section:raise_event(event)
|
toggle_section:raise_event(event)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
@@ -443,7 +443,7 @@ local section = Gui.element("rocket_info_section")
|
|||||||
return definition:unlink_element(scroll_table)
|
return definition:unlink_element(scroll_table)
|
||||||
end)
|
end)
|
||||||
:on_click(function(def, player, element, event)
|
:on_click(function(def, player, element, event)
|
||||||
event.element = element.parent.alignment[toggle_section.name]
|
event.element = element.parent.flow[toggle_section.name]
|
||||||
toggle_section:raise_event(event)
|
toggle_section:raise_event(event)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ UsesServerUps:on_load(function(player_name, visible)
|
|||||||
|
|
||||||
--- @diagnostic disable-next-line undefined-field
|
--- @diagnostic disable-next-line undefined-field
|
||||||
if not External.valid() or not storage.ext.var.server_ups then visible = false end
|
if not External.valid() or not storage.ext.var.server_ups then visible = false end
|
||||||
label.visible = visible
|
label.visible = visible or false
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--- Toggles if the server ups is visbile
|
--- Toggles if the server ups is visbile
|
||||||
|
|||||||
@@ -35,10 +35,9 @@ Commands.new("unassign-role", { "exp-commands_roles.description-unassign" })
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
--- Lists all roles in they correct order
|
--- Lists all roles in they correct order
|
||||||
Commands.new("get-role", { "exp-commands_roles.description-get" })
|
Commands.new("get-roles", { "exp-commands_roles.description-get" })
|
||||||
:optional("player", { "exp-commands_roles.arg-player-get" }, Commands.types.player)
|
:optional("player", { "exp-commands_roles.arg-player-get" }, Commands.types.player)
|
||||||
:add_aliases{ "roles" }
|
:add_aliases{ "roles" }
|
||||||
:add_flags{ "admin_only" }
|
|
||||||
:register(function(player, other_player)
|
:register(function(player, other_player)
|
||||||
--- @cast other_player LuaPlayer?
|
--- @cast other_player LuaPlayer?
|
||||||
local roles = get_roles_ordered()
|
local roles = get_roles_ordered()
|
||||||
|
|||||||
Reference in New Issue
Block a user