Page 1 of 1
Buttons placed horizontal instead of verticle
Posted: Wed Apr 20, 2016 8:19 am
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.
Re: Buttons placed horizontal instead of verticle
Posted: Wed Apr 20, 2016 10:03 am
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.