Exemple #1
0
        public ShipStatusHP()
        {
            InitializeComponent();

            SetStyle(ControlStyles.ResizeRedraw, true);

            _HPBar = new StatusBarModule
            {
                Value        = 66,
                PrevValue    = 88,
                MaximumValue = 100
            };
            _repairTime = DateTime.Now;

            _maximumDigit = 999;

            _mainFont      = new Font("Meiryo UI", 12, FontStyle.Regular, GraphicsUnit.Pixel);
            _mainFontColor = FromArgb(0xFF000000);

            _subFont      = new Font("Meiryo UI", 10, FontStyle.Regular, GraphicsUnit.Pixel);
            _subFontColor = FromArgb(0xFF888888);

            _repairFontColor = FromArgb(0xFF000088);
            _text            = "HP:";

            _HPBar.UsePrevValue = true;
            _showDifference     = false;
            _repairTimeShowMode = ShipStatusHPRepairTimeShowMode.Invisible;
            _showHPBar          = true;
        }
Exemple #2
0
        public ShipStatusHP()
        {
            InitializeComponent();

            SetStyle(ControlStyles.ResizeRedraw, true);

            _HPBar = new StatusBarModule
            {
                Value        = 66,
                PrevValue    = 88,
                MaximumValue = 100
            };
            _repairTime = DateTime.Now;
            if (Utility.Configuration.Config.UI.RemoveBarShadow)
            {
                _HPBar.BarBackgroundOffset = 0;
            }

            _maximumDigit = 999;

            _mainFont      = new Font("Meiryo UI", 12, FontStyle.Regular, GraphicsUnit.Pixel);
            _mainFontColor = Utility.Configuration.Config.UI.ForeColor;

            _subFont      = new Font("Meiryo UI", 10, FontStyle.Regular, GraphicsUnit.Pixel);
            _subFontColor = Utility.Configuration.Config.UI.SubForeColor;

            _repairFontColor = Utility.Configuration.Config.UI.Fleet_ColorRepairTimerText;
            _text            = "HP:";

            _HPBar.UsePrevValue = true;
            _showDifference     = false;
            _repairTimeShowMode = ShipStatusHPRepairTimeShowMode.Invisible;
            _showHPBar          = true;
        }