Beispiel #1
0
 internal UI_ProgressBar(UIConfig.cProgressBar progressBarSettings, UIConfig.TextSettings textSettings)
 {
     config       = progressBarSettings;
     text         = new UI_Text(textSettings);
     innerTexture = UIUtils.CreateColorTexture(config.InnerColor);
     outerTexture = UIUtils.CreateColorTexture(config.OuterColor);
 }
Beispiel #2
0
        internal UI_ProgressBar(UIConfig.cProgressBar progressBarSettings, UIConfig.TextSettings textSettings)
        {
            config = progressBarSettings;
            text   = new UI_Text(textSettings);

            innerTexture           = UIUtils.CreateColorTexture(config.InnerColor);
            innerTexture.hideFlags = HideFlags.HideAndDontSave;
            innerTexture.DontDestroyOnLoad();

            outerTexture           = UIUtils.CreateColorTexture(config.OuterColor);
            outerTexture.hideFlags = HideFlags.HideAndDontSave;
            outerTexture.DontDestroyOnLoad();

            AllElements.Add(this);
        }