예제 #1
0
        /// <summary>
        /// Initializes the control's data members.
        /// </summary>
        /// <param name="owner">The TerrainViewport that contains the control.</param>
        public void Initialize(TerrainViewport owner)
        {
            // Shortcut variables for the DirectX viewport and the terrain data
            _owner       = owner;
            _viewport    = owner.MainViewport;
            _terrainData = owner.MainViewport.TerrainData;
            _dx          = owner.MainViewport.DXViewport;

            // Initialize the control-specific data
            _updateData = true;

            // Register tooltips
            ToolTip t = new ToolTip();

            // Adjust Primary Light group tooltips
            t.SetToolTip(trkLights_PrimaryR, "Amount of red in the primary light");
            t.SetToolTip(txtLights_PrimaryR, "Amount of red in the primary light");
            t.SetToolTip(trkLights_PrimaryG, "Amount of green in the primary light");
            t.SetToolTip(txtLights_PrimaryG, "Amount of green in the primary light");
            t.SetToolTip(trkLights_PrimaryB, "Amount of blue in the primary light");
            t.SetToolTip(txtLights_PrimaryB, "Amount of blue in the primary light");

            // Vertex Coloring group tooltips
            t.SetToolTip(btnLights_DefaultColor, "Display normal terrain coloring");
            t.SetToolTip(btnLights_HeightColor, "Display terrain vertex color by height");
        }
예제 #2
0
        /// <summary>
        /// Initializes the control's data members.
        /// </summary>
        /// <param name="owner">The TerrainViewport that contains the control.</param>
        public void Initialize(TerrainViewport owner)
        {
            // Shortcut variables for the DirectX viewport and the terrain data
            _owner       = owner;
            _viewport    = owner.MainViewport;
            _terrainData = owner.MainViewport.TerrainData;
            _dx          = owner.MainViewport.DXViewport;

            // Initialize the control-specific data
            _updateData = true;
        }
예제 #3
0
        /// <summary>
        /// Initializes the control's data members.
        /// </summary>
        /// <param name="owner">The TerrainViewport that contains the control.</param>
        public void Initialize(TerrainViewport owner)
        {
            // Shortcut variables for the DirectX viewport and the terrain data
            _owner       = owner;
            _viewport    = owner.MainViewport;
            _terrainData = owner.MainViewport.TerrainData;
            _dx          = owner.MainViewport.DXViewport;

            // Register tooltips
            ToolTip t = new ToolTip();

            // History group tooltips
            t.SetToolTip(btnRollback, "Rollback to the selected previous terrain state");
            t.SetToolTip(btnRestore, "Restore to the selected terrain state");
            t.SetToolTip(btnRestoreAll, "Restore to the most recent terrain state");
        }
예제 #4
0
        /// <summary>
        /// Initializes the control's data members.
        /// </summary>
        /// <param name="owner">The TerrainViewport that contains the control.</param>
        public void Initialize( TerrainViewport owner )
        {
            // Shortcut variables for the DirectX viewport and the terrain data
            _owner = owner;
            _viewport = owner.MainViewport;
            _terrainData = owner.MainViewport.TerrainData;
            _dx = owner.MainViewport.DXViewport;

            // Register tooltips
            ToolTip t = new ToolTip();

            // History group tooltips
            t.SetToolTip( btnRollback, "Rollback to the selected previous terrain state" );
            t.SetToolTip( btnRestore, "Restore to the selected terrain state" );
            t.SetToolTip( btnRestoreAll, "Restore to the most recent terrain state" );
        }
예제 #5
0
        /// <summary>
        /// Initializes the control's data members.
        /// </summary>
        /// <param name="owner">The TerrainViewport that contains the control.</param>
        public void Initialize( TerrainViewport owner )
        {
            // Shortcut variables for the DirectX viewport and the terrain data
            _owner = owner;
            _viewport = owner.MainViewport;
            _terrainData = owner.MainViewport.TerrainData;
            _dx = owner.MainViewport.DXViewport;

            // Initialize the control-specific data
            _updateData = true;
        }
