Exemplo n.º 1
0
 /// <summary>
 /// Callback for object destruction.
 /// </summary>
 public void OnDestroy()
 {
     RenderingManager.RemoveFromPostDrawQueue (0, OnDraw);
     PluginConfiguration config = PluginConfiguration.CreateForType<KartographSettings> ();
     config.load ();
     config.SetValue ("FocusWindowPos",_windowPos);
     config.save ();
     if (_instance == this)
         _instance = null;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Callback for object destruction.
        /// </summary>
        public void OnDestroy()
        {
            RenderingManager.RemoveFromPostDrawQueue(0, OnDraw);
            PluginConfiguration config = PluginConfiguration.CreateForType <KartographSettings> ();

            config.load();
            config.SetValue("FocusWindowPos", _windowPos);
            config.save();
            if (_instance == this)
            {
                _instance = null;
            }
        }
Exemplo n.º 3
0
        public void Start()
        {
            if (_instance)
            {
                Destroy(_instance);
            }
            _instance = this;
            _winID    = GUIUtility.GetControlID(FocusType.Passive);
            Debug.Log("Focus Select Start");
            PluginConfiguration config = PluginConfiguration.CreateForType <KartographSettings> ();

            config.load();
            _windowPos        = config.GetValue <Rect> ("FocusWindowPos", new Rect());
            _windowPos.width  = 0.0f;
            _windowPos.height = 0.0f;
        }
Exemplo n.º 4
0
 public void Start()
 {
     if (_instance)
         Destroy (_instance);
     _instance = this;
     _winID = GUIUtility.GetControlID (FocusType.Passive);
     Debug.Log ("Focus Select Start");
     PluginConfiguration config = PluginConfiguration.CreateForType<KartographSettings> ();
     config.load ();
     _windowPos = config.GetValue<Rect> ("FocusWindowPos",new Rect());
     _windowPos.width = 0.0f;
     _windowPos.height = 0.0f;
 }