Exemplo n.º 1
0
 private void OnInputDeviceChange(MenuSystem.eInputDeviceType deviceType)
 {
     if (deviceType == MenuSystem.eInputDeviceType.Mouse)
     {
         list.transitionDuration = 0.5f;
     }
     else
     {
         list.transitionDuration = 0.25f;
     }
 }
Exemplo n.º 2
0
    private void UpdateLegendGlyphs(MenuSystem.eInputDeviceType deviceType)
    {
        switch (deviceType)
        {
        case MenuSystem.eInputDeviceType.Controller:
        {
            TextMeshProUGUI textMeshProUGUI5 = playGlyph;
            float           num = playGlyphInitialFontSize;
            restartGlyph.fontSize = num;
            num = num;
            backGlyph.fontSize        = num;
            textMeshProUGUI5.fontSize = num;
            TextMeshProUGUI textMeshProUGUI6 = playGlyph;
            Color           blue             = Color.black;
            restartGlyph.color = blue;
            blue                   = blue;
            backGlyph.color        = blue;
            textMeshProUGUI6.color = blue;
            playGlyph.text         = "\u20fd\n";
            backGlyph.text         = "\u20fe\n";
            restartGlyph.text      = "℈\n";
            break;
        }

        case MenuSystem.eInputDeviceType.Keyboard:
        {
            TextMeshProUGUI textMeshProUGUI3 = playGlyph;
            float           num = playGlyphInitialFontSize * 0.6f;
            restartGlyph.fontSize = num;
            num = num;
            backGlyph.fontSize        = num;
            textMeshProUGUI3.fontSize = num;
            TextMeshProUGUI textMeshProUGUI4 = playGlyph;
            Color           blue             = Color.blue;
            restartGlyph.color = blue;
            blue                   = blue;
            backGlyph.color        = blue;
            textMeshProUGUI4.color = blue;
            playGlyph.text         = CreateBracketedKeyGlyph("F");
            backGlyph.text         = CreateBracketedKeyGlyph("ESC");
            restartGlyph.text      = CreateBracketedKeyGlyph("R");
            break;
        }

        case MenuSystem.eInputDeviceType.Mouse:
        {
            TextMeshProUGUI textMeshProUGUI = playGlyph;
            float           num             = playGlyphInitialFontSize * 0.6f;
            restartGlyph.fontSize = num;
            num = num;
            backGlyph.fontSize       = num;
            textMeshProUGUI.fontSize = num;
            TextMeshProUGUI textMeshProUGUI2 = playGlyph;
            Color           blue             = Color.blue;
            restartGlyph.color = blue;
            blue                   = blue;
            backGlyph.color        = blue;
            textMeshProUGUI2.color = blue;
            playGlyph.text         = CreateBracketedKeyGlyph(ScriptLocalization.Get("MENU.LEVELSELECT/LMB"));
            backGlyph.text         = CreateBracketedKeyGlyph("ESC");
            restartGlyph.text      = CreateBracketedKeyGlyph(ScriptLocalization.Get("MENU.LEVELSELECT/RMB"));
            break;
        }
        }
    }
Exemplo n.º 3
0
 private void OnInputDeviceChanged(MenuSystem.eInputDeviceType deviceType)
 {
     UpdateLegendGlyphs(deviceType);
 }