Пример #1
0
        public static void AddLine(VerticalLayoutGroup layout, CombatHUD HUD, LocalizableText src, AbilityLine dataline, bool error)
        {
            //LocalizableText upline = AddLine(layout, src, new string('_', dataline.length()), TMPro.TextAlignmentOptions.TopLeft);
            LocalizableText atextline = AddLine(layout, src, dataline.ToString(false), TMPro.TextAlignmentOptions.TopLeft);

            //LocalizableText btline = AddLine(layout, src, new string('_', dataline.length()), TMPro.TextAlignmentOptions.TopLeft);
            if (error)
            {
                dataline.error = true;
            }
            ;
            if ((error == false) && (dataline.error == false))
            {
                AbilityMenuTriggers trigger = atextline.gameObject.GetComponent <AbilityMenuTriggers>();
                if (trigger == null)
                {
                    trigger = atextline.gameObject.AddComponent <AbilityMenuTriggers>();
                }
                trigger.Init(atextline, dataline, HUD);
            }
        }
Пример #2
0
 public void Init(LocalizableText line, AbilityLine data, CombatHUD HUD)
 {
     this.line     = line;
     this.dataline = data;
     this.HUD      = HUD;
 }