Package org.newdawn.slick.thingle

Examples of org.newdawn.slick.thingle.Widget


              Thingle.init(new SlickThinletFactory(container));
              page = new Page();
              page.setDrawDesktop(false);
              page.enable();
              try {
                 Widget widget = page.parse("<panel columns='1' gap='4'>" + //
                    "<panel name='panelTest' columns='1' top='5' left='5' bottom='0' right='0' gap='10' border='true'>" + //
                    "<label text='Uccidi tutte le streghe!'/>" + //
                    "<label text='Movimento: Frecce'/>" + //
                    "<label text='Attacco: Spazio'/>" + //
                    "<label text='Menu:  ESC'/>" + //
View Full Code Here


  /**
   * Cambia selezione di un elemento nell'inventario
   * @param inventario
   */
  public void changeSelection(Widget inventario) {
    Widget i = inventario.getChild(inventario.getSelectedIndex());
    Log.info("Inventory selected: "+i.getString("text"));
  }
View Full Code Here

TOP

Related Classes of org.newdawn.slick.thingle.Widget

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.