![]() Canteran Refinery Ship (produces reinforced metal plates) Just to get some of the information out there I install via steam workshop and I don't use legacy Main Menu, but I do use: (listing them all) As a trivial example here's some code that executes a Lua "schedulereloadui()" command from the menu bar: The final trick I have used which may help is that you can easily trigger a dummy menu from the MD code if you want to do something in Lua that you can't do in XML/MD scripting. Note here that I could have maybe just as easily signalled another MD script to fire which would probably achieve what you're trying to do. Once a zone is selected the cue returns with 'gMT_tools_WarpPlayerShip_zoneselected' and executes the second conditional branch that actually does the warping. So the menu entry triggers the script to open up the holomap - the script then resets ready to handle the return param from the holomap. Note here that I am passing the value to be returned into the holomap lua code (took me a good while to figure that one out ) ![]() ![]() Info = "Experimental - use with caution!" This is an exerpt from a little tool I wrote to allow me to insta-warp anywhere in the galaxy. (table being the lua name for associative arrays/dict/list) Of course you can execute whatever code you want in that file, to be inserted into the menu you just have to return a table in the specified format. insertions contains the list that is to be inserted.list marks subentries, see example files.condition (bool) disables the entry if false.mm_ic_navig, mm_ic_navig_galaymap, mm_ic_navig_systemmap, mm_ic_navig_sectormap, mm_ic_navig_zonemap.mm_ic_info, mm_ic_info_mystatus, mm_ic_info_propertyowned, mm_ic_info_shipstatus, mm_ic_info_logbook, mm_ic_info_enyclopedia,.mm_ic_crew, mm_ic_crew_callremotely, mm_ic_crew_exitplatform, mm_ic_crew_entercockpit, mm_ic_crew_enterbackroom.mm_ic_modes, mm_ic_modes_stationscan, mm_ic_modes_cargo, mm_ic_modes_mining, mm_ic_modes_shipscan, mm_ic_modes_longrangescan,.mm_ic_comm_trader, mm_ic_comm_services, mm_ic_comm_missioncontacts,.mm_ic_comm, mm_ic_comm_crewforplayer, mm_ic_comm_crewforcapship, mm_ic_comm_crewforstation, mm_ic_comm_specialistforstation,.icon may contain one of the following (or any entry named in libraries/icons.xml").sectionparam is a list containing parameters for the section that is to be started.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |