Package pu.web.client

Examples of pu.web.client.PU_Image.draw()


   
    // Pokemon bar
    PU_Image pokemonBar = PUWeb.resources().getGuiImage(GuiImages.IMG_GUI_WORLD_POKEMONBAR);
    if(pokemonBar != null)
    {
      pokemonBar.draw(193, 11);
    }
   
    // The following routine might not seem very efficient,
    // but since webgl is the slowest element in the program - this is the best thing to do
    PU_Image pokemonSlot = PUWeb.resources().getGuiImage(GuiImages.IMG_GUI_WORLD_POKEMONSLOT);
View Full Code Here


    if(pokemonSlot != null)
    {
      // First draw all slots (to avoid texture switching)
      for(int i = 0; i < 6; i++)
      {
        pokemonSlot.draw(201+(i*(pokemonSlot.getWidth()+2)), 14);
      }
     
      if(self != null)
      {
        // Now draw our pokemon icons in a batch
View Full Code Here

              if(pokemon != null)
              {
                PU_Image pokemonIcon =  PUWeb.resources().getPokemonIcon(pokemon.getSpeciesId());
                if(pokemonIcon != null)
                {
                  pokemonIcon.draw(204+(i*(pokemonSlot.getWidth()+2)), 8, true);
                }
               
                PU_Image hpbarImage = null;
                float hpperc = ((float)pokemon.getHp() / (float)pokemon.getHpmax());
                if(hpperc > 0.6f)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.