protected Gtk.Widget GladeCustomWidgetHandler(Glade.XML xml, string func_name, string name, string string1, string string2, int int1, int int2) { if (func_name == "TileList") { ToolTilesProps = CreateTileList(); return(ToolTilesProps); } if (func_name == "ObjectList") { ToolObjectsProps = CreateObjectList(); return(ToolObjectsProps); } if (func_name == "GObjectList") { ToolGObjectsProps = new GameObjectListWidget(this); return(ToolGObjectsProps); } if (func_name == "SectorSwitchNotebook") { sectorSwitchNotebook = new SectorSwitchNotebook(this); sectorSwitchNotebook.ShowAll(); return(sectorSwitchNotebook); } if (func_name == "LayerList") { layerList = new LayerListWidget(this); return(layerList); } if (func_name == "PropertiesView") { propertiesView = new PropertiesView(this); return(propertiesView); } throw new Exception("No Custom Widget Handler named \"" + func_name + "\" exists"); }
protected Widget GladeCustomWidgetHandler(Glade.XML xml, string func_name, string name, string string1, string string2, int int1, int int2) { if(func_name == "TileList") { ToolTilesProps = CreateTileList(); return ToolTilesProps; } if(func_name == "ObjectList") { ToolObjectsProps = new ObjectListWidget(this); return ToolObjectsProps; } if(func_name == "GObjectList") { Widget ToolGObjectsProps = new GameObjectListWidget(this); return ToolGObjectsProps; } if(func_name == "SectorSwitchNotebook") { sectorSwitchNotebook = new SectorSwitchNotebook(this); sectorSwitchNotebook.SectorChanged += ChangeCurrentSector; sectorSwitchNotebook.ShowAll(); return sectorSwitchNotebook; } if(func_name == "LayerList") { layerList = new LayerListWidget(this); return layerList; } if(func_name == "PropertiesView") { propertiesView = new PropertiesView(this); return propertiesView; } throw new Exception("No Custom Widget Handler named \""+func_name+"\" exists"); }