Label attributes

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
DigaRW
Militia Captain
Militia Captain
Posts: 517
Joined: Thu Jul 30, 2015 3:10 pm
Location: The place where I belong
Contact:

You know most of starship equipment (Weapon, Shield, Armor) is have label attributes that explaining where it was manufactured (Like NAMI, EI, Rasiermesser, Makayev).
And the question is, how to add that label?
Download Transcendence mods from Reinvented Workbench Project!
Click this link!
User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1190
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

 You’ll need to add an attribute to any item you want the label to appear on — probably Semesta in your case, I would guess. So, for example:

Code: Select all

attributes="MajorItem, Semesta"
 You’ll also need to add an new UNID type for your label:

Code: Select all

<Type UNID="&lbSemestaCorporationLabel;">
    <DisplayAttributes>
        <ItemAttribute label="Semesta Corporation" criteria="* +Semesta;"/>
    </DisplayAttributes>
</Type>
 That’s pretty much all there is to it. Also, if you want to add other labels in the future, you can add them to the same UNID; just put another <ItemAttribute> tag for it under Semesta’s.
Image

Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)
User avatar
DigaRW
Militia Captain
Militia Captain
Posts: 517
Joined: Thu Jul 30, 2015 3:10 pm
Location: The place where I belong
Contact:

Thanks, I just want add new corporation in game.
Download Transcendence mods from Reinvented Workbench Project!
Click this link!
Post Reply