1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

Disable word wrapping

This commit is contained in:
Matthew Heguy 2019-02-27 17:44:00 -05:00
parent 9994cbfc7a
commit 2045301baf
3 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@ global.config = {
-- The title of the map
map_name_key = 'This Map has no name',
-- The long description of the map, typically 1 paragraph
map_description_key = "This section is supposed to be filled out on a per map basis. If you're seeing this message, ping the admin team to get a description added for this map. A 20 coin bonus is available to the first person to point this out.",
map_description_key = "This section is supposed to be filled out on a per map basis.\nIf you're seeing this message, ping the admin team to get a description\nadded for this map. A 20 coin bonus is available to the first person to point this out.",
-- The feature list of the map
map_extra_info_key = 'This map has no extra information',
-- New Scenario Features, appears in the "What's new" tab

View File

@ -182,7 +182,7 @@ local pages = {
parent_style = parent.style
parent_style.vertically_stretchable = false
header_label(parent, 'Welcome to the Redmew Server!')
header_label(parent, 'Welcome to Redmew!')
centered_label(
parent,
[[
@ -297,7 +297,7 @@ If you suspect someone is griefing, notify the admin team by using /report or by
top_flow_style.horizontal_align = 'center'
top_flow_style.horizontally_stretchable = true
local top_label = top_flow.add {type = 'label', caption = 'Map Infomation'}
local top_label = top_flow.add {type = 'label', caption = 'Map Information'}
local top_label_style = top_label.style
top_label_style.font = 'default-dialog-button'
@ -329,11 +329,11 @@ If you suspect someone is griefing, notify the admin team by using /report or by
text = editable_info[map_description_key]
}
map_description_textbox.read_only = read_only
map_description_textbox.word_wrap = true
--map_description_textbox.word_wrap = true
local map_description_textbox_style = map_description_textbox.style
map_description_textbox_style.width = text_width
map_description_textbox_style.maximal_height = 72
map_description_textbox_style.height = 72
Gui.set_data(map_description_textbox, map_description_key)
@ -345,7 +345,7 @@ If you suspect someone is griefing, notify the admin team by using /report or by
text = editable_info[map_extra_info_key]
}
map_extra_info_textbox.read_only = read_only
map_extra_info_textbox.word_wrap = true
--map_extra_info_textbox.word_wrap = true
local map_extra_info_textbox_style = map_extra_info_textbox.style
map_extra_info_textbox_style.width = text_width

View File

@ -354,7 +354,7 @@ local function draw_main_frame(left, player)
local announcements_textbox = frame.add {type = 'text-box', text = announcements.text}
announcements_textbox.read_only = true
announcements_textbox.word_wrap = true
--announcements_textbox.word_wrap = true
local announcements_textbox_style = announcements_textbox.style
announcements_textbox_style.width = 450
announcements_textbox_style.height = 100
@ -694,7 +694,7 @@ Gui.on_click(
local editing_players_label = top_flow.add {type = 'label'}
local textbox = frame.add {type = 'text-box', name = edit_announcements_textbox_name, text = announcements.edit_text}
textbox.word_wrap = true
--textbox.word_wrap = true
local textbox_style = textbox.style
textbox_style.width = 450
textbox_style.height = 100