コード例 #1
0
 internal SettingsWindow()
 {
     settings    = SettingsWrapper.Instance.gameSettings;
     modStyle    = SettingsWrapper.Instance.modStyle;
     showWindow  = false;
     triggerSave = false;
     windowRect  = new Rect((Screen.width - 250) / 2, (Screen.height - 600) / 2, 250, 600);
     windowId    = GUIUtility.GetControlID(FocusType.Passive);
 }
コード例 #2
0
 internal SettingsWindow()
 {
     settings = SettingsWrapper.Instance.gameSettings;
     modStyle = SettingsWrapper.Instance.modStyle;
     showWindow = false;
     triggerSave = false;
     windowRect = new Rect((Screen.width - 250) / 2, (Screen.height - 600) / 2, 250, 600);
     windowId = GUIUtility.GetControlID(FocusType.Passive);
 }
コード例 #3
0
        private SettingsWrapper()
        {
            gameSettings = new Settings("ChuteSafetyIndicator.cfg");
            gameSettings.Load();
            gameSettings.Save();

            gameSettings.safeTexture.SetPixel(0, 0, gameSettings.safeColor);
            gameSettings.safeTexture.Apply();
            gameSettings.riskyTexture.SetPixel(0, 0, gameSettings.riskyColor);
            gameSettings.riskyTexture.Apply();
            gameSettings.unSafeTexture.SetPixel(0, 0, gameSettings.unSafeColor);
            gameSettings.unSafeTexture.Apply();



            modStyle = new ModStyle();
        }
コード例 #4
0
        private SettingsWrapper()
        {
            gameSettings = new Settings("ChuteSafetyIndicator.cfg");
            gameSettings.Load();
            gameSettings.Save();

            gameSettings.safeTexture.SetPixel(0, 0, gameSettings.safeColor);
            gameSettings.safeTexture.Apply();
            gameSettings.riskyTexture.SetPixel(0, 0, gameSettings.riskyColor);
            gameSettings.riskyTexture.Apply();
            gameSettings.unSafeTexture.SetPixel(0, 0, gameSettings.unSafeColor);
            gameSettings.unSafeTexture.Apply();



            modStyle = new ModStyle();
        }