Пример #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);
 }
Пример #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);
        }
Пример #3
0
 internal UI_Text(UIConfig.TextSettings textSettings)
 {
     config = textSettings;
     text   = config.Text;
     AllElements.Add(this);
 }
Пример #4
0
 internal UI_Text(UIConfig.TextSettings textSettings)
 {
     config = textSettings;
     text   = config.Text;
 }