Exemplo n.º 1
0
        public void SetWindowConfig(WindowSettings W)
        {
            W.TestPosition( );



            // Write
            if (!_windowSettings.ContainsKey(W._scene))
            {
                _windowSettings.Add(W._scene, new Dictionary <string, WindowSettings>( ));
            }
            _windowSettings[W._scene][W._windowName] = W;


//				_logger.Trace( "Setting " + W._windowName + " For " + W._scene.ToString( ) );


/*				bool TempVisible = false;
 *                              TempVisible = W.GetBool( "Visible", false );
 *                              if( TempVisible )
 *                                      _logger.Info( "visible" );
 *                              else
 *                                      _logger.Info( "closed!" );
 */
            Save( );
        }
Exemplo n.º 2
0
        public static void SetWindowConfig(WindowSettings W, GameScenes Scene)
        {
            W.TestPosition( );


            // Write
            if (!_windowSettings.ContainsKey(Scene))
            {
                _windowSettings.Add(Scene, new Dictionary <string, WindowSettings>( ));
            }
            _windowSettings[Scene][W.Name] = W;


//				_logger.Trace( "Setting " + W.Name + " For " + Scene.ToString( ) );

/*				if( W.Visible )
 *                                      _logger.Trace( "visible" );
 *                              else
 *                                      _logger.Trace( "closed!" );
 */
            Save( );
        }