public NavigationViewModel() { // this is just an easy way to pull out the pieces we want/need, normally we'd // probably type this more strongly _buttonInfo = new ObservableCollection <Tuple <string, string, string> >(); // give the designer something if (DesignerProperties.IsInDesignTool) { ButtonInfo.Add(Tuple.Create("Test", "Test", "This is a test instance.")); } }
public SkillSkin(string name) : base(name) { this.WindowInfo.Add("SkillWindow", new WindowInfo(215, 28, 337, 400, 2520)); this.ButtonInfo.Add("LockButton", new ButtonInfo(0, 0, 0, 0, 2092, 2092)); this.ButtonInfo.Add("UpButton", new ButtonInfo(0, 0, 0, 0, 2435, 2436)); this.ButtonInfo.Add("DownButton", new ButtonInfo(0, 0, 0, 0, 2437, 2438)); this.ButtonInfo.Add("UseButton", new ButtonInfo(0, 0, 0, 0, 2103, 2104)); this.ButtonInfo.Add("NewGroup", new ButtonInfo(36, 188, 80, 25, 0, 0)); this.ButtonInfo.Add("ExpandContractGroup", new ButtonInfo(0, 0, 0, 0, 2087, 2086)); this.EntryButtonUnderlay = 0; this.NormalText = 1736; ButtonInfo prevbtn = new ButtonInfo(285, 390, 0, 0, 2223, 2223); ButtonInfo nextbtn = new ButtonInfo(305, 390, 0, 0, 2224, 2224); ButtonInfo.Remove("ListPrevButton"); ButtonInfo.Add("ListPrevButton", prevbtn); ButtonInfo.Remove("ListNextButton"); ButtonInfo.Add("ListNextButton", nextbtn); }
protected override void OnPrefabInit() { keepMenuOpen = true; base.OnPrefabInit(); buttons = new ButtonInfo[1]; buttons.Add(new ButtonInfo("TEST", Action.NumActions, OnResume)); //buttons = new ButtonInfo[8] //{ // new ButtonInfo(UI.FRONTEND.PAUSE_SCREEN.RESUME, Action.NumActions, OnResume), // new ButtonInfo(UI.FRONTEND.PAUSE_SCREEN.SAVE, Action.NumActions, OnSave), // new ButtonInfo(UI.FRONTEND.PAUSE_SCREEN.SAVEAS, Action.NumActions, OnSaveAs), // new ButtonInfo(UI.FRONTEND.PAUSE_SCREEN.LOAD, Action.NumActions, OnLoad), // new ButtonInfo(UI.FRONTEND.PAUSE_SCREEN.OPTIONS, Action.NumActions, OnOptions), // new ButtonInfo(UI.FRONTEND.PAUSE_SCREEN.COLONY_SUMMARY, Action.NumActions, OnColonySummary), // new ButtonInfo(UI.FRONTEND.PAUSE_SCREEN.QUIT, Action.NumActions, OnQuit), // new ButtonInfo(UI.FRONTEND.PAUSE_SCREEN.DESKTOPQUIT, Action.NumActions, OnDesktopQuit) //}; closeButton.onClick += OnResume; instance = this; Show(show: false); }