Aller au contenu

Photo

UI: Displaying Listbox Showing PC Portraits ... How?


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Lance Botelle

Lance Botelle
  • Members
  • 1 480 messages

Hi All,

 

I have found that the "drop an item" to transfer an item to a PC via the partybar to bit a bit temperamental. Therefore, I decided to build a very basic GUI to allow right-click on an inventory item , which brings up a listbox of the party members that have been declared as valid PCs to which the item can be passed. e.g. Ignores displaying summons, henchmen, etc.

 

The player then selects the PC to pass the item to and the item is transferred - nice and simple!

 

All works fine EXCEPT that I cannot see how to display the PC portrait alongside the PC name that I use in the listbox.

 

I have tried examining the various OC UIs, but have been unable to get the portrait images to display in the listbox image area.

 

EDIT: Alternatively, if anybody knows how to work out which "portrait" a PC uses and where/if it is stored as a variable on the PC anywhere?

 

Any help appreciated.

Cheers!

Lance.



#2
Lance Botelle

Lance Botelle
  • Members
  • 1 480 messages

Hi All,

 

I cannot get the portraits into my list, but I decided to change what image to use now anyway.

 

However, if anybody does work out how to put "portraits" into a custom listbox, then I would like to know how.

 

I did try editing a version of the partybar.xml, but that did not work for the purposes I wanted.

 

Cheers,

Lance.