@ Initiate ( priority = AutumnActionPriority . TOP_PRIORITY ) public void initiateSkin ( final SkinService skinService ) { // Loading default VisUI skin with double scale: VisUI . load ( VisUI . SkinScale . X2 ) ; // Registering VisUI skin with "default" name - skin with this ID will be used by default if no other ID is // specified. Since we're not using multiple skins, we do not have to worry about them in LML templates at all. skinService . addSkin ( "default" , VisUI . getSkin ( ) ) ; // Since we use FitViewports, we need to set a stage resizer that does not center the camera: InterfaceService . DEFAULT_VIEW_RESIZER = new StandardViewResizer ( ) ; }
This action will be invoked when the application is being initialized . Actions are sorted by their priority and invoked in descending order ; by manipulating the priority values you can fully control the flow of your application s initiation .