예제 #1
0
        public static void UpdateNPC()
        {
            user.fightWindow.fxNPCIconPB.Image      = NPC.GetIcon();
            user.fightWindow.fxNPCNameLabel.Text    = NPC.GetName();
            user.fightWindow.fxNPCGroupLabel.Text   = NPC.GetGroup();
            user.fightWindow.fxNPCHealthPB.Value    = NPC.GetHealth();
            user.fightWindow.fxNPCHealthLabel.Text  = NPC.GetHealth().ToString();
            user.fightWindow.fxNPCStaminaPB.Value   = NPC.GetStamina();
            user.fightWindow.fxNPCStaminaLabel.Text = NPC.GetStamina().ToString();

            user.fightWindow.fxNPCParamsDGV.Rows.Clear();
            for (int i = 0; i < NPC.GetSkills().Count; i++)
            {
                user.fightWindow.fxNPCParamsDGV.Rows.Add();

                user.fightWindow.fxNPCParamsDGV.Rows[i].Cells[0].Value = NPC.GetSkills()[i].name;
                user.fightWindow.fxNPCParamsDGV.Rows[i].Cells[1].Value = NPC.GetSkills()[i].value;
            }
        }