aboutsummaryrefslogtreecommitdiff
path: root/src/guiEngine.h
Commit message (Expand)AuthorAge
* Remove top left minetest watermarkest312016-07-03
* Initial Gamepad supportest312016-06-03
* Add colored text (not only colored chat).Ekdohibs2016-05-31
* Replace instances of std::map<std::string, std::string> with StringMapkwolekr2015-05-19
* Replace std::list to std::vector into tile.cpp (m_texture_trash) and move til...Loic Blot2015-03-05
* Implement proper font handlingsapier2014-11-30
* Fix regression dirt texture not beeing default in non cloud menusapier2014-06-14
* Fix code style of async APIShadowNinja2014-04-27
* Fix modstore/favourites hang by adding asynchronous lua job supportsapier2013-11-29
* Change mainmenu texture handling + small misc changesKahrl2013-09-11
* Allow SIGINT to kill mainmenu againKahrl2013-08-19
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
* Play sounds/main_menu.ogg in menuPilzAdam2013-07-28
* Replace C++ mainmenu by formspec powered onesapier2013-07-02
hl slc">-- Those can display the 3 main aspects of Ks signals -- Note that the group value of advtrains_signal is 2, which means "step 2 of signal capabilities" -- advtrains_signal=1 is meant for signals that do not implement set_aspect. local setaspect = function(pos, node, asp) if not asp.main.free then advtrains.ndb.swap_node(pos, {name="advtrains_interlocking:ds_danger"}) else if asp.dst.free and asp.main.speed == -1 then advtrains.ndb.swap_node(pos, {name="advtrains_interlocking:ds_free"}) else advtrains.ndb.swap_node(pos, {name="advtrains_interlocking:ds_slow"}) end end local meta = minetest.get_meta(pos) if meta then meta:set_string("infotext", minetest.serialize(asp)) end end local suppasp = { main = { free = nil, speed = {6, -1}, }, dst = { free = nil, speed = nil, }, shunt = { free = false, proceed_as_main = true, }, info = { call_on = false, dead_end = false, w_speed = nil, } } minetest.register_node("advtrains_interlocking:ds_danger", { description = "Demo signal at Danger", tiles = {"at_il_signal_asp_danger.png"}, groups = { cracky = 3, advtrains_signal = 2, save_in_at_nodedb = 1, }, sounds = default.node_sound_stone_defaults(), advtrains = { set_aspect = setaspect, supported_aspects = suppasp, get_aspect = function(pos, node) return advtrains.interlocking.DANGER end, }, on_rightclick = advtrains.interlocking.signal_rc_handler, can_dig = advtrains.interlocking.signal_can_dig, }) minetest.register_node("advtrains_interlocking:ds_free", { description = "Demo signal at Free", tiles = {"at_il_signal_asp_free.png"}, groups = { cracky = 3, advtrains_signal = 2, save_in_at_nodedb = 1, }, sounds = default.node_sound_stone_defaults(), advtrains = { set_aspect = setaspect, supported_aspects = suppasp, get_aspect = function(pos, node) return { main = { free = true, speed = -1, } } end, }, on_rightclick = advtrains.interlocking.signal_rc_handler, can_dig = advtrains.interlocking.signal_can_dig, }) minetest.register_node("advtrains_interlocking:ds_slow", { description = "Demo signal at Slow", tiles = {"at_il_signal_asp_slow.png"}, groups = { cracky = 3, advtrains_signal = 2, save_in_at_nodedb = 1, }, sounds = default.node_sound_stone_defaults(), advtrains = { set_aspect = setaspect, supported_aspects = suppasp, get_aspect = function(pos, node) return { main = { free = true, speed = 6, } } end, }, on_rightclick = advtrains.interlocking.signal_rc_handler, can_dig = advtrains.interlocking.signal_can_dig, })