Following changes allow color customization for mandalorian armor pieces. Code was created using Composite and SE Goggles .lua files as a template for enhanced SUI and options, based on http://www.swgemu.com/forums/showthread.php?t=142206.
Please note:
1) This will also add a second SUI option for composite armor that appears to have little/no effect on appearance.
2) The SUI options "Color Plates" and "Color Trim" may be titled more appropriately (i.e. less specifically) display actual changes to both affected armor types.
3) Belt appears to have less color options (more testing may prove it uses a different palette, such as a clothing palette) so recommend omitting belt pending further investigation.
4) Tested using vanilla SWGEmu tre files. Awakening files may be slightly different.
Each mandalorian armor piece .lua (bin/scripts/object/tangible/wearables/armor/mandalorian) would require the following code added.
Following line 45:
Code: Select all
templateType = ARMOROBJECT,
Code: Select all
objectMenuComponent = {"cpp", "ArmorObjectMenuComponent"}, In src/server/zone/objects/tangible/components/ArmorObjectMenuComponent.cpp, replace line 46:
Code: Select all
String text = "Color Change";
menuResponse->addRadialMenuItem(81, 3, text);Code: Select all
String text = "Color Trim"; //consider changing SUI text
menuResponse->addRadialMenuItem(81, 3, text);
String text2 = "Color Plates"; //to less specific language, i.e. Color Change 1/2
menuResponse->addRadialMenuItem(82, 3, text2);Code: Select all
if (selectedID == 81) {Code: Select all
if (selectedID == 81 || selectedID == 82) {Code: Select all
cbox->setColorPalette(variables.elementAt(1).getKey());Code: Select all
if (selectedID == 81) {
cbox->setColorPalette(variables.elementAt(1).getKey() );
} else {
cbox->setColorPalette(variables.elementAt(0).getKey() );
}


.png)
.png)

