123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class SysSizeView : BaseView
- {
- public GameObject viewOpen;
- public GameObject viewClose;
- public Text textName;
- private SysSizeConfig ssc;
- public override void init(int i, BaseConfig c, int vi)
- {
- base.init(i, c, vi);
- ssc = (SysSizeConfig)c;
- textName.text = ssc.text;
- viewOpen.SetActive(!ssc.isChoose);
- viewClose.SetActive(ssc.isChoose);
- }
- public void chooseView()
- {
- switch(viewIndex)
- {
- case 0:
- CustomInfo.mWidth = 1920;
- CustomInfo.mHight = 1080;
- break;
- case 1:
- CustomInfo.mWidth = 1280;
- CustomInfo.mHight = 720;
- break;
- case 2:
- CustomInfo.mWidth = 640;
- CustomInfo.mHight = 360;
- break;
- }
- CustomInfo.mWidth = 1920;
- CustomInfo.mHight = 1080;
- CustomInfo.camIndex = viewIndex + 1;
- baselist.updateConfig(CustomInfo.sscList);
- }
- }
|