Use Monospace Font for Code-Related Formspecs
Only works in very new dev versions of Minetest; table font styling doesn't work at all yet, see minetest/minetest#10194. Additionally, a little typo is fixed.master
parent
96f8710980
commit
aea493ffe8
|
@ -165,7 +165,7 @@ Rinsing=Waschen
|
|||
River Water Barrel=Flusswasserfass
|
||||
Save=Speichern
|
||||
Select type=Wähle Typ
|
||||
Send an event if state is equal or larget than=Senden ein Event wenn Status größer oder gleich als
|
||||
Send an event if state is equal or larger than=Senden ein Event wenn Status größer oder gleich als
|
||||
Send signal if nodes have been:=Sende ein Signal falls Blöcke:
|
||||
Show all forceload blocks in a 64x64x64 range=Zeige alle Forceload Blöcke im Umkreis von 64x64x64 Blöcken
|
||||
Sieved Basalt Gravel=Basaltkies gesiebt
|
||||
|
|
|
@ -163,7 +163,7 @@ Rinsing=
|
|||
River Water Barrel=
|
||||
Save=
|
||||
Select type=
|
||||
Send an event if state is equal or larget than=
|
||||
Send an event if state is equal or larger than=
|
||||
Send signal if nodes have been:=
|
||||
Show all forceload blocks in a 64x64x64 range=
|
||||
Sieved Basalt Gravel=
|
||||
|
|
|
@ -38,7 +38,7 @@ local function formspec(nvm, meta)
|
|||
default.gui_slots..
|
||||
"field[0.3,0.6;9,1;poll_numbers;"..S("Node numbers to read the states from")..":;"..poll_numbers.."]" ..
|
||||
"field[0.3,2;9,1;event_number;"..S("Node number to send the events to")..":;"..event_number.."]" ..
|
||||
"label[1.3,2.8;"..S("Send an event if state is equal or larget than")..":]"..
|
||||
"label[1.3,2.8;"..S("Send an event if state is equal or larger than")..":]"..
|
||||
"dropdown[1.2,3.4;7,4;severity;1 standby,2 blocked,3 nopower,4 fault;"..dropdown_pos.."]"..
|
||||
"button_exit[3,5;2,1;exit;Save]"
|
||||
end
|
||||
|
|
|
@ -76,6 +76,7 @@ local function formspec2(meta)
|
|||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.gui_slots..
|
||||
"style_type[table,field;font=mono]"..
|
||||
"button[0,0;3.3,1;bttn1;"..bttn_text1.."]button[3.3,0;3.3,1;bttn2;"..bttn_text2.."]button[6.6,0;3.3,1;bttn3;"..bttn_text3.."]"..
|
||||
"button[0,0.8;3.3,1;bttn4;"..bttn_text4.."]button[3.3,0.8;3.3,1;bttn5;"..bttn_text5.."]button[6.6,0.8;3.3,1;bttn6;"..bttn_text6.."]"..
|
||||
"button[0,1.6;3.3,1;bttn7;"..bttn_text7.."]button[3.3,1.6;3.3,1;bttn8;"..bttn_text8.."]button[6.6,1.6;3.3,1;bttn9;"..bttn_text9.."]"..
|
||||
|
|
|
@ -172,6 +172,7 @@ local function formspec1(meta)
|
|||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.gui_slots..
|
||||
"style_type[textarea;font=mono]"..
|
||||
"tabheader[0,0;tab;init,func,loop,outp,notes,help;1;;true]"..
|
||||
"textarea[0.3,0.2;10,8.3;init;function init();"..init.."]"..
|
||||
"label[0,7.3;end]"..
|
||||
|
@ -189,6 +190,7 @@ local function formspec2(meta)
|
|||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.gui_slots..
|
||||
"style_type[textarea;font=mono]"..
|
||||
"tabheader[0,0;tab;init,func,loop,outp,notes,help;2;;true]"..
|
||||
"textarea[0.3,0.2;10,8.3;func;functions:;"..func.."]"..
|
||||
"button_exit[4.4,7.5;1.8,1;cancel;Cancel]"..
|
||||
|
@ -205,6 +207,7 @@ local function formspec3(meta)
|
|||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.gui_slots..
|
||||
"style_type[textarea;font=mono]"..
|
||||
"tabheader[0,0;tab;init,func,loop,outp,notes,help;3;;true]"..
|
||||
"textarea[0.3,0.2;10,8.3;loop;function loop(ticks, elapsed);"..loop.."]"..
|
||||
"label[0,7.3;end]"..
|
||||
|
@ -237,6 +240,7 @@ local function formspec5(meta)
|
|||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.gui_slots..
|
||||
"style_type[textarea;font=mono]"..
|
||||
"tabheader[0,0;tab;init,func,loop,outp,notes,help;5;;true]"..
|
||||
"textarea[0.3,0.2;10,8.3;notes;Notepad:;"..notes.."]"..
|
||||
"button_exit[6.3,7.5;1.8,1;cancel;Cancel]"..
|
||||
|
@ -249,6 +253,7 @@ local function formspec6(items, pos, text)
|
|||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.gui_slots..
|
||||
"style_type[textarea;font=mono]"..
|
||||
"tabheader[0,0;tab;init,func,loop,outp,notes,help;6;;true]"..
|
||||
"label[0,-0.2;Functions:]"..
|
||||
"dropdown[0.3,0.2;10,8.3;functions;"..items..";"..pos.."]"..
|
||||
|
|
|
@ -50,6 +50,7 @@ local function formspec2(meta)
|
|||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.gui_slots..
|
||||
"style_type[table,field;font=mono]"..
|
||||
"table[0.1,0.1;8.6,6.6;output;"..output..";200]"..
|
||||
"field[0.5,7.6;6,1;cmnd;Enter command;]" ..
|
||||
"field_close_on_enter[cmnd;false]"..
|
||||
|
|
Loading…
Reference in New Issue