private void setMainEditorUI() { editorPanel = new EditorUIPanel(gamePanel.getMap()); base.add(editorPanel); MouseListener edit = new MainEditorMouseListener(gamePanel, editorPanel.activePanel.getShowCase()); gamePanel.addMouseListener(edit); base.add(gamePanel); MouseListener select = new ObjectPickerListener(editorPanel.activePanel.getShowCase(), editorPanel.playerItems); ((CategoryGameObjectPickerPanel) editorPanel.walls).getPicker().addMouseListener(select); ((CategoryGameObjectPickerPanel) editorPanel.items).getPicker().addMouseListener(select); ((CategoryGameObjectPickerPanel) editorPanel.player).getPicker().addMouseListener(select); ((CategoryGameObjectPickerPanel) editorPanel.special).getPicker().addMouseListener(select); }
public Map getMap() { return gamePanel.getMap(); }