Author Topic: Applying an object's colorShift while it's in a gui?  (Read 1341 times)

Is there a way to apply an items ColorShift while it's in a gui?

Hmm, I'm not exactly sure what you're asking.

Use the GUIObjectViewCtrl::setNodeColor functions to set node "All" to whatever color you want. I assume you mean the object view (avatar preview-like) GUI?

Well I'm loading object's into the GuiObjectView but they're all grey because the colour shift hasn't been applied to them best explained with a picture.

I want it to apply the item's colour shift. I'm loading the item through %datablock.shapefile

Warning while you were posting...

Thanks Space.

Node "All" not found.
« Last Edit: October 29, 2007, 03:08:18 PM by MrPickle »

Odd, that usually works.

Look through the DTS file, you'll find the nodes on the gun which need to be coloured there. Different parts need different colours - the Gun has the body black but parts of the handle white.

It's not just the gun, you can choose what item, I tried all the items all give the same response.

Store the names of the nodes and colors they need to be in a file, then load that file.

It does a loop and find's all items and add's them to the list.

You need to use the node name "ALL".


I take it you're pretty poor at Spot the Difference games, too?

Yes, I fail at spot the difference.

Thanks Ephi.
« Last Edit: October 30, 2007, 04:07:51 PM by MrPickle »