Package com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.ui

Examples of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.ui.Glass


  protected HasLoginButtonPage(final Point buttonPos,final Point labelPos,final int buttonBounds,final TextAlign labelAlign,final CssColor textColor) {
    game=(ASBOTXGame) getGame();
    root=new GroupLayer();
   
    if(game.getLoginInfo()==null){
      game.getPlayerService().checkLogin(new CheckLoginRequest(ASBOTXConfigs.CLOSE_PAGE_PATH,game.getLocalPlayer().getPlayer()),
          new AsyncCallback<CheckLoginResponse>(){
 
        @Override
        public void onFailure(Throwable caught) {
          handleResponseFailure(caught);
View Full Code Here


      }
    }-*/;
    public void secondCheck(){
      if(enabled){
        final LocalPlayer localPlayer=game.getLocalPlayer();
        game.getPlayerService().checkLogin(new CheckLoginRequest(ASBOTXConfigs.CLOSE_PAGE_PATH,
            localPlayer.getPlayer()),
            new AsyncCallback<CheckLoginResponse>(){
 
              @Override
              public void onFailure(Throwable caught) {
View Full Code Here

    setTotal(player.getTotal());
    setTimestamp(player.getTimestamp());
    setKey(player.getKey());
  }
  public TransportablePlayer getPlayer(){
    return new TransportablePlayer(getKey(),getID()==null?"":getID(),getTotal(),getEncryptedAchievements(),getTimestamp());
  }
View Full Code Here

 
  private void loadPlayerAchievements(String value){
    try{
      JSONObject object=JSONParser.parseStrict(MEngine.getCipher().decrypt(value)).isObject();
      this.encryptedAchvs=value;
      WorldType type;
      int[] scores;
      JSONArray worldScores;
      for(String typeString:object.keySet()){
        type=WorldType.valueOf(typeString);
        worldScores=object.get(typeString).isArray();
View Full Code Here

    private ButtonsRoller roller;
    private boolean left;
    private int rollingStep=0;
    private final int ROLLING_FULL_STEP=24;
    public RollerControlButton(Point p,ButtonsRoller roller,boolean left) {
      super(p, 25,new SpriteBlock((left?5:4)*(200+SpriteBlock.SPACING),2*(200+SpriteBlock.SPACING),200,200, ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
      this.left=left;
      this.roller=roller;
    }
View Full Code Here

    }
   
  }
  private abstract class BigButton extends BoxButton{
    public BigButton(double bounds,int x) {
      super(new Point(0,0), bounds, bounds, new SpriteBlock(x,0,250,250,MEngine.getAssetManager().getSpriteSheet("images/big_buttons.png")));
    }
View Full Code Here

    connectionLock=false;
  }
  private class RefreshButton extends CircleButton{
   
    public RefreshButton(Point p, double r) {
      super(p, r, new SpriteBlock(2*(200+SpriteBlock.SPACING),
          3*(200+SpriteBlock.SPACING),200,200,ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
    }
 
View Full Code Here

    private static final String DESCRIPTION="Store your achievements on the cloud.";
    private GameLabel label;
    private boolean enabled=true;
   
    public LoginButtonAndIDDisplay(Point buttonPos,Point labelPos,int bounds,TextAlign align,CssColor labelColor) {
      super(buttonPos, bounds,bounds,new SpriteBlock(3*(200+SpriteBlock.SPACING),
          chooseSpriteBlockY(ASBOTXConfigs.Utility.switchStatus(game.getLoginInfo().getStatus())),
          200,200,ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
     
      if(game.getLoginInfo().isConnectionSuccess()){
        this.label=new GameLabel(labelPos,align, TextBaseline.MIDDLE,
View Full Code Here

* @author Maeglin Liao
*
*/
public class BackButton extends CircleButton{
  public BackButton(Point p,double r) {
    super(p,r, new SpriteBlock(5*(200+SpriteBlock.SPACING),2*(200+SpriteBlock.SPACING),200,200, ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
  }
View Full Code Here

   * @param w
   * @param h
   * @param block
   */
  public WelcomeButton(Point p,double bounds) {
    super(p,bounds,bounds, new SpriteBlock(5*(200+SpriteBlock.SPACING),0,200,200,ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
    // TODO Auto-generated constructor stub
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.ui.Glass

Copyright © 2018 www.massapicom. 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.