Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Text; |
---|
5 | |
---|
6 | using Jypeli; |
---|
7 | using Jypeli.Assets; |
---|
8 | using Jypeli.Controls; |
---|
9 | using Jypeli.Effects; |
---|
10 | using Jypeli.Widgets; |
---|
11 | |
---|
12 | public class UI |
---|
13 | { |
---|
14 | public static int Menu(String title, String[] options, Action selectionHandler) |
---|
15 | { |
---|
16 | int selectedItem = -1; |
---|
17 | MultiSelectWindow Menu = new MultiSelectWindow("Welcome to Game", options); |
---|
18 | Menu.ItemSelected += delegate(int selected) { selectionHandler(selected); }; |
---|
19 | Add(Menu); |
---|
20 | return selectedItem; |
---|
21 | } |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.