Exemplo n.º 1
0
 public TerrainManipulator()
 {
     m_manipulatorInfo = new ManipulatorInfo("Terrain".Localize(),
                                  "Activate Terrain editing".Localize(),
                                  LevelEditorCore.Resources.TerrainManipImage,
                                  Keys.None);            
 }
Exemplo n.º 2
0
 public RotateManipulator()
 {
     ManipulatorInfo = new ManipulatorInfo("Rotate".Localize(),
                                  "Activate rotation manipulator".Localize(),
                                  LevelEditorCore.Resources.RotateImage,
                                  Keys.E);
 }
Exemplo n.º 3
0
 public ScaleManipulator()
 {
     ManipulatorInfo = new ManipulatorInfo("Scale".Localize(),
                                  "Scale manipulator".Localize(),
                                  LevelEditorCore.Resources.ScaleImage,
                                  Keys.R);
 }
Exemplo n.º 4
0
 public MoveAcrossTerrainManipulator()
 {
     ManipulatorInfo = new ManipulatorInfo(
         "Move Across Terrain".Localize(),
         "Move objects across the surface of the terrain".Localize(),
         RenderingInterop.Resources.MoveAcrossTerrain,
         Keys.Z);
 }
 public TranslatePivotManipulator()
 {
     ManipulatorInfo = new ManipulatorInfo("MovePivot".Localize(),
                                  "Activate move-pivot manipulator".Localize(),
                                  LevelEditorCore.Resources.TranslatePivotImage,
                                  Keys.P);
     m_translatorControl = new TranslatorControl();
 }
Exemplo n.º 6
0
 public TranslateManipulator()
 {
     ManipulatorInfo = new ManipulatorInfo("Move".Localize(),
                                  "Activate move manipulator".Localize(),
                                  LevelEditorCore.Resources.TranslateImage,
                                  Keys.M);
     m_translatorControl = new TranslatorControl();
 }
Exemplo n.º 7
0
 public PickMaterialManipulator()
 {
     ManipulatorInfo = new ManipulatorInfo(
         "Pick Material".Localize(),
         "Eyedropper tool for selecting a material".Localize(),
         "",
         Keys.None);
 }
Exemplo n.º 8
0
        public ScatterPlaceManipulator()
        {
            ManipulatorContext = new ManipulatorSettings();

            ManipulatorInfo = new ManipulatorInfo(
                "Scatter Placer".Localize(),
                "Scatter Placer manipulator".Localize(),
                Resources.ScatterPlace,
                Keys.None);
        }
Exemplo n.º 9
0
        public ExtensionManipulator()
        {
            ManipulatorInfo = new ManipulatorInfo("Extension".Localize(),
                                         "Extension manipulator".Localize(),
                                         LevelEditorCore.Resources.ExtensionImage,
                                         Keys.None);

            m_axisColor = new Color[Enum.GetValues(typeof(HitRegion)).Length];
            m_axisColor[(int)HitRegion.XAxis] = XAxisColor;
            m_axisColor[(int)HitRegion.YAxis] = YAxisColor;
            m_axisColor[(int)HitRegion.ZAxis] = ZAxisColor;
            m_axisColor[(int)HitRegion.NegXAxis] = ControlPaint.LightLight(XAxisColor);
            m_axisColor[(int)HitRegion.NegYAxis] = ControlPaint.LightLight(YAxisColor);
            m_axisColor[(int)HitRegion.NegZAxis] = ControlPaint.LightLight(ZAxisColor);
            m_highlightColor = Color.Gold;
        }