Buttons placed horizontal instead of verticle
- supadupa64
- Posts: 200
- Joined: Sun Mar 06, 2016 9:40 pm
- Contact:
Buttons placed horizontal instead of verticle
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.
Game I'm working on:
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Re: Buttons placed horizontal instead of verticle
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:
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.