Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Applying an object's colorShift while it's in a gui?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Applying an object's colorShift while it's in a gui? (Read 1341 times)
MrPickle
October 29, 2007, 01:45:05 PM
Is there a way to apply an items ColorShift while it's in a gui?
Ad Bot
Advertisement
Trader
October 29, 2007, 02:46:39 PM
Hmm, I'm not exactly sure what you're asking.
Space Guy
October 29, 2007, 02:52:22 PM
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?
MrPickle
October 29, 2007, 02:54:15 PM
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
»
Space Guy
October 29, 2007, 03:20:32 PM
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.
MrPickle
October 29, 2007, 03:24:55 PM
It's not just the gun, you can choose what item, I tried all the items all give the same response.
Space Guy
October 29, 2007, 03:53:15 PM
Store the names of the nodes and colors they need to be in a file, then load that file.
MrPickle
October 29, 2007, 04:07:17 PM
It does a loop and find's all items and add's them to the list.
Ephialtes
October 29, 2007, 04:33:52 PM
You need to use the node name "ALL".
MrPickle
October 29, 2007, 06:29:38 PM
Capitals?
Ephialtes
October 29, 2007, 09:45:17 PM
I take it you're pretty poor at Spot the Difference games, too?
MrPickle
October 30, 2007, 04:22:20 AM
Yes, I fail at spot the difference.
Thanks Ephi.
«
Last Edit: October 30, 2007, 04:07:51 PM by MrPickle
»
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Applying an object's colorShift while it's in a gui?