Esempio n. 1
0
        internal UI_Background(UIConfig.cBackground backgroundSettings)
        {
            config = backgroundSettings;
            image  = UIUtils.LoadImage(config, "Background");

            solidTexture           = UIUtils.CreateColorTexture(config.SolidColor);
            solidTexture.hideFlags = HideFlags.HideAndDontSave;
            solidTexture.DontDestroyOnLoad();
            AllElements.Add(this);
        }
Esempio n. 2
0
 internal UI_Background(UIConfig.cBackground backgroundSettings)
 {
     config       = backgroundSettings;
     solidTexture = UIUtils.CreateColorTexture(config.SolidColor);
     image        = UIStyleValues.LoadImage(config, "Background");
 }