@Override public void close () { _layer.close(); }
@Override public void close () { super.close(); if (canvas != null) { canvas.close(); canvas = null; } } }
protected void update (Texture tex) { if (tex == null) { // we should never be going back to null but handle it anyway if (_ilayer != null) _ilayer.close(); _ilayer = null; return; } if (_ilayer == null) layer.add(_ilayer = new ImageLayer()); _ilayer.setTile(tex); }
public void setMessage (String text) { if (_msg != null) _msg.close(); if (text != null) { _msg = StyledText.span(graphics(), text, MSG_STYLE).toLayer(); _msg.setDepth(1); stage.addAt(_msg, (swidth-_msg.width())/2, (sheight-_msg.height())/2); } }