public PopupGenericEditor(EditInterface editInterface, GuiFrameworkUICallback uiCallback, int width, int height) : base("Anomalous.GuiFramework.Editor.GUI.PopupGenericEditor.PopupGenericEditor.layout") { widget.setSize(width, height); propertiesScroll = (ScrollView)widget.findWidget("PropertiesScroll"); propertiesForm = new ScrollingExpandingEditInterfaceViewer(propertiesScroll, uiCallback); propertiesForm.EditInterface = editInterface; propertiesForm.layout(); propertiesForm.RootNode.expandChildren(); Button close = (Button)widget.findWidget("Close"); close.MouseButtonClick += close_MouseButtonClick; }
protected AddItemDialog() : base("Anomalous.GuiFramework.Editor.GUI.AddItemDialog.AddItemDialog.layout") { itemGrid = new SingleSelectButtonGrid((ScrollView)window.findWidget("ItemList"), new ButtonGridListLayout()); itemGrid.SelectedValueChanged += new EventHandler(itemGrid_SelectedValueChanged); expandingView = new ScrollingExpandingEditInterfaceViewer((ScrollView)window.findWidget("ItemProperties"), null); Button add = (Button)window.findWidget("Add"); add.MouseButtonClick += new MyGUIEvent(add_MouseButtonClick); Button cancel = (Button)window.findWidget("Cancel"); cancel.MouseButtonClick += new MyGUIEvent(cancel_MouseButtonClick); }