Exemple #1
0
    //Creates a box for a Pokemon Overview.  Currently shows a base stat overview for the current
    //selected pokemon.  Having trouble converting out move and item names for the overview.
    //Currently has hard coded names for items/moves to test UI spacing.
    public void OpenStatWindow(Pokemon pkmn)
    {
        if (dataWindow) {
            GUI.DrawTexture (new Rect (Screen.width - 275, Screen.height - 250, 250, 250), GUImgr.gradRight);
            /*foreach (var slot in Player.trainer.party.GetSlots ()) {
        var pokemon = slot.pokemon;

        if (party.IsActive (pokemon)) {*/
            GUI.Label (new Rect (Screen.width - 270, Screen.height - 245, 200, 25), pkmn.GetName ());
            GUI.Label (new Rect (Screen.width - 270, Screen.height - 215, 75, 25), "HP: " + pkmn.CurrentHP () + "/" + pkmn.TotalHP ());
            GUI.Label (new Rect (Screen.width - 270, Screen.height - 185, 75, 25), "Atk: " + pkmn.TotalAttack ());
            GUI.Label (new Rect (Screen.width - 270, Screen.height - 155, 75, 25), "Def: " + pkmn.TotalDefence ());
            GUI.Label (new Rect (Screen.width - 270, Screen.height - 125, 75, 25), "Spd: " + pkmn.TotalSpeed ());
            //As far as I can tell, held items aren't implemented, so I'm just hardcoding None.
            GUI.Label (new Rect (Screen.width - 195, Screen.height - 215, 190, 25), "Item: None" /*+ pokemon.GetItemName()*/);
            int height = 185;
            int loop = 1;
            foreach (Move mve in pkmn.moves) {
                    if (loop > 4)
                            break;
                    GUI.Label (new Rect (Screen.width - 195, Screen.height - height, 190, 25), "Move " + loop + ": " + mve.ToFriendlyString ());
                    loop++;
                    height -= 30;
            }
        }
        //GUI.Label (new Rect (Screen.width - 195, Screen.height - 185, 190, 25), "Move 1: Hydro Cannon" /*+ pokemon.GetMoveName(0)*/);
        //GUI.Label (new Rect (Screen.width - 195, Screen.height - 155, 190, 25), "Move 2: " /*+ pokemon.GetMoveName(0)*/);
        //GUI.Label (new Rect (Screen.width - 195, Screen.height - 125, 190, 25), "Move 3: " /*+ pokemon.GetMoveName(0)*/);
        //GUI.Label (new Rect (Screen.width - 195, Screen.height - 95, 190, 25), "Move 4: " /*+ pokemon.GetMoveName(0)*/);
    }
Exemple #2
0
	//Creates a box for a Pokemon Overview.  Currently shows a base stat overview for the current
	//selected pokemon.  Having trouble converting out move and item names for the overview.
	//Currently has hard coded names for items/moves to test UI spacing.
	public void OpenStatWindow(Pokemon pkmn) {
		if (dataWindow) {
			GUI.DrawTexture (new Rect (Screen.width - 275, Screen.height - 250, 250, 250), GUImgr.gradRight);
			GUI.Label (new Rect (Screen.width - 270, Screen.height - 245, 200, 25), pkmn.GetName ());
			GUI.Label (new Rect (Screen.width - 270, Screen.height - 215, 75, 25), "HP: " + pkmn.CurrentHP () + "/" + pkmn.TotalHP ());
			GUI.Label (new Rect (Screen.width - 270, Screen.height - 185, 75, 25), "Atk: " + pkmn.TotalAttack ());
			GUI.Label (new Rect (Screen.width - 270, Screen.height - 155, 75, 25), "Def: " + pkmn.TotalDefence ());
			GUI.Label (new Rect (Screen.width - 270, Screen.height - 125, 75, 25), "Spd: " + pkmn.TotalSpeed ());
			//As far as I can tell, held items aren't implemented, so I'm just hardcoding None.
			GUI.Label (new Rect (Screen.width - 195, Screen.height - 215, 190, 25), "Item: None" /*+ pokemon.GetItemName()*/);
			int height = 185;
			int loop = 1;
			foreach (Move mve in pkmn.moves) {
				if (loop > 4)
					break;
				GUI.Label (new Rect (Screen.width - 195, Screen.height - height, 190, 25), "Move " + loop + ": " + mve.ToFriendlyString ());
				loop++;
				height -= 30;
			}
		}
	}
