示例#1
0
        public FilterOverlay()
        {
            // loading styles
            mTextures.CreateTextures();
            Button       = GUITextureButtonFactory.CreateFromFilename("texButton");
            ButtonGray   = GUITextureButtonFactory.CreateFromFilename("texButtonGray");
            ButtonGreen  = GUITextureButtonFactory.CreateFromFilename("texButtonGreen");
            ButtonRed    = GUITextureButtonFactory.CreateFromFilename("texButtonRed");
            ButtonYellow = GUITextureButtonFactory.CreateFromFilename("texButtonYellow");

            GameEvents.onPlanetariumTargetChanged.Add(OnChangeTarget);
            GameEvents.onHideUI.Add(OnHideUI);
            GameEvents.onShowUI.Add(OnShowUI);
            MapView.OnEnterMapView += OnEnterMapView;
            MapView.OnExitMapView  += OnExitMapView;
            // Add the on mouse over event
            mAntennaFragment.onMouseOverListEntry += showTargetInfo;

            WindowAlign targetInfoAlign = WindowAlign.TopLeft;

            if (this.onTrackingStation)
            {
                // switch to the other side if we are at the trackingStation
                targetInfoAlign = WindowAlign.TopRight;
            }

            // Create a new Targetinfo window with a fixed position to the antenna fragment
            mTargetInfos = new TargetInfoWindow(PositionAntenna, targetInfoAlign);
        }
示例#2
0
 public AntennaWindow(IAntenna antenna)
     : base(Guid, "Antenna Configuration", new Rect(100, 100, 300, 500), WindowAlign.Floating)
 {
     mSavePosition = true;
     mSetAntenna = antenna;
     mTargetInfos = new TargetInfoWindow(this, WindowAlign.Floating);
 }
        public FilterOverlay()
        {
            // loading styles
            mTextures.CreateTextures();
            Button = GUITextureButtonFactory.CreateFromFilename("texButton");
            ButtonGray = GUITextureButtonFactory.CreateFromFilename("texButtonGray");
            ButtonGreen = GUITextureButtonFactory.CreateFromFilename("texButtonGreen");
            ButtonRed = GUITextureButtonFactory.CreateFromFilename("texButtonRed");
            ButtonYellow = GUITextureButtonFactory.CreateFromFilename("texButtonYellow");

            GameEvents.onPlanetariumTargetChanged.Add(OnChangeTarget);
            GameEvents.onHideUI.Add(OnHideUI);
            GameEvents.onShowUI.Add(OnShowUI);
            MapView.OnEnterMapView += OnEnterMapView;
            MapView.OnExitMapView += OnExitMapView;
            // Add the on mouse over event
            mAntennaFragment.onMouseOverListEntry += showTargetInfo;

            WindowAlign targetInfoAlign = WindowAlign.TopLeft;
            if (this.onTrackingStation)
            {
                // switch to the other side if we are at the trackingStation
                targetInfoAlign = WindowAlign.TopRight;
            }

            // Create a new Targetinfo window with a fixed position to the antenna fragment
            mTargetInfos = new TargetInfoWindow(PositionAntenna, targetInfoAlign);
        }
示例#4
0
 public AntennaWindow(IAntenna antenna)
     : base(Guid, "Antenna Configuration", new Rect(100, 100, 300, 500), WindowAlign.Floating)
 {
     mSavePosition = true;
     mSetAntenna   = antenna;
     mTargetInfos  = new TargetInfoWindow(this, WindowAlign.Floating);
 }
示例#5
0
        public FilterOverlay()
        {
            GameEvents.onPlanetariumTargetChanged.Add(OnChangeTarget);
            GameEvents.onHideUI.Add(OnHideUI);
            GameEvents.onShowUI.Add(OnShowUI);
            MapView.OnEnterMapView += OnEnterMapView;
            MapView.OnExitMapView  += OnExitMapView;
            /// Add the on mouse over event
            mAntennaFragment.onMouseOverListEntry += showTargetInfo;

            WindowAlign targetInfoAlign = WindowAlign.TopLeft;

            if (this.onTrackingStation)
            {
                // switch to the other side if we are at the trackingStation
                targetInfoAlign = WindowAlign.TopRight;
            }

            /// Create a new Targetinfo window with a fixed position to the antenna fragment
            mTargetInfos = new TargetInfoWindow(PositionAntenna, targetInfoAlign);
        }