void EnableGroup(MyDevelopGroup group, bool enable)
 {
     foreach (var control in group.ControlList)
     {
         control.Visible = enable;
     }
 }
Example #2
0
        static MyGuiScreenDebugDeveloper()
        {
            RegisterScreensFromAssembly(Assembly.GetExecutingAssembly());
            RegisterScreensFromAssembly(MyPlugins.GameAssembly);
            RegisterScreensFromAssembly(MyPlugins.UserAssembly);

            s_developGroups.Add(s_debugInputGroup.Name, s_debugInputGroup);

            var e = s_developGroups.Values.GetEnumerator();

            e.MoveNext();
            s_activeDevelopGroup = e.Current;
        }
        void OnClickMainGroup(MyGuiControlButton sender)
        {
            EnableGroup(s_activeMainGroup, false);

            foreach (MyDevelopGroup mainGroup in s_mainGroups)
            {
                if (mainGroup.GroupControl == sender)
                {
                    s_activeMainGroup = mainGroup;
                    break;
                }
            }

            EnableGroup(s_activeMainGroup, true);
        }
        void OnClickGroup(MyGuiControlButton sender)
        {
            EnableGroup(s_activeDevelopGroup, false);

            foreach (MyDevelopGroup developerGroup in s_developGroups.Values)
            {
                if (developerGroup.GroupControl == sender)
                {
                    s_activeDevelopGroup = developerGroup;
                    break;
                }
            }

            EnableGroup(s_activeDevelopGroup, true);
        }
        void OnClickGroup(MyGuiControlButton sender)
        {
            EnableGroup(s_activeGroup.Item2, false);

            foreach (MyDevelopGroup developerGroup in s_developerGroups)
            {
                if (developerGroup.Item1 == sender)
                {
                    s_activeGroup = developerGroup;
                    break;
                }
            }

            EnableGroup(s_activeGroup.Item2, true);
        }
Example #6
0
        static MyGuiScreenDebugDeveloper()
        {
#if XB1 // XB1_ALLINONEASSEMBLY
            RegisterScreensFromAssembly(MyAssembly.AllInOneAssembly);
#else // !XB1
            RegisterScreensFromAssembly(Assembly.GetExecutingAssembly());
            RegisterScreensFromAssembly(MyPlugins.GameAssembly);
            RegisterScreensFromAssembly(MyPlugins.SandboxAssembly);
            RegisterScreensFromAssembly(MyPlugins.UserAssembly);
#endif // !XB1

            s_developGroups.Add(s_debugInputGroup.Name, s_debugInputGroup);

            var e = s_developGroups.Values.GetEnumerator();
            e.MoveNext();
            s_activeDevelopGroup = e.Current;
        }
 void EnableGroup(MyDevelopGroup group, bool enable)
 {
     foreach (var control in group.ControlList)
         control.Visible = enable;
 }
        void OnClickMainGroup(MyGuiControlButton sender)
        {
            EnableGroup(s_activeMainGroup, false);

            foreach (MyDevelopGroup mainGroup in s_mainGroups)
            {
                if (mainGroup.GroupControl == sender)
                {
                    s_activeMainGroup = mainGroup;
                    break;
                }
            }

            EnableGroup(s_activeMainGroup, true);
        }
        void OnClickGroup(MyGuiControlButton sender)
        {
            EnableGroup(s_activeDevelopGroup, false);

            foreach (MyDevelopGroup developerGroup in s_developGroups.Values)
            {
                if (developerGroup.GroupControl == sender)
                {
                    s_activeDevelopGroup = developerGroup;
                    break;
                }
            }

            EnableGroup(s_activeDevelopGroup, true);
        }
        static MyGuiScreenDebugDeveloper()
        {
            RegisterScreensFromAssembly(Assembly.GetExecutingAssembly());
            RegisterScreensFromAssembly(MyPlugins.GameAssembly);
            RegisterScreensFromAssembly(MyPlugins.UserAssembly);

            s_developGroups.Add(s_debugInputGroup.Name, s_debugInputGroup);

            var e = s_developGroups.Values.GetEnumerator();
            e.MoveNext();
            s_activeDevelopGroup = e.Current;
        }
        void OnClickGroup(MyGuiControlButton sender)
        {
            EnableGroup(s_activeGroup.Item2, false);

            foreach (MyDevelopGroup developerGroup in s_developerGroups)
            {
                if (developerGroup.Item1 == sender)
                {
                    s_activeGroup = developerGroup;
                    break;
                }
            }

            EnableGroup(s_activeGroup.Item2, true);
        }