mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
updates
This commit is contained in:
parent
62ddc353a7
commit
43f283b3a5
@ -4,6 +4,7 @@ local close_name = Gui.uid_name()
|
||||
|
||||
local function show_popup(player, message)
|
||||
local frame = player.gui.center.add {type = 'frame', direction = 'vertical'}
|
||||
frame.style.minimal_width = 300
|
||||
|
||||
local close_button_flow = frame.add {type = 'flow'}
|
||||
close_button_flow.style.horizontally_stretchable = true
|
||||
@ -24,6 +25,8 @@ local function show_popup(player, message)
|
||||
label_flow.style.bottom_padding = 32
|
||||
label_flow.style.left_padding = 32
|
||||
label_flow.style.right_padding = 32
|
||||
label_flow.style.align = 'center'
|
||||
label_flow.style.horizontally_stretchable = true
|
||||
|
||||
local label = label_flow.add {type = 'label', caption = message}
|
||||
label.style.single_line = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user