public override void Bindingeventstobtn() { returnbtn.onClick.AddListener(() => { Uistack.Getinstance().Return(); }); }
public override void Bindingeventstobtn() { close.onClick.AddListener(() => { FindObjectOfType <Imagetargettracker>().targetdata.Releaseinstantiatedtarget(); if (Uistack.Getinstance().Getcurdepth() > 2) { Cloudrecoeventhandler.Getinstance().Stopscanning(); // Uimanager.Getinstance().Addblackfade(true,null); Uistack.Getinstance().Return(2); FindObjectOfType <Detaildescriptionview>().detailsetup.enabled = true; } else { Cloudrecoeventhandler.Getinstance().Restartscanning(); Updateviewstatus(Viewstatus.SHOW); } }); back.onClick.AddListener(() => { Cloudrecoeventhandler.Getinstance().Stopscanning(); Uistack.Getinstance().Return(2); }); dropdown.onClick.AddListener(() => Onclickdropdown()); dropup.onClick.AddListener(() => Onclickdropup()); Takephotoorrecord.Getinstance().Recording.onrecorded = Onrecorded; Takephotoorrecord.Getinstance().Recording.onrecording = Updaterecordingprogress; }
public override void Bindingeventstobtn() { back.onClick.AddListener(() => { Uistack.Getinstance().Return(2); }); cleancach.onClick.AddListener(() => { Caching.CleanCache(); Calculaterspaceoccupied(); }); aboutbtn.onClick.AddListener(() => { Baseview show = Uimanager.Getinstance().Getviewfromviewid(typeof(Aboutview).Name); Uistack.Getinstance().Openview(show, Viewstatus.SHOW); }); histroy.onClick.AddListener(() => { Baseview show = Uimanager.Getinstance().Getviewfromviewid(typeof(Histroyview).Name); Uistack.Getinstance().Openview(show, Viewstatus.SHOW); }); favorite.onClick.AddListener(() => { Baseview show = Uimanager.Getinstance().Getviewfromviewid(typeof(Favoriteview).Name); Uistack.Getinstance().Openview(show, Viewstatus.SHOW); }); }
public override void Bindingeventstobtn() { back.onClick.AddListener(() => { Uistack.Getinstance().Return(); }); callback = Creathistroyitem; }
public override void Bindingeventstobtn() { //show case view 返回至首页 returnbtn.onClick.AddListener(() => { Uistack.Getinstance().Return(2); getdatas = Getdatas.GETTING; }); }
public override void Bindingeventstobtn() { // Baseview hide = Uimanager.Getinstance().Getviewfromviewid(typeof(Showcaseview).Name); returnbtn.onClick.AddListener(() => { Uistack.Getinstance().Return(); }); }
private void Viewop() { //界面之间的逻辑切换 Baseview scanview = Uimanager.Getinstance().Getviewfromviewid(typeof(Scanview).Name); Baseview caseview = Uimanager.Getinstance().Getviewfromviewid(typeof(Showcaseview).Name); Baseview detailview = Uimanager.Getinstance().Getviewfromviewid(typeof(Detaildescriptionview).Name); Uistack.Getinstance().Openview(caseview, Viewstatus.HIDE); Uistack.Getinstance().Openview(detailview, Viewstatus.HIDE); Uistack.Getinstance().Openview(scanview, Viewstatus.HIDE); }
public override void Bindingeventstobtn() { //需要隐藏的界面 Baseview hide = Uimanager.Getinstance().Getviewfromviewid(typeof(Mainview).Name); //打开showcase view Baseview showcaseview = Uimanager.Getinstance().Getviewfromviewid(typeof(Showcaseview).Name); showcase.onClick.AddListener(() => { Uistack.Getinstance().Openview(showcaseview, Viewstatus.SHOW); Uistack.Getinstance().Openview(hide, Viewstatus.SHOW); }); //打开menu view Baseview menuview = Uimanager.Getinstance().Getviewfromviewid(typeof(Menuview).Name); menu.onClick.AddListener(() => { Uistack.Getinstance().Openview(menuview, Viewstatus.SHOW); Uistack.Getinstance().Openview(hide, Viewstatus.SHOW); }); //打开scan view Baseview scanview = Uimanager.Getinstance().Getviewfromviewid(typeof(Scanview).Name); gotoscan.onClick.AddListener(() => { Cloudrecoeventhandler.Getinstance().Restartscanning(); Uistack.Getinstance().Openview(scanview, Viewstatus.SHOW); Uistack.Getinstance().Openview(hide, Viewstatus.SHOW); }); }
/// <summary> /// 添加按钮事件-下载资源/呈现资源 /// </summary> public void Addfuntobtn() { Uistack.Getinstance().Openview(detaildescriptionview, Viewstatus.SHOW); Setupdetails(); }