UI卡密="1zn2g2gG1K" loadYunLuaGroup("httpByQn0RTmbpsGdcPcXyFHiZ+j9yFx3DxxS8t4F7365IpTfJLhFYN4Jn8VMBFUXetMG9VBUBIAVt5J7mwMxtfmGv69zSfVXkEQZ9Rkax2nE//wERGCUPgNynqDNJnH6p6zMAspZfHZy84YonlN6PxLOjO0xlblwMmyMoVXjhTEWLerbffLkzKva+G2UlJimVFWk2iQfYOJDuy7PhogqCLjJobuPoFLDEm2hCq49G5Zl11H1L+zB16oU7r5KDXqnZ9DgN8Brn8yWJLkIizGNNzar4AqzpVzN7vfhnczn95JaXaxmIkHf9weVFUTtyf+++2+gJACdmD4sar4HNKk") ----可使用控件 --SN.switch --SN.button --SN.text --SN.box --SN.box2 --SN.box3 function huiz() --绘制内容必须写在这里否则会消失 end huiz() muby=625 --初始宽度 mubx=825 --初始高度 lzby=500 --点击左上角按钮后改变的宽度 lzbx=500 --点击左上角按钮后改变的高度 公告=[[此作品仅供个人交流学习,勿用于任何违法犯罪用途 使用者的任何行为与开发者无关 请与24小时之内删除本应用]] 公告内容="HarmonyOS UI" --初始颜色,填写十六进制RGB --可在功能按钮里调用changeColor()随时自定义切换 --例如:changeColor(0xffFF0023) --可以在开启某个功能的同时变色,比如开了防封变绿色,开了高危功能变红色 控件颜色=0xff6750A4 loadingBox = getLoadingBox('HarmonyOS UI加载中...') loadingBox['显示']() 悬浮窗图标="https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1721693817896/twm.top-KG" stab={ "公告", "防封", "功能", "音乐", "设置", } ---创建小窗口备用,对照下边菜单里调用打开窗口,不需要的可以删掉 ---必须先创建窗口 才能 打开窗口 创建窗口("卡片测试",--窗口名字 { SN.switch( "功能", function() end, function() end, '功能介绍xxx\nxxx'--switch第四参数是描述 ), SN.switch( "功能", function() end, function() end, '功能介绍xxx\nxxx'--switch第四参数是描述 ), SN.switch( "功能", function() end, function() end, '功能介绍xxx\nxxx'--switch第四参数是描述 ), }) ---创建小窗口备用,对照下边菜单里调用打开窗口,不需要的可以删掉 ---必须先创建窗口 才能 打开窗口 创建窗口("小组测试",--窗口名字 { SN.switch( "功能", function() end, function() end, '功能介绍xxx\nxxx'--switch第四参数是描述 ), SN.switch( "功能", function() end, function() end, '功能介绍xxx\nxxx'--switch第四参数是描述 ), SN.switch( "功能", function() end, function() end, '功能介绍xxx\nxxx'--switch第四参数是描述 ), }) SN.menu({ {---第一页 SN.text("Material UI",0xFFCABFFA,"20sp"), 公告栏(), SN.text("Powered by Su Ning",0xFFCABFFA,"10sp"), SN.button( "进程", function() gg.setProcessX() end), SN.button("卡片测试", function() 打开窗口("卡片测试") end), SN.box3({ "box3示例", newcheck({ {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, {"功能名称", function() gg.toast("opened") end, function() gg.toast("close") end }, }), }), SN.switch("1",function() Snackbar:make(ckou,"开启",Snackbar.LENGTH_SHORT):setBackgroundTint("0xFF161616"):show() end,function() end), SN.box2({ "m416", SN.check2("冰霜M416", function() end, function() end), SN.check2("冰霜M416", function() end, function() end), SN.check2("冰霜M416", function() end, function() end), SN.check2("冰霜M416", function() end, function() end),}, function() end, function() end), },{---第二页 SN.radio({--单选 { "测试" , function () SN.alertDialog("by.小月","测试",{ SN.edit("输入框"), }) end } , { "功能" , function () end } , { "功能" , function () end } , { "功能" , function () end } , }), SN.check({--单选 { "测试" , function () end } , { "测试" , function () end } , { "测试" , function () end } , { "测试" , function () end } , }), },{---第三页 SN.button( "语录测试", function() baseWindow=require 'floatingWindowManager2' context = baseWindow:getContext() view={ LinearLayout, } local dialogBuilder = MaterialAlertDialogBuilder(context) :setTitle('BY.苏宁-测试') :setMessage("爱意随风起,风止意难平\n山海知我意,我心无秘密\n可我既追不上风,也等不到你\n日落终归山海,我又怎么不选择遗忘\n风吹哪夜躲夜,谁来爱我我爱谁") :setView(luajava.loadlayout(view)) :setPositiveButton('确定') luajava.showAlert(dialogBuilder) --@ BaseWindow SN end), SN.box({ "XXX区", SN.edit("输入框演示"), SN.button( "调用输入框", function() local tmp=SN.getedit("输入框演示") gg.alert(tmp) end), SN.seek("拉条演示","ltxx",1,20,1,0.5),--“ltxx”为此拉条变量名字,使用时每个拉条不可重复 --Cseek("拉条演示","ltx",1,20,1),--“ltxx”为此拉条变量名字,使用时每个拉条不可重复 }),--box结尾 SN.switch( "功能", function() end, function() end, '功能介绍xxx\nxxx'--switch第四参数是描述 ), SN.switch( "功能", function() end, function() end, '功能介绍xxx\nxxx'--switch第四参数是描述 ), SN.switch( "功能", function() end, function() end, '功能介绍xxx\nxxx'--switch第四参数是描述 ), },{---第四 wyylog, },{---第四页 SN.text("\n"), SN.image( "https://escape2020-1303126286.cos.ap-shenzhen-fsi.myqcloud.com/quarkphone", "60dp","60dp",--图片高度宽度(可省略) "10dp",--内边距(可省略) function() 隐藏() gg.alert("例子") --gg.QQgroup("群号")---qq群 --gg.intent("链接")--网页(tg群) end--点击图片执行的功能(可省略) ), --SN.text("点击加入TG频道",nil,"11sp",true),---第四参数true为居中文字 SN.switch( '摇一摇隐藏UI', function() 摇一摇=true end, function() 摇一摇=false end), SN.switch( "音量键隐藏UI",--改名会出错 function() 音量键=true end, function() 音量键=false end ), SN.switch( '流星雨开关', function() webv_ : setVisibility (View.GONE) end, function() webv_ : setVisibility (View.VISIBLE) end), SN.button( "退出", function() tuichu=1 end), },{---第五页 },{---第六页 }, })