Page 9 of 9
Re: Dialogue For Split Screen Using a Gamepad
Posted: Sat Jun 08, 2024 9:15 am
by Tony Li
Hi,
That file wasn't carried over when our website was redesigned. I'm pretty sure it used TPC v2, so it wouldn't work with the current TPC v3. Are there any specific questions I can help you with?
Re: Dialogue For Split Screen Using a Gamepad
Posted: Sat Jun 08, 2024 1:41 pm
by limepeel
I am trying to implement split screen dialogue. I think I am okay from a code perspective by following the logic in the thread, but was looking to have an example of how you implemented the UI to line up the dialogue with the response of the buttons. I’m not really sure how to get everything to line up without using vertical layout like the current prefab.
The ui like pictures in this link.
https://www.pixelcrushers.com/phpbb/dow ... hp?id=1922
Re: Dialogue For Split Screen Using a Gamepad
Posted: Sat Jun 08, 2024 9:02 pm
by Tony Li
Menu panels have two ways of showing response menu buttons:
1. They can instantiate copies of the response button template into a container (typically a Vertical Layout Group). In the StandardUIMenuPanel component, it uses the Button Template and Button Template Holder fields.
2. Or they can use predefined buttons assigned to the Buttons list.
That example's dialogue UI prefab uses 4 buttons assigned to the Buttons list. Each button has a specific place in the UI. They're not instantiated at runtime.