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); }
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); }
internal UI_Text(UIConfig.TextSettings textSettings) { config = textSettings; text = config.Text; AllElements.Add(this); }
internal UI_Text(UIConfig.TextSettings textSettings) { config = textSettings; text = config.Text; }