示例#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);
        }
示例#2
0
 internal UI_Background(UIConfig.cBackground backgroundSettings)
 {
     config       = backgroundSettings;
     solidTexture = UIUtils.CreateColorTexture(config.SolidColor);
     image        = UIStyleValues.LoadImage(config, "Background");
 }