예제 #1
0
 public PickerButton()
 {
     if (HasSlider)
     {
         Image = "/GUILib;component/Themes/Image/device_picker withtray.png";
     }
     else
     {
         Image = "/GUILib;component/Themes/Image/device_Picker withouttray.png";
     }
     LifeTimeStr = LifeTime.ToString();
 }
예제 #2
0
        public override string Compile()
        {
            string output = "";

            if (Amount < 0)
            {
                output += "Disables all  movements " + GetTarget();
            }
            if (LifeTime > 0)
            {
                output += " for " + LifeTime.ToString() + " seconds.";
            }
            return(output);
        }
예제 #3
0
        public override string Compile()
        {
            string output = "";

            if (Parent is SkillInfo)
            {
                if (Amount > 0)
                {
                    output += "Enables infiltration " + GetTarget();
                }
                else
                {
                    output += "Disables infiltration " + GetTarget();
                }

                if (LifeTime > 0)
                {
                    output += " for " + LifeTime.ToString() + " seconds.";
                }
            }
            return(output);
        }
예제 #4
0
        public override string Compile()
        {
            string output = "";

            if (Parent is SkillInfo)
            {
                if (Amount > 0)
                {
                    output += "Disables morale immunity " + Regex.Replace(GetTarget(), "of", "for");
                }
                else
                {
                    output += "Enables morale immunity " + Regex.Replace(GetTarget(), "of", "for");
                }

                if (LifeTime > 0)
                {
                    output += " for " + LifeTime.ToString() + " seconds.";
                }

                output += "<li>Restores morale " + Regex.Replace(GetTarget(), "of", "for") + "</li>";
            }
            return(output);
        }
예제 #5
0
 public override string ToString()
 {
     return(lifeTime.ToString());
 }