Search in sources :

Example 1 with LevelEditorEntityLibraryScreenController

use of net.drewke.tdme.tools.leveleditor.controller.LevelEditorEntityLibraryScreenController in project tdme by andreasdr.

the class TDMELevelEditor method init.

/**
	 * Initialize tdme level editor
	 */
public void init(GLAutoDrawable drawable) {
    engine.init(drawable);
    // register gui to mouse, keyboard events
    glWindow.addMouseListener(engine.getGUI());
    glWindow.addKeyListener(engine.getGUI());
    // init off screen engine
    Tools.oseInit(drawable);
    // level editor model library screen controller
    levelEditorEntityLibraryScreenController = new LevelEditorEntityLibraryScreenController(popUps);
    levelEditorEntityLibraryScreenController.init();
    engine.getGUI().addScreen(levelEditorEntityLibraryScreenController.getScreenNode().getId(), levelEditorEntityLibraryScreenController.getScreenNode());
    // pop ups
    popUps.init();
    //
    levelEditorView = new LevelEditorView(popUps);
    levelEditorView.init();
    modelViewerView = new ModelViewerView(popUps);
    modelViewerView.init();
    triggerView = new TriggerView(popUps);
    triggerView.init();
    emptyView = new EmptyView(popUps);
    emptyView.init();
    particleSystemView = new ParticleSystemView(popUps);
    particleSystemView.init();
    // show up level editor view
    setView(levelEditorView);
}
Also used : ParticleSystemView(net.drewke.tdme.tools.leveleditor.views.ParticleSystemView) LevelEditorEntityLibraryScreenController(net.drewke.tdme.tools.leveleditor.controller.LevelEditorEntityLibraryScreenController) TriggerView(net.drewke.tdme.tools.leveleditor.views.TriggerView) ModelViewerView(net.drewke.tdme.tools.leveleditor.views.ModelViewerView) EmptyView(net.drewke.tdme.tools.leveleditor.views.EmptyView) LevelEditorView(net.drewke.tdme.tools.leveleditor.views.LevelEditorView)

Aggregations

LevelEditorEntityLibraryScreenController (net.drewke.tdme.tools.leveleditor.controller.LevelEditorEntityLibraryScreenController)1 EmptyView (net.drewke.tdme.tools.leveleditor.views.EmptyView)1 LevelEditorView (net.drewke.tdme.tools.leveleditor.views.LevelEditorView)1 ModelViewerView (net.drewke.tdme.tools.leveleditor.views.ModelViewerView)1 ParticleSystemView (net.drewke.tdme.tools.leveleditor.views.ParticleSystemView)1 TriggerView (net.drewke.tdme.tools.leveleditor.views.TriggerView)1