Beispiel #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();
            }
        }
        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);
                }
            }
        }
Beispiel #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();
                }
            }
        }
Beispiel #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);
                }
            }
        }
Beispiel #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);
                }
            }
        }