HowTo: create custom categories in Property window ?

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Browser_ice
Posts: 488
Joined: Sun, 5. Feb 06, 17:15
x4

HowTo: create custom categories in Property window ?

Post by Browser_ice »

Hi, I want to know how can I create custom categories in the overall ship property window ?

There are only 2 categories : stations and ships.

I which I could create sub categories inside them.

ex:
In the ship categorie, I want to create the followings:
- Trading ships
- Patroling ships
- Minting ships
- Construction ships
- ...

From there, I could collapse this sub-category to have a cleaner and easier Property window to look at.
Ubuntu 24.04 playing with ProtonDB
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

i cannot help you with the lua stuff since i am only barely familiar with it, but as starting point this menu is created in
ui/addons/ego_detailmonitor/menu_property.lua

if you want to experiment with that file i suggest putting a copy of that file in a subst_01.cat/dat (same path and file name) and work with that - this is the same as modding in X3 with full file replacements
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

Return to “X Rebirth - Scripts and Modding”