mirror of
https://gitlab.com/4w/mtimer.git
synced 2024-11-28 10:13:50 +01:00
add HUD element size description
This commit is contained in:
parent
dc8729c0f5
commit
471f3aac80
@ -52,6 +52,11 @@ Month=Monat
|
||||
Seconds=Sekunden
|
||||
Year=Jahr
|
||||
|
||||
# HUD Element Scaling Information
|
||||
If set to 1 the HUD element is unscaled.=Mit 1 als Wert wird die Anzeige nicht vergrößert.
|
||||
All values larger than 1 scale the element up.=Alle Werte über 1 vergrößern die Anzeige.
|
||||
Clicking the +/- button changes the size by 1.=Ein Klick auf +/- verändert die Größe um 1.
|
||||
|
||||
# Timer Format Variables
|
||||
In-Game Time=Spielzeit
|
||||
Real-World Date=Reale Zeit
|
||||
|
@ -237,6 +237,12 @@ mtimer.dialog.hud_element_size = function (player_name)
|
||||
local player = minetest.get_player_by_name(player_name)
|
||||
local size = player:get_meta():get_string(m.meta.hud_element_size.key)
|
||||
|
||||
local information = table.concat({
|
||||
S('If set to 1 the HUD element is unscaled.'),
|
||||
S('All values larger than 1 scale the element up.'),
|
||||
S('Clicking the +/- button changes the size by 1.')
|
||||
}, '\n')
|
||||
|
||||
mtimer.show_formspec('mtimer:hud_element_size', {
|
||||
title = S('HUD Element Size'),
|
||||
show_to = player_name,
|
||||
@ -245,7 +251,7 @@ mtimer.dialog.hud_element_size = function (player_name)
|
||||
'button[0,0;0.5,0.5;substract;'..S('-')..']',
|
||||
'field[0.75,0;0.75,0.5;hud_element_size;;'..size..']',
|
||||
'button[1.75,0;0.5,0.5;add;'..S('+')..']',
|
||||
'label[0.025,0.75;'..S('Information')..']'
|
||||
'label[0.025,1;'..information..']',
|
||||
}
|
||||
})
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user