I've been trying to add a dialog item, type portrait, to my dialog but it never appears. The same actor used with a portrait that isn't a dialog item works as intended. What am I missing?
I tried both using a UI template, that sets size and position, and setting everything manually but neither worked. I am showing the dialog and I see everything in place except the portrait and unit models, that I also don't know how to set up. What is the minimum necessary to create the portrait? I'd say setting the model/actor, position and size, anything else?
a fast copy&paste from one of my maps. not all needed.
the createAnyDialogItem creates a dialog item of the type with anchor and size.
Dialog-CreateaModaldialogofsize(316,516)at(15,0)relativetoLeftofscreenVariable-SetPortraitDialog[0]=(Lastcreateddialog)Dialog-Setthebackgroundimageof(Lastcreateddialog)toDialogBackgroundVariable-SetPortraitDialogItem[0]=(CreateAnyDialogItem(300,500,8,8,TopLeft,Portrait,PortraitDialog[0]))Portrait-Set(GetPortraitIdfromPortraitDialogItem[0])modeltoAAA-PortraitTara(Don't Wait until loaded) and play animation Reden using Play ForeverPortrait-Set(GetPortraitIdfromPortraitDialogItem[0])RenderTypetoPortraitRenderTypeLDRPortrait-Set(GetPortraitIdfromPortraitDialogItem[0])lighttoAgriaPortrait-Turn(GetPortraitIdfromPortraitDialogItem[0])borderOff
I've been trying to add a dialog item, type portrait, to my dialog but it never appears. The same actor used with a portrait that isn't a dialog item works as intended. What am I missing?
@SoulFilcher: Go
Could we see triggers? It's kind of hard to guess, but are you setting the size of the dialog item after creating it? Also are you showing the Dialog?
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
I tried both using a UI template, that sets size and position, and setting everything manually but neither worked. I am showing the dialog and I see everything in place except the portrait and unit models, that I also don't know how to set up. What is the minimum necessary to create the portrait? I'd say setting the model/actor, position and size, anything else?
a fast copy&paste from one of my maps. not all needed.
the createAnyDialogItem creates a dialog item of the type with anchor and size.
@FunkyUserName: Go I can't find CreateAnyDialogItem, I'm using DialogControlCreate or DialogControlCreateFromTemplate.
it's a selfmade function that returns a dialog item. just set size and anchor of your dialog item.
@FunkyUserName: Go Using this worked, apparently I had to convert it from dialog item to a standard portrait. Thank you.
DialogControlCreateFromTemplate((DialogLastCreated()), c_triggerControlTypePortrait, HotS_BonusMissionDebrief/MissionPanelTemplate/ContactPortrait) SetVariable(debriefPortrait, (PortraitGetTriggerControl((DialogControlLastCreated()))))