if (e.getModifiers() == 18) { int tile = ((e.getX() / MapEditor.tileWidth) + scroll .getValue()) * (height + 1) + (e.getY() / MapEditor.tileHeight); net.starmen.pkhack.JHack.main.showModule(TileEditor.class, new int[] { getTset(), getPal(), tile }); } else { int mousex = e.getX(); int mousey = e.getY(); setSelected(mousex, mousey);
int tile = ((e.getX() / MapEditor.tileWidth) + scroll .getValue()) * (height + 1) + (e.getY() / MapEditor.tileHeight); if (e.isShiftDown()) if (mode == 3) net.starmen.pkhack.JHack.main.showModule( EnemyPlacementGroupsEditor.class, new Integer(tile)); else net.starmen.pkhack.JHack.main.showModule(TileEditor.class, new int[] { getTset(), getPal(), tile }); else if ((mode != 3) || (tile < EnemyPlacementGroupsEditor.ENEMY_GROUPS_COUNT)) { setSelected(e.getX(), e.getY());
		public void mouseClicked(MouseEvent e) {			if ((e.getButton() == 1) && isEnabled()) {				if (e.getModifiers() == 18) {					int tile = ((e.getX() / MapEditor.tileWidth) + scroll							.getValue())							* (height + 1) + (e.getY() / MapEditor.tileHeight);					net.starmen.pkhack.JHack.main.showModule(TileEditor.class,							new int[] { getTset(), getPal(), tile });				} else {					int mousex = e.getX();					int mousey = e.getY();					setSelected(mousex, mousey);					repaint();					this.fireActionPerformed(new ActionEvent(this,					//        ActionEvent.ACTION_PERFORMED, this.getActionCommand()));							ActionEvent.ACTION_PERFORMED, "tile chosen"));				}			}		}