About this mod
Adds the ability to extend the SideBar introduced in 2.5Beta without disabling others (no further overwriting of the base mainmenu lua file!)
- Requirements
- Permissions and credits
- Donations
This mod enables the use of a generic menu system in 2.5(+?). For the example files (folder "SideBarExamples").
Basic instruction: create a file named "mainmenuEntriesTop.lua" or "mainmenuEntriesTop.txt" in the main folder of the extension for adding entries to the top part of the menu (that's where most of it should go) and/or a file named "mainmenuEntriesBottom.lua"/"mainmenuEntriesBottom.txt" respectively for adding entries to the lower part of the menu. Note: use the file extension .txt when uploading your mod to the Steam WorkShop, as .lua will not(!) be recognised by X:Rebirth anymore when packed in .cat .
[DE]
Dieser Mod ermöglicht das generische Hinzufügen von Menüeinträgen für(ab? Version 2.5. Für Beispiele siehe Beispieldateien (Ordner "SideBarExamples").
Basics: erstelle eine Datei mit Namen "mainmenuEntriesTop.lua" oder "mainmenuEntriesTop.txt" im Hauptordner der Erweiterung, um Einträge in dem oberen Teil des Menüs hinzuzufügen(also wohl der Großteil), und/oder eine Datei mit Namen "mainmenuEntriesBottom.lua"/"mainmenuEntriesBottom.txt" , um Einträge im unteren Teil des Menüs hinzuzufügen. Anmerkung: Nutze die Dateierweiterung .txt um deinen mod in den Steam WorkShop hochzuladen, da .lua nicht(!) von X:Rebirth erkannt wird, wenn es in .cat liegt.
[EN]basic syntax:
[DE]Grundlegende Syntax:
local d = {}
d[0] = {
category = "info",
insertions = {{
section = "",
icon = "",
condition = true,
name = ReadText(x, x),
info = ReadText(x, x),
list = {}
}
}
}
return d
[EN]category must be one of the following:
[DE]category darf folgende Werte annehmen:
- modes
- info
- missions
- navigation
- communication
- trading
- crew
- new
[EN]section is the md section to start
[DE]section markiert die zu benutzende md section
[EN]icon may contain one of the following (or any entry named in "libraries/icons.xml")
[DE]icon darf folgende Werte annehmen (oder jeder andere in "libraries/icons.xml" eingetragene name)
mm_ic_comm, mm_ic_comm_crewforplayer, mm_ic_comm_crewforcapship, mm_ic_comm_crewforstation, mm_ic_comm_specialistforstation,
mm_ic_comm_trader, mm_ic_comm_services, mm_ic_comm_missioncontacts,
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_modes_stop,
mm_ic_crew, mm_ic_crew_callremotely, mm_ic_crew_exitplatform, mm_ic_crew_entercockpit, mm_ic_crew_enterbackroom
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_info_missionmanager,
mm_ic_navig, mm_ic_navig_galaymap, mm_ic_navig_systemmap, mm_ic_navig_sectormap, mm_ic_navig_zonemap
mm_ic_trading,
mm_ic_options,
mm_ic_hide
[EN]condition (bool) disables the entry if false
[DE]condition (bool) deaktiviert den eintrag wenn false
[EN]list marks subentries, see example files
[DE]list kann Untereinträge beinhalten, siehe Beispieldateien
[EN]insertions contains the list that is to be inserted.
mark the different syntax for adding new entries compared
to extend existing ones!
[DE]insertions beinhaltet die Liste, die hinzugefügt werden soll.
beachte den Unterschied beim Hinzufügen neuer Einträge im Vergleich
zum Verändern bereits bestehender Einträge!