Package org.jdesktop.wonderland.modules.avatarbase.client.jme.cellrenderer

Examples of org.jdesktop.wonderland.modules.avatarbase.client.jme.cellrenderer.AvatarCollisionChangeRequestEvent


        collisionResponseEnabledMI.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                boolean isCollisionResponse = collisionResponseEnabledMI.isSelected();
                boolean isGravity = gravityEnabledMI.isSelected();
                ClientContext.getInputManager().postEvent(
                        new AvatarCollisionChangeRequestEvent(isCollisionResponse, isGravity));
            }
        });

        // Check box to set gravity (floor following) enabled
        gravityEnabledMI = new JCheckBoxMenuItem(bundle.getString("Avatar_Gravity_Enabled"));
        gravityEnabledMI.setSelected(true); // TODO should be set by server
        gravityEnabledMI.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                boolean isCollisionResponse = collisionResponseEnabledMI.isSelected();
                boolean isGravity = gravityEnabledMI.isSelected();
                ClientContext.getInputManager().postEvent(
                        new AvatarCollisionChangeRequestEvent(isCollisionResponse, isGravity));
            }
        });

        ctxListener = new ContextMenuListener() {
            public void contextMenuDisplayed(ContextMenuEvent event) {
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.avatarbase.client.jme.cellrenderer.AvatarCollisionChangeRequestEvent

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.