private void createChilds() { _bg = new Image("shadowLeft"); _bg.set_width(_width); _bg.set_height(_height); addChild(_bg); _text = new Image("backText"); _text.set_color(0xff000000); addChild(_text); _icon = new Image("backIcon"); _icon.set_x(140); _icon.set_color(0xff000000); addChild(_icon); }
@Override protected void onHoverOut(TouchEvent event) { _isOver = false; _icon.set_color(0xff000000); }
@Override protected void onHover(TouchEvent event) { _isOver = true; _color = event.getUser().getColor(); _icon.set_color(event.getUser().getColor()); }