mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-09 13:37:02 +02:00
commit
b1fc4ae4df
@ -249,7 +249,7 @@ local function player_list_show(player, sort_by)
|
||||
label.style.bottom_padding = 3
|
||||
label.style.minimal_width = 36
|
||||
label.style.maximal_width = 36
|
||||
--label.style.align = "right"
|
||||
label.style.horizontal_align = "right"
|
||||
|
||||
local str = ""
|
||||
if sort_by == "name_asc" then str = symbol_asc .. " " end
|
||||
@ -436,4 +436,4 @@ local function on_player_joined_game(event)
|
||||
end
|
||||
|
||||
event.add(defines.events.on_player_joined_game, on_player_joined_game)
|
||||
event.add(defines.events.on_gui_click, on_gui_click)
|
||||
event.add(defines.events.on_gui_click, on_gui_click)
|
||||
|
10
poll.lua
10
poll.lua
@ -358,14 +358,14 @@ local function draw_main_frame(left, player)
|
||||
local bottom_flow = frame.add {type = 'flow', direction = 'horizontal'}
|
||||
|
||||
local left_flow = bottom_flow.add {type = 'flow'}
|
||||
left_flow.style.align = 'left'
|
||||
left_flow.style.horizontal_align = 'left'
|
||||
left_flow.style.horizontally_stretchable = true
|
||||
|
||||
local close_button = left_flow.add {type = 'button', name = main_button_name, caption = 'Close'}
|
||||
apply_button_style(close_button)
|
||||
|
||||
local right_flow = bottom_flow.add {type = 'flow'}
|
||||
right_flow.style.align = 'right'
|
||||
right_flow.style.horizontal_align = 'right'
|
||||
|
||||
if global.trusted_players[player.name] or player.admin then
|
||||
local create_poll_button =
|
||||
@ -593,7 +593,7 @@ local function draw_create_poll_frame(parent, player, previous_data)
|
||||
local bottom_flow = frame.add {type = 'flow', direction = 'horizontal'}
|
||||
|
||||
local left_flow = bottom_flow.add {type = 'flow'}
|
||||
left_flow.style.align = 'left'
|
||||
left_flow.style.horizontal_align = 'left'
|
||||
left_flow.style.horizontally_stretchable = true
|
||||
|
||||
local close_button = left_flow.add {type = 'button', name = create_poll_close_name, caption = 'Close'}
|
||||
@ -605,7 +605,7 @@ local function draw_create_poll_frame(parent, player, previous_data)
|
||||
Gui.set_data(clear_button, data)
|
||||
|
||||
local right_flow = bottom_flow.add {type = 'flow'}
|
||||
right_flow.style.align = 'right'
|
||||
right_flow.style.horizontal_align = 'right'
|
||||
|
||||
if edit_mode then
|
||||
local delete_button = right_flow.add {type = 'button', name = create_poll_delete_name, caption = 'Delete'}
|
||||
@ -1293,4 +1293,4 @@ function Class.send_poll_result_to_discord(id)
|
||||
server_commands.to_discord_embed(message)
|
||||
end
|
||||
|
||||
return Class
|
||||
return Class
|
||||
|
Loading…
x
Reference in New Issue
Block a user