示例#1
0
		public void addEntry(cave.ui.Menu.Entry entry) {
			if(!(entry != null)) {
				return;
			}
			if(!(entries != null)) {
				entries = new System.Collections.Generic.List<cave.ui.Menu.Entry>();
			}
			entries.Add(entry);
		}
示例#2
0
		public void addEntry(string title, System.Action handler) {
			var e = new cave.ui.Menu.Entry();
			e.title = title;
			e.handler = handler;
			addEntry(e);
		}