public SubStateConfirmEquipMenu(SubStateAbstract theparent, int xCoord, int yCoord, int thePC, int itemSlot, int itemLocation, int type) : base(theparent) { PCid = thePC; slot = itemSlot; itemID = itemLocation; itemType = type; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[2]; menu = new string[2]; menu[0] = "Yes"; menu[1] = "No"; colors[0] = Color.White; colors[1] = Color.DarkGray; mX = xCoord; mY = yCoord; width = 27; height = 50; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }//end EVC
public SubStateConfirmEquipMenu(SubStateAbstract theparent, int xCoord, int yCoord, int thePC, int itemSlot, int itemLocation, int type) : base(theparent) { PCid = thePC; slot = itemSlot; itemID = itemLocation; itemType = type; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[2]; menu = new string[2]; menu[0] = "Yes"; menu[1] = "No"; colors[0] = Color.White; colors[1] = Color.DarkGray; mX = xCoord; mY = yCoord; width = 27; height = 50; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }
public SubStateCharSelectSpell(SubStateAbstract theparent, SpellAbstract theSpell, PC thePC) : base(theparent) { spell = theSpell; curr = thePC; int i = 0, alive = 0; for (i = 0; i < StateCombat.MonsterList.Length; i++) { if (StateCombat.MonsterList[i].Health > 0) { alive++; } } StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[3 + alive]; menu = new string[colors.Length]; targets = new Character[colors.Length]; int unavailable = 0; for (i = 0; i < StateCombat.MonsterList.Length; i++) { if (StateCombat.MonsterList[i].Health < 1) { unavailable++; } else { targets[i - unavailable] = StateCombat.MonsterList[i]; } } int index = 0; for (i = i - unavailable; i < targets.Length; i++, index++) { targets[i] = StateHandler.GetPC(index); } for (i = 0; i < menu.Length; i++) { menu[i] = targets[i].Name; } for (i = 1; i < colors.Length; i++) { colors[i] = Color.DarkGray; } colors[0] = Color.White; mX = 250; mY = 100; width = 690; height = 510; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }//end EVC
public SubStateSlotMenuRune(SubStateAbstract theparent, int thePC) : base(theparent) { PCid = thePC; absolute = false; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[2]; menu = new string[2]; for (int i = 0; i < 2; i++) { if (StateHandler.GetPC(thePC).GetRune(i) == null) menu[i] = "Open"; else menu[i] = StateHandler.GetPC(thePC).GetRune(i).Name; colors[i] = Color.DarkGray; } colors[0] = Color.White; mX = 170; mY = 60; width = 760; height = 490; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }
public SubStateSlotMenuEquip(SubStateAbstract theparent, int thePC) : base(theparent) { PCid = thePC; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[4]; menu = new string[4]; for (int i = 0; i < 4; i++) { if (StateHandler.GetPC(thePC).GetEquipment(i) == null) { menu[i] = "Open"; } else { menu[i] = StateHandler.GetPC(thePC).GetEquipment(i).Name; } colors[i] = Color.DarkGray; } colors[0] = Color.White; mX = 170; mY = 60; width = 760; height = 490; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }//end EVC
public SubStateCharSelectMenuRune(SubStateAbstract theparent) : base(theparent) { parent = theparent; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[3]; menu = new string[3]; menu[0] = StateHandler.GetPC(0).Name; menu[1] = StateHandler.GetPC(1).Name; menu[2] = StateHandler.GetPC(2).Name; colors[0] = Color.White; colors[1] = Color.DarkGray; colors[2] = Color.DarkGray; mX = 100; mY = 45; width = 860; height = 590; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }//end EVC
public SubStateCharSelectMenuRune(SubStateAbstract theparent) : base(theparent) { parent = theparent; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[3]; menu = new string[3]; menu[0] = StateHandler.GetPC(0).Name; menu[1] = StateHandler.GetPC(1).Name; menu[2] = StateHandler.GetPC(2).Name; colors[0] = Color.White; colors[1] = Color.DarkGray; colors[2] = Color.DarkGray; mX = 100; mY = 45; width = 860; height = 590; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }
public SubStateCharSelectMenuUseCombat(SubStateAbstract theparent, int itemSlot) : base(theparent) { int i = 0, alive = 0; for (i = 0; i < StateCombat.MonsterList.Length; i++) { if (StateCombat.MonsterList[i].Health > 0) { alive++; } } itemID = itemSlot; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[3 + alive]; menu = new string[colors.Length]; menu[0] = StateHandler.GetPC(0).Name; menu[1] = StateHandler.GetPC(1).Name; menu[2] = StateHandler.GetPC(2).Name; int unavailable = 0; for (i = 0; i < StateCombat.MonsterList.Length; i++) { if (StateCombat.MonsterList[i].Health < 1) { unavailable++; } else { menu[3 + i - unavailable] = StateCombat.MonsterList[i].Name; } } colors[0] = Color.White; for (i = 1; i < colors.Length; i++) { colors[i] = Color.DarkGray; } mX = 170; mY = 60; width = 760; height = 490; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }//end EVC
public SubStateCharSelectSpell(SubStateAbstract theparent, SpellAbstract theSpell, PC thePC) : base(theparent) { spell = theSpell; curr = thePC; int i = 0, alive = 0; for (i = 0; i < StateCombat.MonsterList.Length; i++) if (StateCombat.MonsterList[i].Health > 0) alive++; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[3 + alive]; menu = new string[colors.Length]; targets = new Character[colors.Length]; int unavailable = 0; for (i = 0; i < StateCombat.MonsterList.Length; i++) { if (StateCombat.MonsterList[i].Health < 1) unavailable++; else targets[i - unavailable] = StateCombat.MonsterList[i]; } int index = 0; for(i = i - unavailable; i < targets.Length; i++, index++) targets[i] = StateHandler.GetPC(index); for (i = 0; i < menu.Length; i++) menu[i] = targets[i].Name; for (i = 1; i < colors.Length; i++) colors[i] = Color.DarkGray; colors[0] = Color.White; mX = 250; mY = 100; width = 690; height = 510; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }
public SubStateConfirmExit(SubStateAbstract theparent, int xCoord, int yCoord) : base(theparent) { StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[2]; menu = new string[2]; menu[0] = "Yes"; menu[1] = "No"; colors[0] = Color.White; colors[1] = Color.DarkGray; mX = xCoord; mY = yCoord; width = 27; height = 50; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }//end EVC
public SubStateConfirmExit(SubStateAbstract theparent, int xCoord, int yCoord) : base(theparent) { StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[2]; menu = new string[2]; menu[0] = "Yes"; menu[1] = "No"; colors[0] = Color.White; colors[1] = Color.DarkGray; mX = xCoord; mY = yCoord; width = 27; height = 50; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }
public SubStateCharacterSelectMenu(SubStateAbstract theparent, int xCoord, int yCoord) : base(theparent) { StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[3]; menu = new string[3]; menu[0] = StateHandler.GetPC(0).Name; menu[1] = StateHandler.GetPC(1).Name; menu[2] = StateHandler.GetPC(2).Name; colors[0] = Color.White; colors[1] = Color.DarkGray; colors[2] = Color.DarkGray; mX = xCoord; mY = yCoord; width = 960; height = 680; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }
public SubStateCharacterSelectMenu(SubStateAbstract theparent, int xCoord, int yCoord) : base(theparent) { StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[3]; menu = new string[3]; menu[0] = StateHandler.GetPC(0).Name; menu[1] = StateHandler.GetPC(1).Name; menu[2] = StateHandler.GetPC(2).Name; colors[0] = Color.White; colors[1] = Color.DarkGray; colors[2] = Color.DarkGray; mX = xCoord; mY = yCoord; width = 960; height = 680; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }//end EVC
public SubStateCharSelectMenuUseCombat(SubStateAbstract theparent, int itemSlot) : base(theparent) { int i = 0, alive = 0; for (i = 0; i < StateCombat.MonsterList.Length; i++) if (StateCombat.MonsterList[i].Health > 0) alive++; itemID = itemSlot; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[3 + alive]; menu = new string[colors.Length]; menu[0] = StateHandler.GetPC(0).Name; menu[1] = StateHandler.GetPC(1).Name; menu[2] = StateHandler.GetPC(2).Name; int unavailable = 0; for (i = 0; i < StateCombat.MonsterList.Length; i++) { if (StateCombat.MonsterList[i].Health < 1) unavailable++; else menu[3 + i - unavailable] = StateCombat.MonsterList[i].Name; } colors[0] = Color.White; for (i = 1; i < colors.Length; i++) colors[i] = Color.DarkGray; mX = 170; mY = 60; width = 760; height = 490; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }
public SubStateConfirmUseMenuCombat(SubStateAbstract theparent, int theSlot, int thePerson) : base(theparent) { itemSlot = theSlot; person = thePerson; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[2]; menu = new string[2]; menu[0] = "Yes"; menu[1] = "No"; colors[0] = Color.White; colors[1] = Color.DarkGray; mX = 240; mY = 75; width = 27; height = 50; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }
public SubStateConfirmUseMenu(SubStateAbstract theparent, int theSlot, int thePerson) : base(theparent) { itemSlot = theSlot; person = thePerson; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[2]; menu = new string[2]; menu[0] = "Yes"; menu[1] = "No"; colors[0] = Color.White; colors[1] = Color.DarkGray; mX = 240; mY = 75; width = 27; height = 50; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }//end EVC
public SubStateCharSelectMenuUse(SubStateAbstract theparent, int itemSlot) : base(theparent) { itemID = itemSlot; StateHandler.AddDelay(); messageBoxes = new MessageBox[1]; colors = new Color[3]; menu = new string[3]; menu[0] = StateHandler.GetPC(0).Name; menu[1] = StateHandler.GetPC(1).Name; menu[2] = StateHandler.GetPC(2).Name; colors[0] = Color.White; colors[1] = Color.DarkGray; colors[2] = Color.DarkGray; mX = 170; mY = 60; width = 760; height = 490; messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true); }