text/html; charset=UTF-8 Last-Modified: Sun, 06 Dec 2026 20:55:57 GMT Expires: Wed, 03 Dec 2036 20:55:57 GMT minetest.git - modified minetest for gpcfs purposes
aboutsummaryrefslogtreecommitdiff
path: root/doc/menu_lua_api.txt
Commit message (Collapse)AuthorAge
* SAPI: Move core.get_us_time() to Util modulekwolekr2015-10-26
|
* Hide mapgens from main menu not intended for end userskwolekr2015-10-04
|
* Bump version to 0.4.13est312015-08-20
|
* Add core.get_dir_listShadowNinja2015-05-16
|
* Bump version to 0.4.12Perttu Ahola2015-02-18
|
* Server: announce MIN/MAX protocol version supported to serverlist. Client: ↵est312015-02-18
| | | | | | | check serverlist Client now informs about incompatible servers from the list, this permits to prevent the protocol movements. Server announces its supported protocol versions to master server
* Reorganize supported video driver query mechanismskwolekr2015-01-18
|
* Add core.get_mapgen_names() to Main Menu API (and use it)kwolekr2014-12-29
| | | | Also rewrite mapgen registration for static initialization
* Bump version to 0.4.11kwolekr2014-12-24
|
* Add video driver selection to settings menu (based uppon idea from ↵sapier2014-08-23
| | | | webdesigner97)
* Fix regression dirt texture not beeing default in non cloud menusapier2014-06-14
|
* Add formspec toolkit and refactor mainmenu to use itsapier2014-05-16
| | | | | Fix crash on using cursor keys in client menu without selected server Add support for non fixed size tabviews
* Use "core" namespace internallyShadowNinja2014-05-08
|
* Add support for dpi based HUD scalingsapier2014-04-27
| | | | | | Add support for (configurable) multiline hotbar Improved screensize handling Add userdefined gui scale by BlockMen
* Add formspec tableKahrl2014-01-13
|
* Bump version to 0.4.9kwolekr2014-01-01
|
* Fix modstore/favourites hang by adding asynchronous lua job supportsapier2013-11-29
|
* Allow non-string arguments for minetest.is_yes()PilzAdam2013-09-10
|
* Add Settings interface for LuaPilzAdam2013-09-10
|
* Add minetest.parse_json, engine.parse_jsonKahrl2013-09-02
|
* Add translation for main menusapier2013-08-17
| | | | Add engine.gettext() and remove gettext() calls in guiFormspecMenu.cpp
* 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
>(c_sigd).." -> Sec. "..(c_ts and c_ts.name or "-").." -> Exit "..(c_rseg.next and sigd_to_string(c_rseg.next) or "END")) if c_rseg.locks then for pts, state in pairs(c_rseg.locks) do local pos = minetest.string_to_pos(pts) itab(" Lock: "..pts.." -> "..state) if not advtrains.is_passive(pos) then itab("-!- No passive component at "..pts..". Please reconfigure route!") break end end end -- advance c_sigd = c_rseg.next i = i + 1 end if c_sigd then local e_tcbs = ildb.get_tcbs(c_sigd) itab("Route end: "..sigd_to_string(c_sigd).." ("..(e_tcbs and e_tcbs.signal_name or "-")..")") else itab("Route ends on dead-end") end form = form.."textlist[0.5,2;7,4;rtelog;"..table.concat(tab, ",").."]" form = form.."button[0.5,6;2,1;back;<<< Back to signal]" form = form.."button[3.5,6;2,1;aspect;Signal Aspect]" form = form.."button[5.5,6;2,1;delete;Delete Route]" --atdebug(route.ars) form = form.."textarea[1,7.3;5.2,3;ars;ARS Rule List;"..atil.ars_to_text(route.ars).."]" form = form.."button[6,7.7;1,1;savears;Save]" minetest.show_formspec(pname, "at_il_routeedit_"..minetest.pos_to_string(sigd.p).."_"..sigd.s.."_"..routeid, form) end minetest.register_on_player_receive_fields(function(player, formname, fields) local pname = player:get_player_name() if not minetest.check_player_privs(pname, {train_operator=true, interlocking=true}) then return end local pts, connids, routeids = string.match(formname, "^at_il_routeedit_([^_]+)_(%d)_(%d+)$") local pos, connid, routeid if pts then pos = minetest.string_to_pos(pts) connid = tonumber(connids) routeid = tonumber(routeids) if not connid or connid<1 or connid>2 then return end if not routeid then return end end if pos and connid and routeid and not fields.quit then local sigd = {p=pos, s=connid} local tcbs = ildb.get_tcbs(sigd) if not tcbs then return end local route = tcbs.routes[routeid] if not route then return end if fields.setname and fields.name then route.name = fields.name end if fields.aspect then local suppasp = advtrains.interlocking.signal_get_supported_aspects(tcbs.signal) local callback = function(pname, asp) route.aspect = asp advtrains.interlocking.show_route_edit_form(pname, sigd, routeid) end advtrains.interlocking.show_signal_aspect_selector(pname, suppasp, route.name, callback, route.aspect) return end if fields.delete then -- if something set the route in the meantime, make sure this doesn't break. atil.route.update_route(sigd, tcbs, nil, true) table.remove(tcbs.routes, routeid) advtrains.interlocking.show_signalling_form(sigd, pname) end if fields.ars and fields.savears then route.ars = atil.text_to_ars(fields.ars) --atdebug(route.ars) end if fields.back then advtrains.interlocking.show_signalling_form(sigd, pname) end end end)