Package org.newdawn.slick.thingle

Examples of org.newdawn.slick.thingle.Page


           public void init (GameContainer container) throws SlickException {
              container.setShowFPS(false);

              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'>" + //
View Full Code Here


  public UserInterface(GameContainer container) throws Exception {
    Log.info("Init UserInterface");
    // creo l'interfaccia utente
    Thingle.init(new SlickThinletFactory(container));
    // inizializzo l'interfaccia utente leggendo il file xml
    ui = new Page(Helper.UI_XML);
    ui.setDrawDesktop(false);
    ui.enable();
   
    inv = new Page(Helper.UI_INVENTORY, new InventoryHandler());
    inv.setDrawDesktop(false);
    inv.disable();
   
    Log.info("User Interface Loaded: "+Helper.UI_XML+","+Helper.UI_INVENTORY);
  }
View Full Code Here

TOP

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

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.