Exemplo n.º 1
0
  @Override
  public void vBegin() {
    m_bg = SpriteFactory.Singleton().CreateSprite(ljy.game.R.drawable.menus);
    m_bg.SetUV(160, 5, 20, 20);

    m_uiRoot = new UIWidget();

    m_btnBack = new UIButton(ljy.game.R.drawable.menus, 5, 140, 90, 140, 39, 19);
    m_btnBack.SetPos(12, 12);
    m_btnBack.SetCallback(this);
    m_btnBack.SetParent(m_uiRoot);

    UIManager.Singleton().AddToRoot(m_uiRoot);
  }
Exemplo n.º 2
0
 @Override
 public void vDraw(float elapsed) {
   m_bg.Draw(0, 0, 320, 480);
 }