Beispiel #1
0
        public void BuildBox(string configurationName, InfoPanelBox.BuildInfo buildInfo, bool setAsCurrent = true)
        {
            ((InfoPanelBox)MainBox.GetConfiguration(configurationName)).Build(buildInfo);

            if (setAsCurrent)
                MainBox.SetCurrentConfiguration(configurationName);
        }
        public override void Build(InfoPanelBox.BuildInfo buildInfo)
        {
            base.Build(buildInfo);

            Player = buildInfo.GetArg<Player>("Player");

            UpdateData();

            AddItem(0, NameLabel);
        }
        public override void Build(InfoPanelBox.BuildInfo buildInfo)
        {
            base.Build(buildInfo);

            if (CurrentCombatant != null)
                CurrentCombatant.OnStatusChange -= new CombatantStatusChangeEventHandler(CurrentCombatant_OnStatusChange);

            CurrentCombatant = buildInfo.GetArg<BaseCombatant>("Combatant");
            CurrentCombatant.OnStatusChange += new CombatantStatusChangeEventHandler(CurrentCombatant_OnStatusChange);

            UpdateData();

            AddItem(0, NameLabel);
            AddItem(0, HpLabel);
            AddItem(0, SpLabel);
            AddItem(0, MpLabel);
        }
Beispiel #4
0
 public void AddBox(InfoPanelBox box)
 {
     MainBox.AddConfiguration(box.ConfigurationName, box);
 }