mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-09-16 09:16:22 +02:00
Autoformat
This commit is contained in:
@@ -77,8 +77,7 @@ end
|
|||||||
local changelog_callback = Token.register(process_changelog)
|
local changelog_callback = Token.register(process_changelog)
|
||||||
|
|
||||||
local function prepare_title()
|
local function prepare_title()
|
||||||
local welcome_title =
|
local welcome_title = [[
|
||||||
[[
|
|
||||||
111111 1111111 111111 111 111 1111111 11 11
|
111111 1111111 111111 111 111 1111111 11 11
|
||||||
11 11 11 11 11 1111 1111 11 11 11
|
11 11 11 11 11 1111 1111 11 11 11
|
||||||
111111 11111 11 11 11 1111 11 11111 11 1 11
|
111111 11111 11 11 11 1111 11 11111 11 1 11
|
||||||
@@ -187,21 +186,16 @@ We are a friendly bunch, our objective is to have as much fun as possible and we
|
|||||||
)
|
)
|
||||||
|
|
||||||
header_label(parent, 'How To Chat')
|
header_label(parent, 'How To Chat')
|
||||||
centered_label(
|
centered_label(parent, [[
|
||||||
parent,
|
|
||||||
[[
|
|
||||||
To chat with other players, press the "grave" key on your keyboard.
|
To chat with other players, press the "grave" key on your keyboard.
|
||||||
It is below the ESC key on English keyboards and looks like ~ or `
|
It is below the ESC key on English keyboards and looks like ~ or `
|
||||||
This can be changed in options -> controls -> "toggle lua console".
|
This can be changed in options -> controls -> "toggle lua console".
|
||||||
]]
|
]])
|
||||||
)
|
|
||||||
|
|
||||||
if global.config.player_rewards.enabled and global.config.player_rewards.info_player_reward then
|
if global.config.player_rewards.enabled and global.config.player_rewards.info_player_reward then
|
||||||
local string = format('You have been given %s %s%s for looking at the welcome tab.\nChecking each tab will reward you %s more %s%s.\n', reward_amount, reward_token, reward_plural_indicator, reward_amount, reward_token, reward_plural_indicator)
|
local string = format('You have been given %s %s%s for looking at the welcome tab.\nChecking each tab will reward you %s more %s%s.\n', reward_amount, reward_token, reward_plural_indicator, reward_amount, reward_token, reward_plural_indicator)
|
||||||
header_label(parent, 'Free Coins')
|
header_label(parent, 'Free Coins')
|
||||||
centered_label(
|
centered_label(parent, string)
|
||||||
parent, string
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
header_label(parent, 'Useful Links')
|
header_label(parent, 'Useful Links')
|
||||||
@@ -236,8 +230,7 @@ This can be changed in options -> controls -> "toggle lua console".
|
|||||||
maps_textbox_flow_style.align = 'center'
|
maps_textbox_flow_style.align = 'center'
|
||||||
maps_textbox_flow_style.horizontally_stretchable = true
|
maps_textbox_flow_style.horizontally_stretchable = true
|
||||||
maps_textbox_flow.add({type = 'label', caption = 'Maps: '}).style.font = 'default-bold'
|
maps_textbox_flow.add({type = 'label', caption = 'Maps: '}).style.font = 'default-bold'
|
||||||
local maps_textbox =
|
local maps_textbox = maps_textbox_flow.add {type = 'text-box', text = 'https://factoriomaps.com/browse/redmew.html '}
|
||||||
maps_textbox_flow.add {type = 'text-box', text = 'https://factoriomaps.com/browse/redmew.html '}
|
|
||||||
maps_textbox.read_only = true
|
maps_textbox.read_only = true
|
||||||
|
|
||||||
parent.add({type = 'flow'}).style.height = 24
|
parent.add({type = 'flow'}).style.height = 24
|
||||||
@@ -428,7 +421,7 @@ but you will lose a small plane. You can get planes from the market.
|
|||||||
player_list.style.font = 'default-listbox'
|
player_list.style.font = 'default-listbox'
|
||||||
player_list.style.single_line = false
|
player_list.style.single_line = false
|
||||||
local player_list_label =
|
local player_list_label =
|
||||||
grid.add {
|
grid.add {
|
||||||
type = 'label',
|
type = 'label',
|
||||||
caption = [[
|
caption = [[
|
||||||
Lists all players on the server and shows some stats. You can sort the list by
|
Lists all players on the server and shows some stats. You can sort the list by
|
||||||
@@ -442,7 +435,7 @@ noun in the chat.]]
|
|||||||
local poll = grid.add {type = 'label', caption = 'Polls'}
|
local poll = grid.add {type = 'label', caption = 'Polls'}
|
||||||
poll.style.font = 'default-listbox'
|
poll.style.font = 'default-listbox'
|
||||||
local poll_label =
|
local poll_label =
|
||||||
grid.add {
|
grid.add {
|
||||||
type = 'label',
|
type = 'label',
|
||||||
caption = [[
|
caption = [[
|
||||||
Polls help players get consensus for major actions. Want to improve an important
|
Polls help players get consensus for major actions. Want to improve an important
|
||||||
@@ -460,7 +453,7 @@ to make new polls.]]
|
|||||||
local tag = grid.add {type = 'label', caption = 'Tags'}
|
local tag = grid.add {type = 'label', caption = 'Tags'}
|
||||||
tag.style.font = 'default-listbox'
|
tag.style.font = 'default-listbox'
|
||||||
local tag_label =
|
local tag_label =
|
||||||
grid.add {
|
grid.add {
|
||||||
type = 'label',
|
type = 'label',
|
||||||
caption = [[
|
caption = [[
|
||||||
You can assign yourself a role with tags to let other players know what you are
|
You can assign yourself a role with tags to let other players know what you are
|
||||||
@@ -475,7 +468,7 @@ be sure to show off your creatively.]]
|
|||||||
local task = grid.add {type = 'label', caption = 'Tasks'}
|
local task = grid.add {type = 'label', caption = 'Tasks'}
|
||||||
task.style.font = 'default-listbox'
|
task.style.font = 'default-listbox'
|
||||||
local task_label =
|
local task_label =
|
||||||
grid.add {
|
grid.add {
|
||||||
type = 'label',
|
type = 'label',
|
||||||
caption = [[
|
caption = [[
|
||||||
Not sure what you should be working on, why not look at the tasks and see what
|
Not sure what you should be working on, why not look at the tasks and see what
|
||||||
@@ -492,7 +485,7 @@ needs doing. Regulars can add new tasks.]]
|
|||||||
blueprint_style.single_line = false
|
blueprint_style.single_line = false
|
||||||
blueprint_style.width = 55
|
blueprint_style.width = 55
|
||||||
local blueprint_label =
|
local blueprint_label =
|
||||||
grid.add {
|
grid.add {
|
||||||
type = 'label',
|
type = 'label',
|
||||||
caption = [[
|
caption = [[
|
||||||
The Blueprint helper™ lets you flip blueprints horizontally or vertically and lets you
|
The Blueprint helper™ lets you flip blueprints horizontally or vertically and lets you
|
||||||
@@ -506,7 +499,7 @@ converter the entities used in the blueprint e.g. turn yellow belts into red bel
|
|||||||
local score = grid.add {type = 'label', caption = 'Score'}
|
local score = grid.add {type = 'label', caption = 'Score'}
|
||||||
score.style.font = 'default-listbox'
|
score.style.font = 'default-listbox'
|
||||||
local score_label =
|
local score_label =
|
||||||
grid.add {
|
grid.add {
|
||||||
type = 'label',
|
type = 'label',
|
||||||
caption = [[
|
caption = [[
|
||||||
Shows number of rockets launched and biters liberated.]]
|
Shows number of rockets launched and biters liberated.]]
|
||||||
|
Reference in New Issue
Block a user