mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Merge pull request #924 from linaori/polish-redmew-settings-gui
Added a sync message to the settings GUI
This commit is contained in:
commit
1e2c924cee
@ -89,6 +89,15 @@ local function draw_main_frame(center, player)
|
||||
local settings_frame_style = settings_frame.style
|
||||
settings_frame_style.width = 400
|
||||
|
||||
local info_text = settings_frame.add({type = 'label', caption = {'redmew_settings_gui.setting_info'}})
|
||||
local info_text_style = info_text.style
|
||||
info_text_style.single_line = false
|
||||
info_text_style.bottom_padding = 5
|
||||
info_text_style.left_padding = 5
|
||||
info_text_style.right_padding = 5
|
||||
info_text_style.top_padding = 5
|
||||
info_text_style.width = 370
|
||||
|
||||
local scroll_pane = settings_frame.add({type = 'scroll-pane'})
|
||||
local scroll_style = scroll_pane.style
|
||||
scroll_style.vertically_squashable = true
|
||||
@ -108,11 +117,18 @@ local function draw_main_frame(center, player)
|
||||
type = 'label',
|
||||
caption = setting.localised_string,
|
||||
})
|
||||
label.style.horizontally_stretchable = true
|
||||
label.style.height = 35
|
||||
|
||||
local label_style = label.style
|
||||
label_style.horizontally_stretchable = true
|
||||
label_style.height = 35
|
||||
label_style.vertical_align = 'center'
|
||||
|
||||
local value = Settings.get(player_index, name)
|
||||
local input = create_input_element(setting_grid, setting.type, value)
|
||||
local input_container = setting_grid.add({type = 'flow'})
|
||||
local input_container_style = input_container.style
|
||||
input_container_style.height = 35
|
||||
input_container_style.vertical_align = 'center'
|
||||
local input = create_input_element(input_container, setting.type, value)
|
||||
|
||||
data[name] = {
|
||||
label = label,
|
||||
|
@ -19,7 +19,7 @@ find=Shows an alert on the map where the player is located
|
||||
show_rail_block=Toggles rail block visualisation.
|
||||
server_time=Prints the server's time.
|
||||
seeds=List the seeds of all surfaces
|
||||
redmew_version=Prints the version of the RedMew scenario
|
||||
redmew_version=Prints the version of the Redmew scenario
|
||||
whois=provides information about a given player, admins can see the inventory of a player by adding "yes" as a second argument
|
||||
meltdown_get=Gets the status of meltdown.
|
||||
meltdown_set=Sets the status of meltdown.
|
||||
|
@ -102,7 +102,7 @@ mention_not_found_plural=__1__ Players not found: __2__
|
||||
mention_not_found_singular=__1__ Player not found: __2__
|
||||
|
||||
[player_onboarding]
|
||||
teach_toast=This is a feature in RedMew called a toast!\nThey're little pieces of information that pop up.\nYou can dismiss it by waiting or by clicking on it.
|
||||
teach_toast=This is a feature in Redmew called a toast!\nThey're little pieces of information that pop up.\nYou can dismiss it by waiting or by clicking on it.
|
||||
teach_chat=To chat with other players, press the __CONTROL__toggle-console__ key on your keyboard.\nThe default key on English keyboards is the grave (`) and is below the ESC key.\nThis key can be changed in __1__ -> __2__ -> __3__.
|
||||
|
||||
[retailer]
|
||||
|
@ -1,7 +1,7 @@
|
||||
# This file holds all the locale strings for guis
|
||||
|
||||
[info]
|
||||
tooltip=RedMew Info
|
||||
tooltip=Redmew Info
|
||||
welcome_header=Welcome to Redmew!
|
||||
welcome_text=Redmew is a community for players of all skill levels committed to pushing the limits of Factorio Multiplayer through custom scripts and crazy map designs.\n\nWe are a friendly bunch, our objective is to have as much fun as possible and we hope you will too.
|
||||
chatting_header=How To Chat
|
||||
@ -44,11 +44,12 @@ softmods_score_text=Shows number of rockets launched and biters liberated.
|
||||
whats_new_button=What's New
|
||||
|
||||
[redmew_settings_gui]
|
||||
tooltip=Your RedMew settings
|
||||
tooltip=Your Redmew settings
|
||||
save_success_toast_message=Your settings have been updated!
|
||||
frame_title=Redmew Settings
|
||||
button_cancel=Cancel
|
||||
button_save_changes=Save changes
|
||||
setting_info=When playing on a Redmew server, these settings will synchronize to other Redmew servers.
|
||||
|
||||
[player_list]
|
||||
tooltip=Player list
|
||||
|
Loading…
Reference in New Issue
Block a user