Exemplo n.º 1
0
        public TrainingPanel(EmoEngineManager emoEngineParam, EdkDll.EE_CognitivAction_t trainingActionParam)
        {
            emoEngine           = emoEngineParam;
            trainingAction      = trainingActionParam;
            VerticalAlignment   = VerticalAlignment.Center;
            HorizontalAlignment = HorizontalAlignment.Center;
            Orientation         = Orientation.Vertical;
            Margin      = new Vector4F(20);
            RenderScale = new Vector2F(1.5f);

            switch (trainingActionParam)
            {
            case EdkDll.EE_CognitivAction_t.COG_NEUTRAL:
                Name = "Neutral";
                break;

            case EdkDll.EE_CognitivAction_t.COG_PULL:
                Name = "Backward";
                break;

            case EdkDll.EE_CognitivAction_t.COG_PUSH:
                Name = "Forward";
                break;

            case EdkDll.EE_CognitivAction_t.COG_LEFT:
                Name = "Turn Left";
                break;

            case EdkDll.EE_CognitivAction_t.COG_RIGHT:
                Name = "Turn Right";
                break;
            }

            Initialize();
        }
Exemplo n.º 2
0
 public MainPanel(EmoEngineManager emoEngineParam)
 {
     this.emoEngine      = emoEngineParam;
     VerticalAlignment   = VerticalAlignment.Center;
     HorizontalAlignment = HorizontalAlignment.Center;
     Orientation         = Orientation.Horizontal;
     Initialize();
 }
Exemplo n.º 3
0
        public ContactQuality(EmoEngineManager emoEngineParam)
        {
            emoEngine           = emoEngineParam;
            HorizontalAlignment = HorizontalAlignment.Center;
            VerticalAlignment   = VerticalAlignment.Center;

            Initialize();
        }
Exemplo n.º 4
0
 public ContactQualityWindow(EmoEngineManager emoEngineParam)
 {
     emoEngine         = emoEngineParam;
     VerticalAlignment = VerticalAlignment.Stretch;
     Title             = "Contact Quality";
     HideOnClose       = false;
     CanDrag           = false;
     Initialize();
 }
Exemplo n.º 5
0
 public Settings(EmoEngineManager emoEngineParam)
 {
     emoEngine         = emoEngineParam;
     VerticalAlignment = VerticalAlignment.Stretch;
     Title             = "Settings";
     HideOnClose       = false;
     CanDrag           = false;
     Initialize();
 }
Exemplo n.º 6
0
 public LoadUser(EmoEngineManager emoEngine)
 {
     this.emoEngine      = emoEngine;
     IsModal             = true;
     Title               = "Load User";
     HideOnClose         = false;
     VerticalAlignment   = VerticalAlignment.Center;
     HorizontalAlignment = HorizontalAlignment.Center;
     Initialize();
     CloseButtonStyle = "";
 }
Exemplo n.º 7
0
 public MainComponent(Game game)
     : base(game)
 {
     // Get the required services from the game's service provider.
     _inputService     = (IInputService)game.Services.GetService(typeof(IInputService));
     _uiService        = (IUIService)game.Services.GetService(typeof(IUIService));
     _animationService = (IAnimationService)game.Services.GetService(typeof(IAnimationService));
     Content           = Game.Content;
     _emoEngine        = new EmoEngineManager();
     _emoEngine.StartEmoEngine();
 }
Exemplo n.º 8
0
 public ControlPanel(EmoEngineManager emoEngine)
 {
     this.emoEngine = emoEngine;
     Initialize();
 }