Exemple #3
0
    //Creates a box for a Pokemon Overview.  Currently shows a base stat overview for the current
    //selected pokemon.  Having trouble converting out move and item names for the overview.
    //Currently has hard coded names for items/moves to test UI spacing.
    public void OpenStatWindow(Pokemon pkmn)
    {
        if (dataWindow)
        {
            GUI.DrawTexture(new Rect(Screen.width - 275, Screen.height - 250, 250, 250), GUImgr.gradRight);

            /*foreach (var slot in Player.trainer.party.GetSlots ()) {
             * var pokemon = slot.pokemon;
             *
             * if (party.IsActive (pokemon)) {*/
            GUI.Label(new Rect(Screen.width - 270, Screen.height - 245, 200, 25), pkmn.GetName());
            GUI.Label(new Rect(Screen.width - 270, Screen.height - 215, 75, 25), "HP: " + pkmn.CurrentHP() + "/" + pkmn.TotalHP());
            GUI.Label(new Rect(Screen.width - 270, Screen.height - 185, 75, 25), "Atk: " + pkmn.TotalAttack());
            GUI.Label(new Rect(Screen.width - 270, Screen.height - 155, 75, 25), "Def: " + pkmn.TotalDefence());
            GUI.Label(new Rect(Screen.width - 270, Screen.height - 125, 75, 25), "Spd: " + pkmn.TotalSpeed());
            //As far as I can tell, held items aren't implemented, so I'm just hardcoding None.
            GUI.Label(new Rect(Screen.width - 195, Screen.height - 215, 190, 25), "Item: None" /*+ pokemon.GetItemName()*/);
            int height = 185;
            int loop   = 1;
            foreach (Move mve in pkmn.moves)
            {
                if (loop > 4)
                {
                    break;
                }
                GUI.Label(new Rect(Screen.width - 195, Screen.height - height, 190, 25), "Move " + loop + ": " + mve.ToFriendlyString());
                loop++;
                height -= 30;
            }
        }
        //GUI.Label (new Rect (Screen.width - 195, Screen.height - 185, 190, 25), "Move 1: Hydro Cannon" /*+ pokemon.GetMoveName(0)*/);
        //GUI.Label (new Rect (Screen.width - 195, Screen.height - 155, 190, 25), "Move 2: " /*+ pokemon.GetMoveName(0)*/);
        //GUI.Label (new Rect (Screen.width - 195, Screen.height - 125, 190, 25), "Move 3: " /*+ pokemon.GetMoveName(0)*/);
        //GUI.Label (new Rect (Screen.width - 195, Screen.height - 95, 190, 25), "Move 4: " /*+ pokemon.GetMoveName(0)*/);
    }
Exemple #4
0
 //Creates a box for a Pokemon Overview.  Currently shows a base stat overview for the current
 //selected pokemon.  Having trouble converting out move and item names for the overview.
 //Currently has hard coded names for items/moves to test UI spacing.
 public void OpenStatWindow(Pokemon pkmn)
 {
     if (dataWindow)
     {
         GUI.DrawTexture(new Rect(Screen.width - 275, Screen.height - 250, 250, 250), GUImgr.gradRight);
         GUI.Label(new Rect(Screen.width - 270, Screen.height - 245, 200, 25), pkmn.GetName());
         GUI.Label(new Rect(Screen.width - 270, Screen.height - 215, 75, 25), "HP: " + pkmn.CurrentHP() + "/" + pkmn.TotalHP());
         GUI.Label(new Rect(Screen.width - 270, Screen.height - 185, 75, 25), "Atk: " + pkmn.TotalAttack());
         GUI.Label(new Rect(Screen.width - 270, Screen.height - 155, 75, 25), "Def: " + pkmn.TotalDefence());
         GUI.Label(new Rect(Screen.width - 270, Screen.height - 125, 75, 25), "Spd: " + pkmn.TotalSpeed());
         //As far as I can tell, held items aren't implemented, so I'm just hardcoding None.
         GUI.Label(new Rect(Screen.width - 195, Screen.height - 215, 190, 25), "Item: None" /*+ pokemon.GetItemName()*/);
         int height = 185;
         int loop   = 1;
         foreach (Move mve in pkmn.moves)
         {
             if (loop > 4)
             {
                 break;
             }
             GUI.Label(new Rect(Screen.width - 195, Screen.height - height, 190, 25), "Move " + loop + ": " + mve.ToFriendlyString());
             loop++;
             height -= 30;
         }
     }
 }