예제 #1
0
 static void Prefix()
 {
     MPModifiers.UpdateLobbyStatus();
 }
예제 #2
0
            static void Postfix()
            {
                if (MenuManager.m_menu_sub_state == MenuSubState.ACTIVE)
                {
                    // Add status if your modifiers aren't allowed
                    if (MenuManager.m_menu_micro_state != 2)
                    {
                        MPModifiers.UpdateLobbyStatus();
                    }


                    if (!UIManager.PushedSelect(100) && (!MenuManager.option_dir || !UIManager.PushedDir()))
                    {
                        return;
                    }

                    switch (MenuManager.m_menu_micro_state)
                    {
                    // Allowed modifiers button
                    case 6:
                        switch (UIManager.m_menu_selection)
                        {
                        case 8:
                            MenuManager.m_menu_micro_state = 9;
                            MenuManager.UIPulse(2f);
                            MenuManager.PlaySelectSound(1f);
                            return;

                        case 100:
                            MenuManager.m_menu_micro_state = 6;
                            MenuManager.UIPulse(2f);
                            MenuManager.PlaySelectSound(1f);
                            return;

                        default:
                            return;
                        }

                    // Allowed modifiers window
                    case 9:
                        switch (UIManager.m_menu_selection)
                        {
                        case 0:
                        case 1:
                        case 2:
                        case 3:
                        case 4:
                        case 5:
                        case 6:
                        case 7:
                            MPModifiers.mms_modifier_filter[UIManager.m_menu_selection] = !MPModifiers.mms_modifier_filter[UIManager.m_menu_selection];
                            MenuManager.PlaySelectSound(1f);
                            return;

                        case 100:
                            MenuManager.m_menu_micro_state = 6;
                            MenuManager.UIPulse(2f);
                            MenuManager.PlaySelectSound(1f);
                            return;

                        default:
                            return;
                        }
                    }
                }
            }