Package org.jdesktop.wonderland.client.cell.view

Examples of org.jdesktop.wonderland.client.cell.view.AvatarCell$AvatarActionTrigger


    public static AvatarImiJME getPrimaryAvatarRenderer() {
        // Fetch the primary view cell, make sure it is an avatar and then get
        // its cell renderer.
        ViewCell cell = ClientContextJME.getViewManager().getPrimaryViewCell();
        if (cell instanceof AvatarCell) {
            AvatarCell avatarCell = (AvatarCell) cell;
            return (AvatarImiJME) avatarCell.getCellRenderer(ClientContext.getRendererType());
        }
        return null;
    }
View Full Code Here


        LoadingInfo.finishedLoading(cell.getCellID(), newAvatar.getName());
       
        //--added for sitting problem when user logs in--//
        //check If there is an existing avatar character
        if(flg==0) {
            AvatarCell acell = (AvatarCell) cell;
            MovableAvatarComponent mac = (MovableAvatarComponent) acell.getComponent(MovableComponent.class);
            //check if avatar has trigger value of sitting
            if(mac.getServerTrigger()==15) {
                avatarCharacter.getContext().triggerPressed(mac.getServerTrigger());
    }
        }
View Full Code Here

                ContextMenuInvocationSettings settings = event.getSettings();
                settings.setDisplayStandard(false);
                settings.setDisplayCellStandard(false);

                AvatarCell cell = (AvatarCell) event.getPrimaryCell();
                settings.setMenuName(cell.getIdentity().getUsername());

                // if this is our avatar, add the configuration menu
                if (cell == ViewManager.getViewManager().getPrimaryViewCell()) {
                    settings.addTempFactory(new ConfigureContextMenuFactory());
                }
View Full Code Here

                if (!(event.getPrimaryCell() instanceof AvatarCell)) {
                    return;
                }

                ContextMenuInvocationSettings settings = event.getSettings();
                AvatarCell cell = (AvatarCell) event.getPrimaryCell();

                // if this is our avatar, add the configuration menu
                if (cell != ViewManager.getViewManager().getPrimaryViewCell()) {
                    settings.addTempFactory(new AudioContextMenuFactory(cell));
                }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.cell.view.AvatarCell$AvatarActionTrigger

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.