Esempio n. 1
0
 private static bool checkGameLoaded()
 {
     if (!SerializableDataExtension.StateLoading && !LoadingExtension.IsGameLoaded())
     {
         UIView.library.ShowModal <ExceptionPanel>("ExceptionPanel").SetMessage("Nope!", Translation.GetString("Settings_are_defined_for_each_savegame_separately") + ". https://www.viathinksoft.de/tmpe/#options", false);
         return(false);
     }
     return(true);
 }
        public void Close()
        {
            var uiView = UIView.GetAView();

            GetMenu().Hide();

            UITrafficManager.deactivateButtons();
            TrafficManagerTool.SetToolMode(ToolMode.None);
            LoadingExtension.SetToolMode(TrafficManagerMode.None);
            _uiShown = false;
            button.UpdateSprites();
        }
        public void Show()
        {
            try {
                ToolsModifierControl.mainToolbar.CloseEverything();
            } catch (Exception e) {
                Log.Error("Error on Show(): " + e.ToString());
            }

            GetMenu().Show();
            LoadingExtension.SetToolMode(TrafficManagerMode.Activated);
            _uiShown = true;
            button.UpdateSprites();
        }