Author Topic: Need help with GuiObjectView  (Read 1584 times)

So, I was looking at how the avatar editor has a 3d model, and I found out how you change nodes colors, but now I need to know how the face skin works, will someone help me?

Try running a trace as you change the face in the avatar GUI.

Tryed that, but they are in functions that are mad specific for the avatar preview. So i cant use them.

Look at the original RTB, those aren't DSO'd.

To set a face of a GUIObject preview, you need to use IFLFrames. I think.
To make an object appear in the GUI, you do:
Code: [Select]
PlayerPreView.setObject("Object", "base/data/shapes/player/m.dts", "", "");
Your face and decal (Chest I believe) is set by using:
Code: [Select]
PlayerPreView.setIFLFrame("Object","face", <number>);
PlayerPreView.setIFLFrame("Object", "decal", <number>);
I'm sure your wondering what <number> stands for. Well, its a number. I'm sure of that. But what each number stands for is different.
Each number is a line inside a file stored in "base/data/shapes/player/face.ifl" and "base/data/shapes/player/decal.ifl"
Here is my decal.ifl:
Code: [Select]
base/data/shapes/player/decals/AAA-None.png
Add-Ons/Decal_WORM/worm_engineer.png
Add-Ons/Decal_WORM/worm-sweater.png
Add-Ons/Decal_Survivors/Survivor-Bill.png
Add-Ons/Decal_Survivors/Survivor-Francis.png
Add-Ons/Decal_Survivors/Survivor-Zoey.png
Add-Ons/Decal_Survivors/Survivor-Louis.png
Add-Ons/Decal_Jirue/LinkTunic.png
Add-Ons/Decal_Jirue/Knight.png
Add-Ons/Decal_Jirue/HCZombie.png
Add-Ons/Decal_Jirue/DrKleiner.png
Add-Ons/Decal_Jirue/DKnight.png
Add-Ons/Decal_Jirue/Chef.png
Add-Ons/Decal_Jirue/Archer.png
Add-Ons/Decal_Jirue/Alyx.png
Add-Ons/Decal_Hoodie/Hoodie.png
Add-Ons/Decal_Default/Space-Old.png
Add-Ons/Decal_Default/Space-New.png
Add-Ons/Decal_Default/Space-Nasa.png
Add-Ons/Decal_Default/Mod-Suit.png
Add-Ons/Decal_Default/Mod-Prisoner.png
Add-Ons/Decal_Default/Mod-Police.png
Add-Ons/Decal_Default/Mod-Pilot.png
Add-Ons/Decal_Default/Mod-DareDevil.png
Add-Ons/Decal_Default/Mod-Army.png
Add-Ons/Decal_Default/Meme-Mongler.png
Add-Ons/Decal_Default/Medieval-YARLY.png
Add-Ons/Decal_Default/Medieval-Tunic.png
Add-Ons/Decal_Default/Medieval-Rider.png
Add-Ons/Decal_Default/Medieval-ORLY.png
Add-Ons/Decal_Default/Medieval-Lion.png
Add-Ons/Decal_Default/Medieval-Eagle.png
So, if you put "17" in <number> as my decal, I would have "Space-New.png" as my decal.

Really, a decal/face is a single frame that is always playing, I believe. I'm not any expert on this.

Anyways, I'm certain that's how it works. That's what I used for mine.
« Last Edit: August 05, 2011, 01:27:28 PM by computermix »

Thanks, hopefully this will work.