Package cero.ui

Examples of cero.ui.UserInterface


    // must be created before the game
    //UserInterface launcher1 = manager.getNewUserInterface("Cero incomplete command line interface :P");
   
    //this could work as well with any other interface
    UserInterface launcher2 = manager.getNewUserInterface("Cero Devint interface");

    for (InterfaceModule mod : launcher2.getInterfaceModules())
      launcher2.activateInterfaceModule(mod);

    // UserInterface sound =
    // manager.getInterfaceLoader().getPlugin("sound").newInterfaceInstance();
    // must be created after the interface (doh!)

    // sound.setActivated(true);
    launcher2.setActivated(true);
  }
View Full Code Here


        founduip = uip;
    }
    if (founduip == null)
      return null;

    UserInterface uiinst = founduip.newInterfaceInstance();
    for (InterfaceModulePlugin imp : uiPluginModules) {
      if (imp.getInterfaceType().isInstance(uiinst))
        try {
          uiinst.addInterfaceModule(imp.newModuleInstance());
        } catch (UnsupportedPluginException e) {
          // TODO we should inform the user the plugin is
          // incoherent with the interface
        }
    }
View Full Code Here

TOP

Related Classes of cero.ui.UserInterface

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.