public override void onActivated() { base.onActivated(); EditorGui EditorGui = "EditorGui"; TerrainEditor ETerrainEditor = "ETerrainEditor"; GuiControl EWTerrainEditToolbar = "EWTerrainEditToolbar"; TerrainEditorPlugin TerrainEditorPlugin = "TerrainEditorPlugin"; EditorGui.EditorGuiStatusBar EditorGuiStatusBar = "EditorGuiStatusBar"; Settings EditorSettings = "EditorSettings"; EditorGui.readTerrainEditorSettings(); string action = EditorSettings.value("TerrainEditor/currentAction"); ETerrainEditor.switchAction(action); GuiButtonCtrl ctrl = (((GuiDynamicCtrlArrayControl)"ToolsPaletteArray").findObjectByInternalName(action, true)); ctrl.setStateOn(true); GuiBitmapButtonCtrl octrl = ((GuiControl)"EWTerrainEditToolbarBrushType").findObjectByInternalName("ellipse", true); octrl.performClick(); EditorGui.menuBar.insert(this["terrainMenu"], EditorGui.menuBar["dynamicItemInsertPos"].AsInt()); EditorGui.bringToFront(ETerrainEditor); ETerrainEditor.setVisible(true); ETerrainEditor.attachTerrain(); ETerrainEditor.makeFirstResponder(true); EWTerrainEditToolbar.setVisible(true); ETerrainEditor.onBrushChanged(); ETerrainEditor.setup(); TerrainEditorPlugin.syncBrushInfo(); EditorGuiStatusBar.setSelection(""); ((ActionMap)map).push(); }
public override void onActivated() { EditorGui EditorGui = "EditorGui"; TerrainEditor ETerrainEditor = "ETerrainEditor"; GuiWindowCollapseCtrl TerrainPainterPreview = "TerrainPainterPreview"; GuiControl EWTerrainPainterToolbar = "EWTerrainPainterToolbar"; EditorGui.EditorGuiStatusBar EditorGuiStatusBar = "EditorGuiStatusBar"; TerrainPainter TerrainPainter = "TerrainPainter"; base.onActivated(); isActive = true; EditorGui.readTerrainEditorSettings(); GuiControl EWTerrainPainterToolbarBrushType = "EWTerrainPainterToolbarBrushType"; ((GuiBitmapButtonCtrl)EWTerrainPainterToolbarBrushType.findObjectByInternalName("ellipse", true)) .performClick(); map.push(); EditorGui.bringToFront(ETerrainEditor); ETerrainEditor.setVisible(true); ETerrainEditor.attachTerrain(); ETerrainEditor.makeFirstResponder(true); //Copyright Winterleaf Entertainment L.L.C. 2013 TerrainPainter.setVisible(true); TerrainPainterPreview.setVisible(true); //Copyright Winterleaf Entertainment L.L.C. 2013 EWTerrainPainterToolbar.setVisible(true); ETerrainEditor.onBrushChanged(); //Copyright Winterleaf Entertainment L.L.C. 2013 TerrainPainter.setup(0); //Copyright Winterleaf Entertainment L.L.C. 2013 syncBrushInfo(); EditorGuiStatusBar.setSelection(""); }