Esempio n. 1
0
        public override void WindowUI()
        {
            GUILayout.BeginVertical();

            scrollPositionTrackings = GUILayout.BeginScrollView(scrollPositionTrackings, false, false, RmmStyle.Instance.HoriScrollBarStyle, RmmStyle.Instance.VertiScrollBarStyle, GUILayout.Width(200), GUILayout.Height(WINDOW_HEIGHT));

            if (ActiveTrackings != null && ActiveTrackings.Count != 0)
            {
                foreach (Tracking tracking in ActiveTrackings)
                {
                    GUILayout.BeginHorizontal();
                    GUILayout.Label(tracking.MissionName, RmmStyle.Instance.LabelStyle, GUILayout.Width(150));
                    if (GUILayout.Button(">", RmmStyle.Instance.ButtonStyle, GUILayout.Width(20), GUILayout.Height(22)))
                    {
                        _trackingControl.TrackingDetail(tracking.Mission, this, vesselTracking: tracking);
                    }
                    GUILayout.EndHorizontal();

                    GUILayout.Label(tracking.VesselName, RmmStyle.Instance.LabelStyle, GUILayout.Width(180));

                    GUILayout.Label(tracking.Status, RmmStyle.Instance.LabelStyle, GUILayout.Width(90));

                    GUILayout.Label("", RmmStyle.Instance.LabelStyle, GUILayout.Width(60));
                }
            }

            GUILayout.EndScrollView();

            GUILayout.EndVertical();
        }
Esempio n. 2
0
        public override void WindowUI()
        {
            GUILayout.BeginVertical();

            scrollPositionMissions = GUILayout.BeginScrollView(scrollPositionMissions, false, false, RmmStyle.Instance.HoriScrollBarStyle, RmmStyle.Instance.VertiScrollBarStyle, GUILayout.Width(390), GUILayout.Height(500));

            if (MissionItems != null)
            {
                GUILayout.BeginHorizontal();
                GUILayout.Label("Type", RmmStyle.Instance.LabelStyle, GUILayout.Width(80));
                GUILayout.Label("Name", RmmStyle.Instance.LabelStyle, GUILayout.Width(150));
                GUILayout.EndHorizontal();
                foreach (MissionItem missionItem in MissionItems)
                {
                    GUILayout.BeginHorizontal();
                    GUILayout.Label(missionItem.Mission.Info.Type.ToString(), RmmStyle.Instance.LabelStyle, GUILayout.Width(80));
                    GUILayout.Label(missionItem.Mission.Info.Name.ToString(), RmmStyle.Instance.LabelStyle, GUILayout.Width(150));
                    GUILayout.Label(missionItem.ValidCheckList.CheckSucces ? "Valid" : "Invalid", RmmStyle.Instance.LabelStyle, GUILayout.Width(80));
                    if (GUILayout.Button(">", RmmStyle.Instance.ButtonStyle, GUILayout.Width(20), GUILayout.Height(20)))
                    {
                        _trackingControl.TrackingDetail(missionItem.Mission, this);
                    }
                    GUILayout.EndHorizontal();
                }
            }


            GUILayout.EndScrollView();

            GUILayout.EndVertical();
        }