예제 #6
0
        /// <summary>
        /// Initializes the control's data members.
        /// </summary>
        /// <param name="owner">The TerrainViewport that contains the control.</param>
        public void Initialize( TerrainViewport owner )
        {
            // Shortcut variables for the DirectX viewport and the terrain data
            _owner = owner;
            _viewport = owner.MainViewport;
            _terrainData = owner.MainViewport.TerrainData;
            _dx = owner.MainViewport.DXViewport;

            // Initialize the control-specific data
            _textureAlgorithms = new NameValueCollection();
            _updateData = true;

            // Register tooltips
            ToolTip t = new ToolTip();

            // Textures group tooltips
            t.SetToolTip( btnTextures_AddTex, "Add a texture to the terrain" );
            t.SetToolTip( btnTextures_RemoveTex, "Remove the selected texture from the terrain" );
            t.SetToolTip( btnTextures_MoveUp, "Move the selected texture up one level" );
            t.SetToolTip( btnTextures_MoveDown, "Move the selected texture down one level" );
            t.SetToolTip( btnTextures_Disable, "Disable the selected texture" );
            t.SetToolTip( btnTextures_DisableAll, "Disable all textures" );

            // Texture Name group tooltips
            t.SetToolTip( btnTextures_Name, "Change the name of the selected texture" );
        }
예제 #7
0
        /// <summary>
        /// Initializes the control's data members.
        /// </summary>
        /// <param name="owner">The TerrainViewport that contains the control.</param>
        public void Initialize( TerrainViewport owner )
        {
            // Shortcut variables for the DirectX viewport and the terrain data
            _owner = owner;
            _viewport = owner.MainViewport;
            _terrainData = owner.MainViewport.TerrainData;
            _dx = owner.MainViewport.DXViewport;

            // Initialize the control-specific data
            _updateData = true;

            // Register tooltips
            ToolTip t = new ToolTip();

            // Adjust Primary Light group tooltips
            t.SetToolTip( trkLights_PrimaryR, "Amount of red in the primary light" );
            t.SetToolTip( txtLights_PrimaryR, "Amount of red in the primary light" );
            t.SetToolTip( trkLights_PrimaryG, "Amount of green in the primary light" );
            t.SetToolTip( txtLights_PrimaryG, "Amount of green in the primary light" );
            t.SetToolTip( trkLights_PrimaryB, "Amount of blue in the primary light" );
            t.SetToolTip( txtLights_PrimaryB, "Amount of blue in the primary light" );

            // Vertex Coloring group tooltips
            t.SetToolTip( btnLights_DefaultColor, "Display normal terrain coloring" );
            t.SetToolTip( btnLights_HeightColor, "Display terrain vertex color by height" );
        }
예제 #8
0
        /// <summary>
        /// Initializes the control's data members.
        /// </summary>
        /// <param name="owner">The TerrainViewport that contains the control.</param>
        public void Initialize( TerrainViewport owner )
        {
            // Shortcut variables for the DirectX viewport and the terrain data
            _owner = owner;
            _viewport = owner.MainViewport;
            _terrainData = owner.MainViewport.TerrainData;
            _dx = owner.MainViewport.DXViewport;

            // Initialize the control-specific data
            _verticesAlgorithms = new NameValueCollection();
            _updateData = true;

            // Register tooltips
            ToolTip t = new ToolTip();

            // Terrain Creation group tooltips
            t.SetToolTip( btnVertices_Create, "Create a piece of terrain (Ctrl+N)" );

            // Terrain Name group tooltips
            t.SetToolTip( btnVertices_Name, "Change the name of the terrain" );

            // Vertex Selection group tooltips
            t.SetToolTip( btnVertexSelection, "Enable or disable vertex movement" );
            t.SetToolTip( radSingle, "Move vertices without blending" );
            t.SetToolTip( radSoft, "Move vertices with blending" );
            t.SetToolTip( chkFalloff, "Blend nearby vertices with falloff weighting" );

            // Algorithms group tooltips
            t.SetToolTip( btnVertices_RunAlgorithm, "Run the selected vertex manipulation algorithm" );
            t.SetToolTip( btnVertices_LoadAlgorithm, "Load a new vertex manipulation algorithm" );

            // Modify Terrain Dimensions group tooltips
            t.SetToolTip( chkVertices_GridDimensions, "Keep rows and columns the same value" );
            t.SetToolTip( chkVertices_GridSize, "Keep height and width the same value" );
        }