コード例 #1
0
        private void OnNewUIEvent(UIEvent uievent)       // UI event in, see if we want to hide.  UI events come before any onNew
        {
            EliteDangerousCore.UIEvents.UIPosition up = uievent as EliteDangerousCore.UIEvents.UIPosition;

            if (up != null)
            {
                if (up.Location.ValidPosition)
                {
                    latitude  = up.Location.Latitude;
                    longitude = up.Location.Longitude;
                    altitude  = up.Location.Altitude;
                    heading   = up.Heading;
                    DisplayCompass();
                }
                else
                {
                    latitude = longitude = heading = altitude = null;
                    DisplayCompass();
                }
            }

            var gui = uievent as EliteDangerousCore.UIEvents.UIGUIFocus;

            if (gui != null)
            {
                uistate = gui.GUIFocus;
                DisplayCompass();
            }
        }
コード例 #2
0
        private void Discoveryform_OnNewUIEvent(UIEvent uievent)
        {
            EliteDangerousCore.UIEvents.UIGUIFocus gui = uievent as EliteDangerousCore.UIEvents.UIGUIFocus;

            if (gui != null)
            {
                bool refresh = gui.GUIFocus != uistate;
                uistate = gui.GUIFocus;

                if (refresh)
                {
                    DrawSystem(last_sys);
                }
            }
        }
コード例 #3
0
        private void Discoveryform_OnNewUIEvent(UIEvent uievent)
        {
            EliteDangerousCore.UIEvents.UIGUIFocus gui = uievent as EliteDangerousCore.UIEvents.UIGUIFocus;

            if (gui != null)
            {
                bool refresh = gui.GUIFocus != uistate;
                uistate = gui.GUIFocus;

                if (refresh)
                {
                    ControlVisibility();
                }
            }
        }
コード例 #4
0
        private void Discoveryform_OnNewUIEvent(UIEvent uievent)
        {
            EliteDangerousCore.UIEvents.UIGUIFocus gui = uievent as EliteDangerousCore.UIEvents.UIGUIFocus;

            if (gui != null)
            {
                bool refresh = gui.GUIFocus != uistate;
                uistate = gui.GUIFocus;

                System.Diagnostics.Debug.WriteLine("Surveyor UI event " + uistate);
                if (refresh)
                {
                    DrawSystem(last_sys);
                }
            }
        }
コード例 #5
0
        private void OnNewUIEvent(UIEvent uievent)       // UI event in, see if we want to hide.  UI events come before any onNew
        {
            EliteDangerousCore.UIEvents.UIGUIFocus gui = uievent as EliteDangerousCore.UIEvents.UIGUIFocus;

            if (gui != null)
            {
                bool refresh = gui.GUIFocus != uistate;
                uistate = gui.GUIFocus;

                //System.Diagnostics.Debug.WriteLine("UI event " + obj + " " + uistate + " shown " + shown);
                if (refresh)
                {
                    Display(current_historylist);
                }
            }
        }