Пример #1
0
        public CombatLogBox(CombatLog Log,List<GuiItem> Garbage)
            : base("CombatLogBox")
        {
            this.Garbage = Garbage;
            Width = 250;
            Height = 200;
            this.Log = Log;
            MousePos = new Point();
            WinBar = new WindowBar("Combat Log", Width);
            WinBar.CloseButton = false;

            Background = new BackgroundItem(Color.WhiteSmoke);
            Background.Width = Width;
            Background.Height = Height;

            bOk = new ButtonItem("Ok", 120, 22, "Ok");
            bOk.Y = 170;
            bOk.X = (Width - bOk.Width) / 2;

            labelPhyDmg = new LabelItem("Physical Damage : "+Log.PhysicalDamage);

            labelMagDmg = new LabelItem("Magic Damage : " + Log.MagicDamage);

            labelCritDmg = new LabelItem("Critical Damage : " + Log.CriticalDamage);

            labelCritTimes = new LabelItem("Critical Times : " + Log.CriticalTimes);

            labelGoldStolen = new LabelItem("Gold Stolen : " + Log.GoldStolen);
        }
Пример #2
0
        public DialogBox(String Title, String Caption,int Width,int Height)
            : base("DialogBox",Width,Height)
        {
            this.Title = Title;
            this.Caption = Caption;

            this.Width = Width;
            this.Height = Height;

            WinBar = new WindowBar(Caption, Width);
            WinBar.CloseButton = false;
            Background = new BackgroundItem(Color.WhiteSmoke);
            Background.Width = Width;
            Background.Height = Height;

            CaptionLabel = new LabelItem(Caption);

            ButtonOk = new ButtonItem("OK_Dialog", 120, 22, "Ok");
        }
Пример #3
0
        public TextInputDialogBox(String Title,String Caption)
            : base("TextInputDialogBox")
        {
            this.Title = Title;
            this.Caption = Caption;

            this.Width = 360;
            this.Height = 150;

            TextEntry = "";

            WinBar = new WindowBar(Caption, Width);
            WinBar.CloseButton = false;
            Background = new BackgroundItem(Color.WhiteSmoke);
            Background.Width = Width;
            Background.Height = Height;

            CaptionLabel = new LabelItem(Caption);

            ButtonOk = new ButtonItem("OK_Dialog", 120, 22, "Ok");
        }
Пример #4
0
        public UnitClassesChooser(List<GuiItem> Garbage)
            : base("UnitClassesBox")
        {
            Buttons = new List<ButtonItem>();

            Width = 400;
            Height = 160;
            this.Garbage = Garbage;

            MousePos = new Point();

            ChoosenClass = UnitClasses.None;

            WinBar = new WindowBar("Choose a Class", Width);
            WinBar.CloseButton = false;

            Background = new BackgroundItem(Color.LimeGreen);
            Background.X = 0;
            Background.Y = 0;
            Background.Width = Width;
            Background.Height = Height;

            bSoldier = new ButtonItem("Soldier", 120, 30, "Soldier");
            bSoldier.X = 10;
            bSoldier.Y = 30;

            bPaladin = new ButtonItem("Paladin", 120, 30, "Paladin");
            bPaladin.X = 140;
            bPaladin.Y = 30;

            bArcher = new ButtonItem("Archer", 120, 30, "Archer");
            bArcher.X = 270;
            bArcher.Y = 30;

            bMage = new ButtonItem("Mage", 120, 30, "Mage");
            bMage.X = 10;
            bMage.Y = 70;

            bThieft = new ButtonItem("Thieft", 120, 30, "Thieft");
            bThieft.X = 140;
            bThieft.Y = 70;

            bCancel = new ButtonItem("Cancel",120,30,"Cancel");
            bCancel.X = (Width - bCancel.Width) / 2;
            bCancel.Y = 110;

            Buttons.Add(bSoldier);
            Buttons.Add(bPaladin);
            Buttons.Add(bArcher);
            Buttons.Add(bMage);
            Buttons.Add(bThieft);
            Buttons.Add(bCancel);
        }