private void addHudLayer() { this.hudLayer = new HudLayer(this); this.hudLayer.setContents( "ui/arrow_left1.png", "ui/arrow_left2.png", "ui/arrow_right1.png", "ui/arrow_right2.png", "cheri.ttf", WYColor3B.make(255, 255, 255), 36.0f, 0.0f); this.hudLayer.updateObjectsVisibility( true, false, false, this.wySize.width / 2.0f, this.wySize.height / 8.0f, "bck"); this.hudLayer.setBackButtonPosition(90.0f, 80.0f); addChild(this.hudLayer); this.hudLayer.autoRelease(true); this.hudLayer.setZOrder(15); bringToFront(this.hudLayer); }
private void addHudLayer() { this.hudLayer = new HudLayer(this); this.hudLayer.setContents( R.drawable.arrow_button1_left, R.drawable.arrow_button2_left, R.drawable.arrow_button1_right, R.drawable.arrow_button2_right, "cheri.ttf", WYColor3B.make(255, 255, 255), 36.0f, 0.0f); this.hudLayer.updateObjectsVisibility( true, false, false, this.wySize.width / 2.0f, this.wySize.height - 100.0f, "bck"); this.hudLayer.setBackButtonPosition(60.0f, this.wySize.height - 50.0f); addChild(this.hudLayer); this.hudLayer.autoRelease(true); this.hudLayer.setZOrder(15); bringToFront(this.hudLayer); }