Buttons placed horizontal instead of verticle

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
supadupa64
Posts: 200
Joined: Sun Mar 06, 2016 9:40 pm
Contact:

Buttons placed horizontal instead of verticle

Post by supadupa64 »

Is there a way to place buttons for the necromancer ui horizontally (side by side) instead of vertically stacked on top of each other? Or maybe even place a button on the bottom left and a button on the bottom right? accept and decline buttons on opposite sides.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Buttons placed horizontal instead of verticle

Post by Tony Li »

Sure, just modify the buttons' Scaled Rects. This should get you started:

1. Add the Necromancer UI to your scene as a child of the Dialogue Manager if you haven't already. Assign it to the Dialogue Manager's Dialogue UI field.

2. Inspect the Necromancer UI. Change Response Menu > Buttons > Size to 2.

3. Expand the UI until you see the response buttons.

4. Delete buttons 3 and 4.

5. Inspect buttons 1 and 2. Set:
  • On button 1, set Origin and Alignment to BottomLeft. On button 2, set Origin and Alignment to Bottom Right.
  • Scaled Rect > Y to the same value. This will put them at the same vertical position.
  • Scaled Rect > X to 0.
  • Scaled Rect > Width to Normalized, 0.5. This will make the buttons half the width of the window.
Post Reply