From 253da97d52405a7732bc4796e1ffe4481f1678d0 Mon Sep 17 00:00:00 2001 From: Dirk Sohler Date: Fri, 5 May 2017 21:58:07 +0200 Subject: [PATCH] split settingtypes into individual mods --- settingtypes.txt | 95 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 settingtypes.txt diff --git a/settingtypes.txt b/settingtypes.txt new file mode 100644 index 0000000..74a33ff --- /dev/null +++ b/settingtypes.txt @@ -0,0 +1,95 @@ +# vim: set ft=settingtypes: + + +# Since MT is no real-time application and Lua isn't super +# fast when accessed through the API there is no need in +# setting this to 1 second. The default of 30 seconds is +# absolutely fine. +xtimer_update_interval (Seconds between updates) int 30 + +# The string will be displayed as provided here. There +# are some variables. +# +# +s = Session start time as formatted +# +c = Current time as formatted +# +r = Runtime of the current session +# +i = Current ingame time in 24h format +# +n = Following output will be in a new line +xtimer_output_format (Output string formatting) string Aufnahmesitzung vom +s+nAktuelle Uhrzeit: +c+nSpieldauer: +r, Ingame-Zeit: +i + +# A placeholder text that is shown before the timer +# function gets executed the first time +xtimer_placeholder (Placeholder for the timer) string [xTimer ...] + +# The font color for the timer text +# +# Because the timer text is shown all the time the default +# color is not white but a bit darker so it doesn’t +# distract too much from the game. +# +# Use the hexadecimal color notation here (“HTML notation” +# but without the `#` sign in front). +xtimer_font_color (Font color for the timer text) string babdb6 + + +[Time Formatting] + +# Time when the current session was started. The session +# is based on when the user connected to the world. The +# format is this: https://www.lua.org/pil/22.1.html +xtimer_session_start ([+s] Session start time) string %d. %B %Y, %H:%M Uhr + +# A hours:minutes timer that allows tracking of the +# current play time. The timer breaks if game time +# exceeds 24 hours. +# +# +h = Hours +# +m = Minutes +# +s = Seconds +xtimer_session_runtime ([+r] Session runtime) string +h:+m + +# The current real-world time according to what the OS +# provides. Formatting this string is quite easy by using +# those tags: https://www.lua.org/pil/22.1.html +xtimer_current_time ([+c] Current time) string %d. %B %Y, %H:%M Uhr + +# Ingame time in 24 hours format that was converted +# the provided decimal number and might not be 100 +# percent exact. +# +# +h = hours with leading zeros +# +m = minutes with leading zeros +xtimer_ingame_time ([+i] Ingame time) string +h:+m Uhr + +# Locale that will be used for the time formatting. The +# locale has to be provided by your system. On Linux see +# command `locale` for valid locales to use. +xtimer_locale (Format output locale) string de_DE.utf8 + + +[Positioning] + +# "To account for differing resolutions, the position +# coordinates are the percentage of the screen, ranging +# in value from 0 to 1. 0 means left/top, 1 means +# right/bottom." Separate the numbers with a comma but +# without spaces. +# +# See http://dev.minetest.net/HUD#Fields +xtimer_position (Position) string 0,1 + +# "Specifies how the item will be aligned. It ranges +# from -1 to 1, with 0 being the center, -1 is moved to +# the left/up, and 1 is to the right/down." Separate the +# numbers with a comma but without spaces. +# +# See http://dev.minetest.net/HUD#Fields +xtimer_alignment (Alignment) string 1,-1 + +# "Specifies a pixel offset from the position. Not scaled +# to the screen size. [It adapts] to screen DPI as well +# as the user defined scaling factor!" Separate the +# numbers with a comma but without spaces. +# +# See http://dev.minetest.net/HUD#Fields +xtimer_offset (Offset) string 4,0