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