public void partySkills() { Statinfo.SetActive(false); PartyMenu.SetActive(false); Skillsinfo.SetActive(true); skills[0].text = "Level : " + player.level + "\n" + player.playername + "\n" + "Ability1: " + player.ability1 + "\n" + "Ability2: " + player.ability2 + "\n" + "Ability3: " + player.ability3 + "\n" + "Ability4: " + player.ability4 + "\n"; skills[1].text = "Level : " + pets[0].level + "\n" + pets[0].petname + "\n" + "Ability1: " + pets[0].ability1 + "\n" + "Ability2: " + pets[0].ability2 + "\n" + "Ability3: " + pets[0].ability3 + "\n" + "Ability4: " + pets[0].ability4 + "\n"; skills[2].text = "Level : " + pets[1].level + "\n" + pets[1].petname + "\n" + "Ability1: " + pets[1].ability1 + "\n" + "Ability2: " + pets[1].ability2 + "\n" + "Ability3: " + pets[1].ability3 + "\n" + "Ability4: " + pets[1].ability4 + "\n"; skills[3].text = "Level : " + pets[2].level + "\n" + pets[2].petname + "\n" + "Ability1: " + pets[2].ability1 + "\n" + "Ability2: " + pets[2].ability2 + "\n" + "Ability3: " + pets[2].ability3 + "\n" + "Ability4: " + pets[2].ability4 + "\n"; }
public void playerstat() { Skillsinfo.SetActive(false); PartyMenu.SetActive(false); Statinfo.SetActive(true); stats[0].text = "Level : " + player.level + "\n" + player.playername + "\n" + "Health: " + player.health + "/" + player.healthMax + "\n" + "Mana: " + player.mana + "/" + player.manaMax + "\n" + "Attack: " + player.attackdam + "\n"; stats[1].text = "Level : " + pets[0].level + "\n" + pets[0].petname + "\n" + "Health: " + pets[0].health + "/" + pets[0].healthMax + "\n" + "Mana: " + pets[0].mana + "/" + pets[0].manaMax + "\n" + "Attack: " + pets[0].attackdam + "\n"; stats[2].text = "Level : " + pets[1].level + "\n" + pets[1].petname + "\n" + "Health: " + pets[1].health + "/" + pets[1].healthMax + "\n" + "Mana: " + pets[1].mana + "/" + pets[1].manaMax + "\n" + "Attack: " + pets[1].attackdam + "\n"; stats[3].text = "Level : " + pets[2].level + "\n" + pets[2].petname + "\n" + "Health: " + pets[2].health + "/" + pets[2].healthMax + "\n" + "Mana: " + pets[2].mana + "/" + pets[2].manaMax + "\n" + "Attack: " + pets[2].attackdam + "\n"; }
private void LoadControls() { battleMenu = new HorizontalMenu(this, 290, GraphicsDevice.Viewport.Height - 202, GraphicsDevice.Viewport.Width - 302, 192); battleMenu.AddMenuItem("FIGHT"); battleMenu.AddMenuItem("PkMn"); battleMenu.AddMenuItem("ITEM"); battleMenu.AddMenuItem("RUN"); battleMenu.OnSubmit += battleMenu_OnSubmit; hasFocus = battleMenu; moveMenu = new Menu(this, 142, GraphicsDevice.Viewport.Height - 202, GraphicsDevice.Viewport.Width - 154, 192); moveMenu.OnSubmit += moveMenu_OnSubmit; moveMenu.OnCancel += moveMenu_OnCancel; moveMenu.OnSelectedItemChanged += moveMenu_OnSelectedItemChanged; partyMenu = new PartyMenu(this, 0, 4, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height - 206); partyMenu.OnSubmit += partyMenu_OnSubmit; partyMenu.OnCancel += partyMenu_OnCancel; moveDisplay = new MoveDisplay(this, 12, GraphicsDevice.Viewport.Height - 318, 320, 128); textBox = new ScrollingTextBox(this, 12, GraphicsDevice.Viewport.Height - 202, GraphicsDevice.Viewport.Width - 24, 192); textBox.LoadContent(GraphicsDevice); textBox.OnClose += TextBox_OnClose; foeHUD = new HUD(this, 0, 4, GraphicsDevice.Viewport.Width, (GraphicsDevice.Viewport.Height - 202) / 2 - 4, false); foeHUD.hudRect = new Rectangle(foeHUD.X + 44, foeHUD.Y + SpriteManager.CharHeight * 2, SpriteManager.HudFoe.Width, SpriteManager.HudFoe.Height); foeHUD.hudSprite = SpriteManager.HudFoe; foeHUD.nameCoords = new Vector2(foeHUD.X + SpriteManager.CharWidth, foeHUD.Y + 0); foeHUD.statusCoords = new Vector2(foeHUD.X + SpriteManager.CharWidth, foeHUD.Y + SpriteManager.CharHeight); foeHUD.hpBarCoords = new Vector2(foeHUD.X + 128, foeHUD.Y + SpriteManager.CharHeight * 2 + 12); foeHUD.drawHPText = false; foeHUD.OnAnimationEnd += foeHUD_OnAnimationEnd; selfHUD = new HUD(this, 0, foeHUD.Height + 2, GraphicsDevice.Viewport.Width, (GraphicsDevice.Viewport.Height - 182) / 2, true); selfHUD.hudRect = new Rectangle(selfHUD.X + selfHUD.Width - SpriteManager.HudSelf.Width - SpriteManager.CharWidth - 16, selfHUD.Y + selfHUD.Height - SpriteManager.HudSelf.Height - 20, SpriteManager.HudSelf.Width, SpriteManager.HudSelf.Height); selfHUD.hudSprite = SpriteManager.HudSelf; selfHUD.nameCoords = new Vector2(selfHUD.X + selfHUD.Width - (SpriteManager.CharWidth * 10) - 4, selfHUD.hudRect.Y - SpriteManager.CharHeight * 2); selfHUD.statusCoords = new Vector2(selfHUD.X + selfHUD.Width - (SpriteManager.CharWidth * 10) - 4, selfHUD.hudRect.Y - SpriteManager.CharHeight); selfHUD.hpBarCoords = new Vector2(selfHUD.hudRect.X + 96, selfHUD.hudRect.Y + 12); selfHUD.hpTextCoords = new Vector2(selfHUD.X + selfHUD.Width - (SpriteManager.CharWidth * 10) + -4, selfHUD.hudRect.Y + SpriteManager.CharHeight); selfHUD.drawHPText = true; selfHUD.OnAnimationEnd += selfHUD_OnAnimationEnd; specialEffectManager = new SpecialEffectManager(this); specialEffectManager.OnEffectsEnd += specialEffectManager_OnEffectsEnd; foeRenderer = new FoeRenderer(this, foeHUD.Bounds.X, foeHUD.Bounds.Y + 2, foeHUD.Bounds.Width, foeHUD.Bounds.Height); foeRenderer.OnTransformMonster += specialEffectManager.TransformMonster; selfRenderer = new SelfRenderer(this, selfHUD.Bounds.X, selfHUD.Bounds.Y + 4, selfHUD.Bounds.Width, selfHUD.Bounds.Height); selfRenderer.OnTransformMonster += specialEffectManager.TransformMonster; foeExtraHUD = new ExtraHUD(this, WideWindowWidth / 2 + GameScreenWidth / 2, 0, (WideWindowWidth - GameScreenWidth) / 2, WideWindowHeight, false); selfExtraHUD = new ExtraHUD(this, 0, WideWindowHeight / 3, (WideWindowWidth - GameScreenWidth) / 2, WideWindowHeight * 2 / 3, true); }
void Start(){ GUImgr.Start(); partyMenu = gameObject.AddComponent<PartyMenu> (); }
void Start() { GUImgr.Start(); partyMenu = gameObject.AddComponent <PartyMenu> (); }
public void Party() { Statinfo.SetActive(false); PartyMenu.SetActive(true); Skillsinfo.SetActive(false); }