Examples of AvatarCell


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

    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

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

        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

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

                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

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

                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
Copyright © 2018 www.massapi.com. 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.