diff --git a/poll.lua b/poll.lua index 5316f77c..06fee9f2 100644 --- a/poll.lua +++ b/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 \ No newline at end of file +return Class