Show image in a custompicker list?

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

a custompicker takes a list like this:
(list ;;stuff to display
(list 'Name [picture] 'Description ...[any other data you want]);; selectable to display
...[any more selectables to display]
)

I could not figure out how to get the picture to display. It seems that doing:
&rsImageUnid and (list &rsImageUnid) did nothing, so I am not sure what it is expecting, and I was unable to find any specific documentation
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
TVR
Militia Commander
Militia Commander
Posts: 334
Joined: Sat Sep 08, 2012 3:26 am

[picture] is an imageDesc.

Code: Select all

(resCreateImageDesc imageUNID x y width height) -> imageDesc
Example (courtesy of PM):

Code: Select all

<DockScreen UNID="&dsChooseItemCategory;"
			type=				"customPicker"
			backgroundID=		"&rsItemListScreen;"
			nestedScreen=		"true"
			>
		<List>
			(list
				(list "List entry name here" (resCreateImageDesc &rsItem912Weapon; 0 0 24 24) "Description text here")
				(list "List entry two name here" (resCreateImageDesc &rsItem912Launcher; 0 0 24 24) "Description text here")
			)
		<List>
</Dockscreen>
Note: customPicker images are broken, image sizes smaller than 96x96 will not be cropped and will instead be treated as 96x96. Only workaround available is to use separate pre-cropped image files.
Fiction is reality, simplified for mass consumption.
PGP: 0x940707ED, 5DB8 4CB4 1EF5 E987 18A0 CD99 3554 3C13 9407 07ED
Bitcoin: 1LLDr7pnZDjXVT5mMDrkqRKkAPByPCQiXQ
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

Thanks! Ill try this out.

Thanks, it works!
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
Post Reply