mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-12-22 20:32:22 +01:00
add line breaks to tooltips
This commit is contained in:
parent
2e4f894f9e
commit
b0e358fdcb
6
init.lua
6
init.lua
@ -168,15 +168,15 @@ minetest.register_lbm({
|
||||
default.gui_bg_img ..
|
||||
default.gui_slots ..
|
||||
"field[0.5,0.8;1,0.1;cycles;Cycles;${cycles}]" ..
|
||||
"tooltip[cycles;When triggered, this controller will try to run for the given number of cycles. The cycle count will decrement as it runs, so if it gets halted by a problem you can fix the problem and restart.]" ..
|
||||
"tooltip[cycles;When triggered, this controller will try to run for the given number of cycles.\nThe cycle count will decrement as it runs, so if it gets halted by a problem\nyou can fix the problem and restart.]" ..
|
||||
"button_exit[1.2,0.5;1,0.1;set;Set]" ..
|
||||
"tooltip[set;Saves the cycle setting without starting the controller running]" ..
|
||||
"button_exit[2.2,0.5;1,0.1;execute;Set &\nExecute]" ..
|
||||
"tooltip[execute;Begins executing the given number of cycles]" ..
|
||||
"field[0.5,2.0;1,0.1;slope;Slope;${slope}]" ..
|
||||
"tooltip[slope;For diagonal digging. After every X blocks the auto controller moves forward, the controller will add an additional cycle moving the digtron laterally in the direction of the arrows on the side of this controller. Set to 0 for no lateral digging.]" ..
|
||||
"tooltip[slope;For diagonal digging. After every X nodes the auto controller moves forward,\nthe controller will add an additional cycle moving the digtron laterally in the\ndirection of the arrows on the side of this controller.\nSet to 0 for no lateral digging.]" ..
|
||||
"field[1.5,2.0;1,0.1;offset;Offset;${offset}]" ..
|
||||
"tooltip[offset;Sets the offset of the lateral motion defined in the Slope field. Note: this offset is relative to the controller's location. The controller will move down when it reaches the indicated point.]" ..
|
||||
"tooltip[offset;Sets the offset of the lateral motion defined in the Slope field.\nNote: this offset is relative to the controller's location.\nThe controller will move down when it reaches the indicated point.]" ..
|
||||
"field[2.5,2.0;1,0.1;period;Delay;${period}]" ..
|
||||
"tooltip[period;Number of seconds to wait between each cycle]"
|
||||
)
|
||||
|
@ -49,18 +49,18 @@ minetest.register_node("digtron:builder", {
|
||||
default.gui_bg_img ..
|
||||
default.gui_slots ..
|
||||
"list[current_name;main;0.5,0;1,1;]" ..
|
||||
-- "tooltip[main;Builder will build the type of block in this slot. Note that only one item needs to be placed here, to 'program' it. The builder will draw construction materials from the central inventory when building.]" ..
|
||||
-- "tooltip[main;Builder will build the type of block in this slot.\nNote that only one item needs to be placed here, to 'program' it.\nThe builder will draw construction materials from the central inventory when building.]" ..
|
||||
"label[0.5,0.8;Block to build]" ..
|
||||
"field[2.5,0.8;1,0.1;period;Periodicity;${period}]" ..
|
||||
"tooltip[period;Builder will build once every n steps. These steps are globally aligned, so all builders with the same period and offset will build on the same location.]" ..
|
||||
"tooltip[period;Builder will build once every n steps.\nThese steps are globally aligned, so all builders with the\nsame period and offset will build on the same location.]" ..
|
||||
"field[3.5,0.8;1,0.1;offset;Offset;${offset}]" ..
|
||||
"tooltip[offset;Offsets the start of periodicity counting by this amount. For example, a builder with period 2 and offset 0 builds every even-numbered block and one with period 2 and offset 1 builds every odd-numbered block.]" ..
|
||||
"tooltip[offset;Offsets the start of periodicity counting by this amount.\nFor example, a builder with period 2 and offset 0 builds\nevery even-numbered block and one with period 2 and\noffset 1 builds every odd-numbered block.]" ..
|
||||
"button_exit[4.2,0.5;1,0.1;set;Save &\nShow]" ..
|
||||
"tooltip[set;Saves settings]" ..
|
||||
"field[5.7,0.8;1,0.1;build_facing;Facing;${build_facing}]" ..
|
||||
"tooltip[build_facing;Value from 0-23. Not all block types make use of this. Use the 'Read & Save' button to copy the facing of the block currently in the builder output location]" ..
|
||||
"tooltip[build_facing;Value from 0-23. Not all block types make use of this.\nUse the 'Read & Save' button to copy the facing of the block\ncurrently in the builder output location]" ..
|
||||
"button_exit[6.4,0.5;1,0.1;read;Read &\nSave]" ..
|
||||
"tooltip[read;Reads the facing of the block currently in the build location, then saves all settings]" ..
|
||||
"tooltip[read;Reads the facing of the block currently in the build location,\nthen saves all settings]" ..
|
||||
"list[current_player;main;0,1.3;8,1;]" ..
|
||||
"list[current_player;main;0,1.3;8,1;]" ..
|
||||
default.get_hotbar_bg(0,1.3) ..
|
||||
|
@ -76,18 +76,18 @@ local auto_formspec = "size[3.5,2]" ..
|
||||
default.gui_bg_img ..
|
||||
default.gui_slots ..
|
||||
"field[0.5,0.8;1,0.1;cycles;Cycles;${cycles}]" ..
|
||||
"tooltip[cycles;When triggered, this controller will try to run for the given number of cycles. The cycle count will decrement as it runs, so if it gets halted by a problem you can fix the problem and restart.]" ..
|
||||
"tooltip[cycles;When triggered, this controller will try to run for the given number of cycles.\nThe cycle count will decrement as it runs, so if it gets halted by a problem\nyou can fix the problem and restart.]" ..
|
||||
"button_exit[1.2,0.5;1,0.1;set;Set]" ..
|
||||
"tooltip[set;Saves the cycle setting without starting the controller running]" ..
|
||||
"button_exit[2.2,0.5;1,0.1;execute;Set &\nExecute]" ..
|
||||
"tooltip[execute;Begins executing the given number of cycles]" ..
|
||||
"field[0.5,2.0;1,0.1;slope;Slope;${slope}]" ..
|
||||
"tooltip[slope;For diagonal digging. After every X blocks the auto controller moves forward, the controller will add an additional cycle moving the digtron laterally in the direction of the arrows on the side of this controller. Set to 0 for no lateral digging.]" ..
|
||||
"tooltip[slope;For diagonal digging. After every X nodes the auto controller moves forward,\nthe controller will add an additional cycle moving the digtron laterally in the\ndirection of the arrows on the side of this controller.\nSet to 0 for no lateral digging.]" ..
|
||||
"field[1.5,2.0;1,0.1;offset;Offset;${offset}]" ..
|
||||
"tooltip[offset;Sets the offset of the lateral motion defined in the Slope field. Note: this offset is relative to the controller's location. The controller will move down when it reaches the indicated point.]" ..
|
||||
"tooltip[offset;Sets the offset of the lateral motion defined in the Slope field.\nNote: this offset is relative to the controller's location.\nThe controller will move down when it reaches the indicated point.]" ..
|
||||
"field[2.5,2.0;1,0.1;period;Delay;${period}]" ..
|
||||
"tooltip[period;Number of seconds to wait between each cycle]"
|
||||
|
||||
|
||||
-- Needed to make this global so that it could recurse into minetest.after
|
||||
digtron.auto_cycle = function(pos)
|
||||
local node = minetest.get_node(pos)
|
||||
|
@ -29,9 +29,9 @@ local intermittent_on_construct = function(pos)
|
||||
default.gui_bg_img ..
|
||||
default.gui_slots ..
|
||||
"field[0.5,0.8;1,0.1;period;Periodicity;${period}]" ..
|
||||
"tooltip[period;Digger will dig once every n steps. These steps are globally aligned, all diggers with the same period and offset will dig on the same location.]" ..
|
||||
"tooltip[period;Digger will dig once every n steps.\nThese steps are globally aligned, all diggers with\nthe same period and offset will dig on the same location.]" ..
|
||||
"field[1.5,0.8;1,0.1;offset;Offset;${offset}]" ..
|
||||
"tooltip[offset;Offsets the start of periodicity counting by this amount. For example, a digger with period 2 and offset 0 digs every even-numbered block and one with period 2 and offset 1 digs every odd-numbered block.]" ..
|
||||
"tooltip[offset;Offsets the start of periodicity counting by this amount.\nFor example, a digger with period 2 and offset 0 digs\nevery even-numbered block and one with period 2 and\noffset 1 digs every odd-numbered block.]" ..
|
||||
"button_exit[2.2,0.5;1,0.1;set;Save]" ..
|
||||
"tooltip[set;Saves settings]"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user