mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-04-18 10:42:58 +08:00
Deploying to gh-pages from @ VickScarlet/lifeRestart@8f46e286dd 🚀
This commit is contained in:
1
public/assets/themes-UgHWmOmS.js
Normal file
1
public/assets/themes-UgHWmOmS.js
Normal file
@@ -0,0 +1 @@
|
||||
class a extends ui.view.ThemesUI{constructor(){super(),this.btnClose.on(Laya.Event.CLICK,this,()=>this.close()),this.btnOK.on(Laya.Event.CLICK,this,async()=>{const t=this.selected;if(!t==$ui.theme)return this.close();$ui.theme=t,await this.close(),$ui.switchView(UI.pages.MAIN)})}static load(){return["images/atlas/images/radio.atlas"]}init(){this.selected=localStorage.getItem("theme")}get selected(){switch(this.radioTheme.selectedIndex){case 0:return"cyber";case 1:return"dark";case 2:return"light";default:return"default"}}set selected(t){let e;switch(t){case"cyber":e=0;break;case"dark":e=1;break;case"light":e=2;break;default:e=-1;break}this.radioTheme.selectedIndex=e}}export{a as default};
|
||||
Reference in New Issue
Block a user