Esempio n. 1
0
 private void EnableDashBoard()
 {
     //Debug.Log(CategoryTitle);
     dashboard.GetComponent <Image>().CrossFadeAlpha(1f, 0.3f, false);
     CategoryTitle.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     Overview.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     Inventory.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     Config.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     Save.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     Load.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     Exit.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     Language.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     GraphicsQuality.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     TextureQuality.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     FoV.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     QualityValue.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     GQ_LeftArrow.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     GQ_RightArrow.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     LDD_Label.GetComponent <Text>().CrossFadeAlpha(1f, 0.3f, false);
     DashboardStatus = true;
 }
Esempio n. 2
0
 private void DisableDashBoard()
 {
     dashboard.GetComponent <Image>().CrossFadeAlpha(0.01f, 0.3f, false);
     CategoryTitle.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     Overview.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     Inventory.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     Config.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     Save.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     Load.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     Exit.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     PlayedTime.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     Reputation.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     Language.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     GraphicsQuality.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     TextureQuality.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     FoV.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     QualityValue.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     GQ_LeftArrow.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     GQ_RightArrow.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     LDD_Label.GetComponent <Text>().CrossFadeAlpha(0.01f, 0.3f, false);
     LDD_Arrow.GetComponent <Image>().CrossFadeAlpha(0.01f, 0.3f, false);
     SetUICategoryContent(44);
     DashboardStatus = false;
 }
Esempio n. 3
0
    private void SetUICategoryContent(int Category)
    {
        switch (Category)
        {
        default:
            PlayedTime.SetActive(true);
            Reputation.SetActive(true);
            Language.SetActive(false);
            GraphicsQuality.SetActive(false);
            TextureQuality.SetActive(false);
            FoV.SetActive(false);
            GQ_LeftArrow.SetActive(false);
            GQ_RightArrow.SetActive(false);
            LDD.SetActive(false);
            FoVSliderValue.SetActive(false);
            break;

        case 1:
            PlayedTime.SetActive(true);
            Reputation.SetActive(true);
            Language.SetActive(false);
            GraphicsQuality.SetActive(false);
            TextureQuality.SetActive(false);
            FoV.SetActive(false);
            GQ_LeftArrow.SetActive(false);
            GQ_RightArrow.SetActive(false);
            LDD.SetActive(false);
            FoVSliderValue.SetActive(false);
            break;

        case 2:
            PlayedTime.SetActive(false);
            Reputation.SetActive(false);
            Language.SetActive(true);
            GraphicsQuality.SetActive(true);
            TextureQuality.SetActive(true);
            FoV.SetActive(true);
            GQ_LeftArrow.SetActive(true);
            GQ_RightArrow.SetActive(true);
            LDD.SetActive(true);
            FoVSliderValue.SetActive(true);
            break;

        case 3:
            PlayedTime.SetActive(false);
            Reputation.SetActive(false);
            Language.SetActive(false);
            GraphicsQuality.SetActive(false);
            TextureQuality.SetActive(false);
            FoV.SetActive(false);
            GQ_LeftArrow.SetActive(false);
            GQ_RightArrow.SetActive(false);
            LDD.SetActive(false);
            FoVSliderValue.SetActive(false);
            break;

        case 4:
            PlayedTime.SetActive(false);
            Reputation.SetActive(false);
            Language.SetActive(false);
            GraphicsQuality.SetActive(false);
            TextureQuality.SetActive(false);
            FoV.SetActive(false);
            GQ_LeftArrow.SetActive(false);
            GQ_RightArrow.SetActive(false);
            LDD.SetActive(false);
            FoVSliderValue.SetActive(false);
            break;

        case 5:
            PlayedTime.SetActive(false);
            Reputation.SetActive(false);
            Language.SetActive(false);
            GraphicsQuality.SetActive(false);
            TextureQuality.SetActive(false);
            FoV.SetActive(false);
            GQ_LeftArrow.SetActive(false);
            GQ_RightArrow.SetActive(false);
            LDD.SetActive(false);
            break;

        case 44:
            PlayedTime.SetActive(false);
            Reputation.SetActive(false);
            Language.SetActive(false);
            GraphicsQuality.SetActive(false);
            TextureQuality.SetActive(false);
            FoV.SetActive(false);
            GQ_LeftArrow.SetActive(false);
            GQ_RightArrow.SetActive(false);
            LDD.SetActive(false);
            FoVSliderValue.SetActive(false);
            break;
        }
    }