Aller au contenu

Photo

Question about rendering UIPortrait


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Boozehound Blue

Boozehound Blue
  • Members
  • 64 messages
I was wondering if it was possible to render an arbitrary creature's portrait in a custom UI, or get their custom portrait file (if they have one)

#2
Shallina

Shallina
  • Members
  • 1 012 messages
you can select the portrait displayed of a creature in that creature property pannel.

#3
Boozehound Blue

Boozehound Blue
  • Members
  • 64 messages
Yes, but can I retrieve that info via script/UI? I don't think so.

My basic idea was to create something of a mini-dialog screen, similar to the default message box, that shows the 'speaker's' portrait

#4
_Knightmare_

_Knightmare_
  • Members
  • 643 messages
It somehow gets loaded up when the convo window opens. Have you looked through the various conversation XMLs to see if there is anything in there that calls up the portrait?

#5
Guest_Chaos Wielder_*

Guest_Chaos Wielder_*
  • Guests
In the conversation UI--at least those based on the SOZ OLM conversations--here's the call for portraits:


<!-- Character Custom Portrait icon -->
<UIIcon name="CUSTOM_PORTRAIT_ICON" x="44" y="106" width="128" height="128" hidden="true" />

<!-- Character Portrait -->
<UIPortrait name="portrait" texture="p_m_gradient_bg_blue.tga" x="44" y="106" width="128" height="128"
OnRender=UIPortrait_OnRender_RenderConversationPortrait()
diffusecolor_r=.9 diffusecolor_g=.8 diffusecolor_b=.6
light_intens=1.3 >
<UIPointLight active="true" pos_x=".2" pos_y=".2" pos_z=".2" radius="4" intensity=".6"
color_r=".3" color_g=".2" color_b=".7"
speccolor_r=".3" speccolor_g=".2" speccolor_b=".3" />
<UIPointLight active="true" pos_x="-.2" pos_y="2" pos_z="0" radius="5" intensity="1"
color_r=".8" color_g=".8" color_b=".8"
speccolor_r="0.5" speccolor_g="0.5" speccolor_b="0.0" />
<UIPointLight active="true" pos_x=".5" pos_y="-2" pos_z="0" radius="10" intensity="2"
color_r=".6" color_g=".6" color_b=".5"
speccolor_r=".4" speccolor_g=".4" speccolor_b=".4" />
</UIPortrait>

So, you *might* be able to use that info if you know how to route through XML.

Modifié par Chaos Wielder, 03 juin 2011 - 05:00 .


#6
Boozehound Blue

Boozehound Blue
  • Members
  • 64 messages
It all seems to be hard-coded for character, party, conversation, and target xmls: link