mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-08 00:39:30 +02:00
Update gui
replace align with horizontal_align
This commit is contained in:
parent
b96b7dc584
commit
92713e988e
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…
Reference in New Issue
Block a user