mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2025-01-20 02:59:53 +02:00
Speculative fixes for GUI stuff.
This commit is contained in:
parent
15cfbcded1
commit
d64ebf53d8
@ -201,13 +201,13 @@ function TabChangeOarcGui(event)
|
||||
local gui_function = global.oarc_gui_tabs[player.name][selected_tab_name].gui_tab_function
|
||||
|
||||
for i,t in pairs(otabs.tabs) do
|
||||
if (i ~= otabs.selected_tab_index) then
|
||||
-- if (i ~= otabs.selected_tab_index) then
|
||||
local tname = otabs.tabs[i].tab.name
|
||||
global.oarc_gui_tabs[player.name][tname].container.clear()
|
||||
end
|
||||
-- end
|
||||
end
|
||||
|
||||
container.clear()
|
||||
-- container.clear()
|
||||
gui_function(container, player)
|
||||
end
|
||||
|
||||
|
@ -20,7 +20,7 @@ local roles = {
|
||||
{display_name = "[AFK]"}}
|
||||
|
||||
function CreateTagGuiTab(tab_container, player)
|
||||
for _, role in pairs(roles) do
|
||||
for i,role in ipairs(roles) do
|
||||
tab_container.add{type="button", caption=role.display_name, name=role.display_name}
|
||||
end
|
||||
if (player.admin) then
|
||||
@ -40,7 +40,7 @@ function TagGuiClick(event)
|
||||
return
|
||||
end
|
||||
|
||||
for _, role in pairs(roles) do
|
||||
for i,role in ipairs(roles) do
|
||||
if (name == role.display_name) then
|
||||
player.tag = role.display_name
|
||||
elseif (name == "admin") then
|
||||
|
Loading…
x
Reference in New Issue
Block a user