点击登录
  • 📢 主要更新维护已完成 点击展开 ▼
    以下功能仍需注意🔔 / 不可用🚫
    1. 付款功能可用,支付后需手动刷新方可查看购买后内容(后续修复),若出现未到账情况请及时发起工单进行处理
    2. 部分页面未完成汉化。
    如果你遇到任何其他问题/BUG🛠️ 请通过 https://wj.qq.com/s2/15351411/ad2a/ 向我们反馈
  • 米坛百万注册特别活动
    了解详情

米环7小程序 熒光棒修改版

基於@zqx666的熒光棒加以修改
JavaScript:
try {

  (() => {

    var e = __$$hmAppManager$$__.currentApp;

    var t = e.current,

      { px: o } =

        (new DeviceRuntimeCore.WidgetFactory(

          new DeviceRuntimeCore.HmDomApi(e, t)

        ),

        e.app.__globals__);

try {

  (() => {

    var e = __$$hmAppManager$$__.currentApp,

    t = e.current;

  new DeviceRuntimeCore.WidgetFactory(

    new DeviceRuntimeCore.HmDomApi(e, t),

    "drink"

  );

DeviceRuntimeCore.HmLogger.getLogger("sanjiao");

t.module = DeviceRuntimeCore.Page({

    init_view() {

      hmUI.setLayerScrolling(false);



      var fps=hmFS.SysProGetInt('fps')

      if(fps>=1&fps<=40){

      fps=hmFS.SysProGetInt('fps');

      }

      else{

      hmFS.SysProSetInt('fps', 20)

      fps=hmFS.SysProGetInt('fps');

      }

      var bol=hmFS.SysProGetInt('bol')

      if(bol==1){

      bol=hmFS.SysProGetInt('bol');

      }

      else{

      hmFS.SysProSetInt('bol', 0)

      bol=hmFS.SysProGetInt('bol');

      }

      var light=hmSetting.getBrightness();

      hmFS.SysProSetInt('light', light)

      var lightbool=0;

      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})

      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})

      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入关于界面\n@zqx666 bandbbs.cn"})

      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})

hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 10,

      y: 100,

      text: '一',

      w: 35,

      h: 35,

      click_func: () => {

        if(fps>1){

        if(fps>10) fps=fps-1;

       else fps=fps-1;

}

else{

hmUI.showToast({

      text: '不能再少了,兄弟'

    })

}

hmFS.SysProSetInt('fps', fps)

         hmUI.createWidget(hmUI.widget.FILL_RECT, {

      x: 70,

      y: 100,

      w: 50,

      h: 50,

      radius: 0,

      color: 0x000000

    })

              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})

 

      }

    })

hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 147,

      y: 100,

      text: '十',

      w: 35,

      h: 35,

      click_func: () => {

        if(fps<100){

        if(fps<10) fps=fps+1;

       else fps=fps+1;

}

else{

hmUI.showToast({

      text: '不能再多了,兄弟'

    })

}

hmFS.SysProSetInt('fps', fps)

         hmUI.createWidget(hmUI.widget.FILL_RECT, {

      x: 70,

      y: 100,

      w: 50,

      h: 50,

      radius: 0,

      color: 0x000000

    })

              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})

 

      }

    })

hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 0,

      y: 170,

      text: '亮度调\n节&恢复',

      w: 75,

      h: 75,

      radius: 20,

      normal_color: 0x0072e3,

      press_color: 0x97cbff,

      click_func: () => {

      if(lightbool==0){

      hmSetting.setBrightness(100)

      hmUI.showToast({

      text: '亮度已调到最大'

    })

      lightbool=1;

      }

      else{

      hmSetting.setBrightness(light)

      hmUI.showToast({

      text: '亮度已恢复到'+light+'%'

    })

      lightbool=0;

      }



      }

    })

hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 117,

      y: 170,

      text: '持续亮\n屏设置',

      w: 75,

      h: 75,

      radius: 20,

      normal_color: 0x0072e3,

      press_color: 0x97cbff,

      click_func: () => {

      hmSetting.setBrightness(light)

      if(bol==1){

      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})

      }

else{

hmApp.gotoPage({

                    url: "page/192x490_s_l66/index.page4",

                    param: "..."

                });

}

      }

    })

hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 0,

      y: 287,

      text: '彩色',

      w: 75,

      h: 75,

      radius: 20,

      normal_color: 0x0072e3,

      press_color: 0x97cbff,

      click_func: () => {

hmApp.gotoPage({

                    url: "page/192x490_s_l66/index.page2",

                    param: "..."

                });

      }

    })

    hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 117,

      y: 287,

      text: '黑白',

      w: 75,

      h: 75,

      radius: 20,

      normal_color: 0x0072e3,

      press_color: 0x97cbff,

            click_func: () => {

hmApp.gotoPage({

                    url: "page/192x490_s_l66/index.page3",

                    param: "..."

                });

      }

    })

hmApp.registerGestureEvent(function (event) {

        switch (event) {

            case hmApp.gesture.LEFT:

            hmSetting.setBrightness(light);

                hmApp.gotoPage({

                    url: "page/192x490_s_l66/index.page6",

                    param: "..."

                });

       

                break;

            case hmApp.gesture.RIGHT:

                hmSetting.setBrightness(light);

                break;

        }

    })

    },

    onInit() {

      console.log("index page.js on init invoke"), this.init_view();

    },

    onReady() {

      console.log("index page.js on ready invoke");

    },

    onShow() {

      console.log("index page.js on show invoke");

    },

    onHide() {

      console.log("index page.js on hide invoke");

    },

    onDestory() {

      console.log("index page.js on destory invoke");

    }

  });

})();

} catch (e) {

console.log(e);

}

})();

} catch (e) {

console.log(e);

}
以上

這一行要修改if(fps>=1&fps<=40){
JavaScript:
if(fps>=1&fps<=100){

第2版制作完成
已解決進入黑屏(如果你想要環間小鏡子😂)請警急更新2.1版
第2.1版制作完成
(我要繼續肝他)
期待3.0版
第3.0版制作完成
牛啊
 
基於@zqx666的熒光棒加以修改
JavaScript:
try {

  (() => {

    var e = __$$hmAppManager$$__.currentApp;

    var t = e.current,

      { px: o } =

        (new DeviceRuntimeCore.WidgetFactory(

          new DeviceRuntimeCore.HmDomApi(e, t)

        ),

        e.app.__globals__);

try {

  (() => {

    var e = __$$hmAppManager$$__.currentApp,

    t = e.current;

  new DeviceRuntimeCore.WidgetFactory(

    new DeviceRuntimeCore.HmDomApi(e, t),

    "drink"

  );

DeviceRuntimeCore.HmLogger.getLogger("sanjiao");

t.module = DeviceRuntimeCore.Page({

    init_view() {

      hmUI.setLayerScrolling(false);



      var fps=hmFS.SysProGetInt('fps')

      if(fps>=1&fps<=40){

      fps=hmFS.SysProGetInt('fps');

      }

      else{

      hmFS.SysProSetInt('fps', 20)

      fps=hmFS.SysProGetInt('fps');

      }

      var bol=hmFS.SysProGetInt('bol')

      if(bol==1){

      bol=hmFS.SysProGetInt('bol');

      }

      else{

      hmFS.SysProSetInt('bol', 0)

      bol=hmFS.SysProGetInt('bol');

      }

      var light=hmSetting.getBrightness();

      hmFS.SysProSetInt('light', light)

      var lightbool=0;

      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})

      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})

      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入关于界面\n@zqx666 bandbbs.cn"})

      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})

hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 10,

      y: 100,

      text: '一',

      w: 35,

      h: 35,

      click_func: () => {

        if(fps>1){

        if(fps>10) fps=fps-1;

       else fps=fps-1;

}

else{

hmUI.showToast({

      text: '不能再少了,兄弟'

    })

}

hmFS.SysProSetInt('fps', fps)

         hmUI.createWidget(hmUI.widget.FILL_RECT, {

      x: 70,

      y: 100,

      w: 50,

      h: 50,

      radius: 0,

      color: 0x000000

    })

              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})

 

      }

    })

hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 147,

      y: 100,

      text: '十',

      w: 35,

      h: 35,

      click_func: () => {

        if(fps<100){

        if(fps<10) fps=fps+1;

       else fps=fps+1;

}

else{

hmUI.showToast({

      text: '不能再多了,兄弟'

    })

}

hmFS.SysProSetInt('fps', fps)

         hmUI.createWidget(hmUI.widget.FILL_RECT, {

      x: 70,

      y: 100,

      w: 50,

      h: 50,

      radius: 0,

      color: 0x000000

    })

              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})

 

      }

    })

hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 0,

      y: 170,

      text: '亮度调\n节&恢复',

      w: 75,

      h: 75,

      radius: 20,

      normal_color: 0x0072e3,

      press_color: 0x97cbff,

      click_func: () => {

      if(lightbool==0){

      hmSetting.setBrightness(100)

      hmUI.showToast({

      text: '亮度已调到最大'

    })

      lightbool=1;

      }

      else{

      hmSetting.setBrightness(light)

      hmUI.showToast({

      text: '亮度已恢复到'+light+'%'

    })

      lightbool=0;

      }



      }

    })

hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 117,

      y: 170,

      text: '持续亮\n屏设置',

      w: 75,

      h: 75,

      radius: 20,

      normal_color: 0x0072e3,

      press_color: 0x97cbff,

      click_func: () => {

      hmSetting.setBrightness(light)

      if(bol==1){

      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})

      }

else{

hmApp.gotoPage({

                    url: "page/192x490_s_l66/index.page4",

                    param: "..."

                });

}

      }

    })

hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 0,

      y: 287,

      text: '彩色',

      w: 75,

      h: 75,

      radius: 20,

      normal_color: 0x0072e3,

      press_color: 0x97cbff,

      click_func: () => {

hmApp.gotoPage({

                    url: "page/192x490_s_l66/index.page2",

                    param: "..."

                });

      }

    })

    hmUI.createWidget(hmUI.widget.BUTTON, {

      x: 117,

      y: 287,

      text: '黑白',

      w: 75,

      h: 75,

      radius: 20,

      normal_color: 0x0072e3,

      press_color: 0x97cbff,

            click_func: () => {

hmApp.gotoPage({

                    url: "page/192x490_s_l66/index.page3",

                    param: "..."

                });

      }

    })

hmApp.registerGestureEvent(function (event) {

        switch (event) {

            case hmApp.gesture.LEFT:

            hmSetting.setBrightness(light);

                hmApp.gotoPage({

                    url: "page/192x490_s_l66/index.page6",

                    param: "..."

                });

      

                break;

            case hmApp.gesture.RIGHT:

                hmSetting.setBrightness(light);

                break;

        }

    })

    },

    onInit() {

      console.log("index page.js on init invoke"), this.init_view();

    },

    onReady() {

      console.log("index page.js on ready invoke");

    },

    onShow() {

      console.log("index page.js on show invoke");

    },

    onHide() {

      console.log("index page.js on hide invoke");

    },

    onDestory() {

      console.log("index page.js on destory invoke");

    }

  });

})();

} catch (e) {

console.log(e);

}

})();

} catch (e) {

console.log(e);

}
以上

這一行要修改if(fps>=1&fps<=40){
JavaScript:
if(fps>=1&fps<=100){

第2版制作完成
已解決進入黑屏(如果你想要環間小鏡子😂)請警急更新2.1版
第2.1版制作完成
(我要繼續肝他)
期待3.0版
第3.0版制作完成
荧光棒独立版第3.333修改版ok
 
基於@zqx666的熒光棒加以修改
JavaScript:
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp;
    var t = e.current,
      { px: o } =
        (new DeviceRuntimeCore.WidgetFactory(
          new DeviceRuntimeCore.HmDomApi(e, t)
        ),
        e.app.__globals__);
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp,
    t = e.current;
  new DeviceRuntimeCore.WidgetFactory(
    new DeviceRuntimeCore.HmDomApi(e, t),
    "drink"
  );
DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
t.module = DeviceRuntimeCore.Page({
    init_view() {
      hmUI.setLayerScrolling(false);

      var fps=hmFS.SysProGetInt('fps')
      if(fps>=1&fps<=100){
      fps=hmFS.SysProGetInt('fps');
      }
      else{
      hmFS.SysProSetInt('fps', 20)
      fps=hmFS.SysProGetInt('fps');
      }
      var bol=hmFS.SysProGetInt('bol')
      if(bol==1){
      bol=hmFS.SysProGetInt('bol');
      }
      else{
      hmFS.SysProSetInt('bol', 0)
      bol=hmFS.SysProGetInt('bol');
      }
      var light=hmSetting.getBrightness();
      hmFS.SysProSetInt('light', light)
      var lightbool=0;
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入第2頁\n@zqx666 bandbbs.cn"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 10,
      y: 100,
      text: '一',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps>1){
        if(fps>10) fps=fps-1;
       else fps=fps-1;
}
else{
hmUI.showToast({
      text: '不能再少了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 147,
      y: 100,
      text: '十',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps<100){
        if(fps<10) fps=fps+1;
       else fps=fps+1;
}
else{
hmUI.showToast({
      text: '不能再多了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 170,
      text: '亮度调\n节&恢复',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      if(lightbool==0){
      hmSetting.setBrightness(100)
      hmUI.showToast({
      text: '亮度已调到最大'
    })
      lightbool=1;
      }
      else{
      hmSetting.setBrightness(light)
      hmUI.showToast({
      text: '亮度已恢复到'+light+'%'
    })
      lightbool=0;
      }

      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 170,
      text: '持续亮\n屏设置',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      hmSetting.setBrightness(light)
      if(bol==1){
      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})
      }
else{
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page4",
     param: "..."
    });
}
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 287,
      text: '彩色',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page2",
     param: "..."
    });
      }
    })
    hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 287,
      text: '黑白',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
            click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page3",
     param: "..."
    });
      }
    })
hmApp.registerGestureEvent(function (event) {
  switch (event) {
   case hmApp.gesture.LEFT:
   hmSetting.setBrightness(light);
    hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page8",
     param: "..."
    });
   
    break;
   case hmApp.gesture.RIGHT:
    hmSetting.setBrightness(light);
    break;
  }
 })
    },
    onInit() {
      console.log("index page.js on init invoke"), this.init_view();
    },
    onReady() {
      console.log("index page.js on ready invoke");
    },
    onShow() {
      console.log("index page.js on show invoke");
    },
    onHide() {
      console.log("index page.js on hide invoke");
    },
    onDestory() {
      console.log("index page.js on destory invoke");
    }
  });
})();
} catch (e) {
console.log(e);
}
})();
} catch (e) {
console.log(e);
}
以上

這一行要修改if(fps>=1&fps<=40){
JavaScript:
if(fps>=1&fps<=100){

第2版制作完成
已解決進入黑屏(如果你想要環間小鏡子😂)請警急更新2.1版
第2.1版制作完成
(我要繼續肝他)
期待3.0版

第3.0版制作完成
第3.333版制作完成
第3.6版制作完成
6
 
基於@zqx666的熒光棒加以修改
JavaScript:
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp;
    var t = e.current,
      { px: o } =
        (new DeviceRuntimeCore.WidgetFactory(
          new DeviceRuntimeCore.HmDomApi(e, t)
        ),
        e.app.__globals__);
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp,
    t = e.current;
  new DeviceRuntimeCore.WidgetFactory(
    new DeviceRuntimeCore.HmDomApi(e, t),
    "drink"
  );
DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
t.module = DeviceRuntimeCore.Page({
    init_view() {
      hmUI.setLayerScrolling(false);

      var fps=hmFS.SysProGetInt('fps')
      if(fps>=1&fps<=100){
      fps=hmFS.SysProGetInt('fps');
      }
      else{
      hmFS.SysProSetInt('fps', 20)
      fps=hmFS.SysProGetInt('fps');
      }
      var bol=hmFS.SysProGetInt('bol')
      if(bol==1){
      bol=hmFS.SysProGetInt('bol');
      }
      else{
      hmFS.SysProSetInt('bol', 0)
      bol=hmFS.SysProGetInt('bol');
      }
      var light=hmSetting.getBrightness();
      hmFS.SysProSetInt('light', light)
      var lightbool=0;
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入第2頁\n@zqx666 bandbbs.cn"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 10,
      y: 100,
      text: '一',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps>1){
        if(fps>10) fps=fps-1;
       else fps=fps-1;
}
else{
hmUI.showToast({
      text: '不能再少了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 147,
      y: 100,
      text: '十',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps<100){
        if(fps<10) fps=fps+1;
       else fps=fps+1;
}
else{
hmUI.showToast({
      text: '不能再多了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 170,
      text: '亮度调\n节&恢复',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      if(lightbool==0){
      hmSetting.setBrightness(100)
      hmUI.showToast({
      text: '亮度已调到最大'
    })
      lightbool=1;
      }
      else{
      hmSetting.setBrightness(light)
      hmUI.showToast({
      text: '亮度已恢复到'+light+'%'
    })
      lightbool=0;
      }

      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 170,
      text: '持续亮\n屏设置',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      hmSetting.setBrightness(light)
      if(bol==1){
      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})
      }
else{
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page4",
     param: "..."
    });
}
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 287,
      text: '彩色',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page2",
     param: "..."
    });
      }
    })
    hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 287,
      text: '黑白',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
            click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page3",
     param: "..."
    });
      }
    })
hmApp.registerGestureEvent(function (event) {
  switch (event) {
   case hmApp.gesture.LEFT:
   hmSetting.setBrightness(light);
    hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page8",
     param: "..."
    });
   
    break;
   case hmApp.gesture.RIGHT:
    hmSetting.setBrightness(light);
    break;
  }
 })
    },
    onInit() {
      console.log("index page.js on init invoke"), this.init_view();
    },
    onReady() {
      console.log("index page.js on ready invoke");
    },
    onShow() {
      console.log("index page.js on show invoke");
    },
    onHide() {
      console.log("index page.js on hide invoke");
    },
    onDestory() {
      console.log("index page.js on destory invoke");
    }
  });
})();
} catch (e) {
console.log(e);
}
})();
} catch (e) {
console.log(e);
}
以上

這一行要修改if(fps>=1&fps<=40){
JavaScript:
if(fps>=1&fps<=100){

第2版制作完成
已解決進入黑屏(如果你想要環間小鏡子😂)請警急更新2.1版
第2.1版制作完成
(我要繼續肝他)
期待3.0版

第3.0版制作完成
第3.333版制作完成
第3.6版制作完成
666
 
基於@zqx666的熒光棒加以修改
JavaScript:
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp;
    var t = e.current,
      { px: o } =
        (new DeviceRuntimeCore.WidgetFactory(
          new DeviceRuntimeCore.HmDomApi(e, t)
        ),
        e.app.__globals__);
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp,
    t = e.current;
  new DeviceRuntimeCore.WidgetFactory(
    new DeviceRuntimeCore.HmDomApi(e, t),
    "drink"
  );
DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
t.module = DeviceRuntimeCore.Page({
    init_view() {
      hmUI.setLayerScrolling(false);

      var fps=hmFS.SysProGetInt('fps')
      if(fps>=1&fps<=100){
      fps=hmFS.SysProGetInt('fps');
      }
      else{
      hmFS.SysProSetInt('fps', 20)
      fps=hmFS.SysProGetInt('fps');
      }
      var bol=hmFS.SysProGetInt('bol')
      if(bol==1){
      bol=hmFS.SysProGetInt('bol');
      }
      else{
      hmFS.SysProSetInt('bol', 0)
      bol=hmFS.SysProGetInt('bol');
      }
      var light=hmSetting.getBrightness();
      hmFS.SysProSetInt('light', light)
      var lightbool=0;
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入第2頁\n@zqx666 bandbbs.cn"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 10,
      y: 100,
      text: '一',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps>1){
        if(fps>10) fps=fps-1;
       else fps=fps-1;
}
else{
hmUI.showToast({
      text: '不能再少了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 147,
      y: 100,
      text: '十',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps<100){
        if(fps<10) fps=fps+1;
       else fps=fps+1;
}
else{
hmUI.showToast({
      text: '不能再多了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 170,
      text: '亮度调\n节&恢复',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      if(lightbool==0){
      hmSetting.setBrightness(100)
      hmUI.showToast({
      text: '亮度已调到最大'
    })
      lightbool=1;
      }
      else{
      hmSetting.setBrightness(light)
      hmUI.showToast({
      text: '亮度已恢复到'+light+'%'
    })
      lightbool=0;
      }

      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 170,
      text: '持续亮\n屏设置',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      hmSetting.setBrightness(light)
      if(bol==1){
      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})
      }
else{
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page4",
     param: "..."
    });
}
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 287,
      text: '彩色',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page2",
     param: "..."
    });
      }
    })
    hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 287,
      text: '黑白',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
            click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page3",
     param: "..."
    });
      }
    })
hmApp.registerGestureEvent (функция (событие) {
  переключатель (событие) {
   case hmApp.gesture.LEFT:
   hmSetting.setBrightness(свет);
    hmApp.gotoPage({
     URL-адрес: "страница/192x490_s_l66/index.page8",
     параметр: "..."
    });
   
    ломать;
   case hmApp.gesture.RIGHT:
    hmSetting.setBrightness(свет);
    ломать;
  }
 })
    },
    onInit () {
      console.log("индексировать page.js при вызове инициализации"), this.init_view();
    },
    Готово () {
      console.log("индексировать page.js при готовности вызова");
    },
    на шоу () {
      console.log("индексировать page.js при вызове шоу");
    },
    скрыть() {
      console.log("индексировать page.js при скрытом вызове");
    },
    onDestory () {
      console.log("Индекс page.js при вызове уничтожения");
    }
  });
})();
} поймать (е) {
console.log(е);
}
})();
} поймать (е) {
console.log(е);
}[/КОД]
выше

Эту строку необходимо изменить, если (fps>=1&fps<=40){
》[CODE=javascript]if(fps>=1&fps<=100){

2-е издание завершено
Решено войти в черный экран (если хотите маленькое зеркальце между кольцами 😂) просьба срочно обновить версию 2.1
Версия 2.1 завершена
(Я собираюсь продолжать трахать его)
Жду версию 3.0

Производство версии 3.0 завершено
Версия 3.333 завершена
Версия 3.6 завершена
Топ
 

基於@zqx666的熒光棒加以修改
JavaScript:
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp;
    var t = e.current,
      { px: o } =
        (new DeviceRuntimeCore.WidgetFactory(
          new DeviceRuntimeCore.HmDomApi(e, t)
        ),
        e.app.__globals__);
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp,
    t = e.current;
  new DeviceRuntimeCore.WidgetFactory(
    new DeviceRuntimeCore.HmDomApi(e, t),
    "drink"
  );
DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
t.module = DeviceRuntimeCore.Page({
    init_view() {
      hmUI.setLayerScrolling(false);

      var fps=hmFS.SysProGetInt('fps')
      if(fps>=1&fps<=100){
      fps=hmFS.SysProGetInt('fps');
      }
      else{
      hmFS.SysProSetInt('fps', 20)
      fps=hmFS.SysProGetInt('fps');
      }
      var bol=hmFS.SysProGetInt('bol')
      if(bol==1){
      bol=hmFS.SysProGetInt('bol');
      }
      else{
      hmFS.SysProSetInt('bol', 0)
      bol=hmFS.SysProGetInt('bol');
      }
      var light=hmSetting.getBrightness();
      hmFS.SysProSetInt('light', light)
      var lightbool=0;
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入第2頁\n@zqx666 bandbbs.cn"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 10,
      y: 100,
      text: '一',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps>1){
        if(fps>10) fps=fps-1;
       else fps=fps-1;
}
else{
hmUI.showToast({
      text: '不能再少了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 147,
      y: 100,
      text: '十',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps<100){
        if(fps<10) fps=fps+1;
       else fps=fps+1;
}
else{
hmUI.showToast({
      text: '不能再多了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 170,
      text: '亮度调\n节&恢复',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      if(lightbool==0){
      hmSetting.setBrightness(100)
      hmUI.showToast({
      text: '亮度已调到最大'
    })
      lightbool=1;
      }
      else{
      hmSetting.setBrightness(light)
      hmUI.showToast({
      text: '亮度已恢复到'+light+'%'
    })
      lightbool=0;
      }

      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 170,
      text: '持续亮\n屏设置',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      hmSetting.setBrightness(light)
      if(bol==1){
      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})
      }
else{
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page4",
     param: "..."
    });
}
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 287,
      text: '彩色',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page2",
     param: "..."
    });
      }
    })
    hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 287,
      text: '黑白',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
            click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page3",
     param: "..."
    });
      }
    })
hmApp.registerGestureEvent(function (event) {
  switch (event) {
   case hmApp.gesture.LEFT:
   hmSetting.setBrightness(light);
    hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page8",
     param: "..."
    });
   
    break;
   case hmApp.gesture.RIGHT:
    hmSetting.setBrightness(light);
    break;
  }
 })
    },
    onInit() {
      console.log("index page.js on init invoke"), this.init_view();
    },
    onReady() {
      console.log("index page.js on ready invoke");
    },
    onShow() {
      console.log("index page.js on show invoke");
    },
    onHide() {
      console.log("index page.js on hide invoke");
    },
    onDestory() {
      console.log("index page.js on destory invoke");
    }
  });
})();
} catch (e) {
console.log(e);
}
})();
} catch (e) {
console.log(e);
}
以上

這一行要修改if(fps>=1&fps<=40){
JavaScript:
if(fps>=1&fps<=100){

第2版制作完成
已解決進入黑屏(如果你想要環間小鏡子😂)請警急更新2.1版
第2.1版制作完成
(我要繼續肝他)
期待3.0版

第3.0版制作完成
第3.333版制作完成
第3.6版制作完成
 
基於@zqx666的熒光棒加以修改
JavaScript:
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp;
    var t = e.current,
      { px: o } =
        (new DeviceRuntimeCore.WidgetFactory(
          new DeviceRuntimeCore.HmDomApi(e, t)
        ),
        e.app.__globals__);
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp,
    t = e.current;
  new DeviceRuntimeCore.WidgetFactory(
    new DeviceRuntimeCore.HmDomApi(e, t),
    "drink"
  );
DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
t.module = DeviceRuntimeCore.Page({
    init_view() {
      hmUI.setLayerScrolling(false);

      var fps=hmFS.SysProGetInt('fps')
      if(fps>=1&fps<=100){
      fps=hmFS.SysProGetInt('fps');
      }
      else{
      hmFS.SysProSetInt('fps', 20)
      fps=hmFS.SysProGetInt('fps');
      }
      var bol=hmFS.SysProGetInt('bol')
      if(bol==1){
      bol=hmFS.SysProGetInt('bol');
      }
      else{
      hmFS.SysProSetInt('bol', 0)
      bol=hmFS.SysProGetInt('bol');
      }
      var light=hmSetting.getBrightness();
      hmFS.SysProSetInt('light', light)
      var lightbool=0;
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入第2頁\n@zqx666 bandbbs.cn"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 10,
      y: 100,
      text: '一',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps>1){
        if(fps>10) fps=fps-1;
       else fps=fps-1;
}
else{
hmUI.showToast({
      text: '不能再少了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 147,
      y: 100,
      text: '十',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps<100){
        if(fps<10) fps=fps+1;
       else fps=fps+1;
}
else{
hmUI.showToast({
      text: '不能再多了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 170,
      text: '亮度调\n节&恢复',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      if(lightbool==0){
      hmSetting.setBrightness(100)
      hmUI.showToast({
      text: '亮度已调到最大'
    })
      lightbool=1;
      }
      else{
      hmSetting.setBrightness(light)
      hmUI.showToast({
      text: '亮度已恢复到'+light+'%'
    })
      lightbool=0;
      }

      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 170,
      text: '持续亮\n屏设置',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      hmSetting.setBrightness(light)
      if(bol==1){
      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})
      }
else{
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page4",
     param: "..."
    });
}
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 287,
      text: '彩色',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page2",
     param: "..."
    });
      }
    })
    hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 287,
      text: '黑白',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
            click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page3",
     param: "..."
    });
      }
    })
hmApp.registerGestureEvent(function (event) {
  switch (event) {
   case hmApp.gesture.LEFT:
   hmSetting.setBrightness(light);
    hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page8",
     param: "..."
    });
   
    break;
   case hmApp.gesture.RIGHT:
    hmSetting.setBrightness(light);
    break;
  }
 })
    },
    onInit() {
      console.log("index page.js on init invoke"), this.init_view();
    },
    onReady() {
      console.log("index page.js on ready invoke");
    },
    onShow() {
      console.log("index page.js on show invoke");
    },
    onHide() {
      console.log("index page.js on hide invoke");
    },
    onDestory() {
      console.log("index page.js on destory invoke");
    }
  });
})();
} catch (e) {
console.log(e);
}
})();
} catch (e) {
console.log(e);
}
以上

這一行要修改if(fps>=1&fps<=40){
JavaScript:
if(fps>=1&fps<=100){

第2版制作完成
已解決進入黑屏(如果你想要環間小鏡子😂)請警急更新2.1版
第2.1版制作完成
(我要繼續肝他)
期待3.0版

第3.0版制作完成
第3.333版制作完成
第3.6版制作完成
lll
基於@zqx666的熒光棒加以修改
JavaScript:
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp;
    var t = e.current,
      { px: o } =
        (new DeviceRuntimeCore.WidgetFactory(
          new DeviceRuntimeCore.HmDomApi(e, t)
        ),
        e.app.__globals__);
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp,
    t = e.current;
  new DeviceRuntimeCore.WidgetFactory(
    new DeviceRuntimeCore.HmDomApi(e, t),
    "drink"
  );
DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
t.module = DeviceRuntimeCore.Page({
    init_view() {
      hmUI.setLayerScrolling(false);

      var fps=hmFS.SysProGetInt('fps')
      if(fps>=1&fps<=100){
      fps=hmFS.SysProGetInt('fps');
      }
      else{
      hmFS.SysProSetInt('fps', 20)
      fps=hmFS.SysProGetInt('fps');
      }
      var bol=hmFS.SysProGetInt('bol')
      if(bol==1){
      bol=hmFS.SysProGetInt('bol');
      }
      else{
      hmFS.SysProSetInt('bol', 0)
      bol=hmFS.SysProGetInt('bol');
      }
      var light=hmSetting.getBrightness();
      hmFS.SysProSetInt('light', light)
      var lightbool=0;
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入第2頁\n@zqx666 bandbbs.cn"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 10,
      y: 100,
      text: '一',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps>1){
        if(fps>10) fps=fps-1;
       else fps=fps-1;
}
else{
hmUI.showToast({
      text: '不能再少了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 147,
      y: 100,
      text: '十',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps<100){
        if(fps<10) fps=fps+1;
       else fps=fps+1;
}
else{
hmUI.showToast({
      text: '不能再多了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 170,
      text: '亮度调\n节&恢复',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      if(lightbool==0){
      hmSetting.setBrightness(100)
      hmUI.showToast({
      text: '亮度已调到最大'
    })
      lightbool=1;
      }
      else{
      hmSetting.setBrightness(light)
      hmUI.showToast({
      text: '亮度已恢复到'+light+'%'
    })
      lightbool=0;
      }

      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 170,
      text: '持续亮\n屏设置',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      hmSetting.setBrightness(light)
      if(bol==1){
      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})
      }
else{
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page4",
     param: "..."
    });
}
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 287,
      text: '彩色',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page2",
     param: "..."
    });
      }
    })
    hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 287,
      text: '黑白',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
            click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page3",
     param: "..."
    });
      }
    })
hmApp.registerGestureEvent(function (event) {
  switch (event) {
   case hmApp.gesture.LEFT:
   hmSetting.setBrightness(light);
    hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page8",
     param: "..."
    });
   
    break;
   case hmApp.gesture.RIGHT:
    hmSetting.setBrightness(light);
    break;
  }
 })
    },
    onInit() {
      console.log("index page.js on init invoke"), this.init_view();
    },
    onReady() {
      console.log("index page.js on ready invoke");
    },
    onShow() {
      console.log("index page.js on show invoke");
    },
    onHide() {
      console.log("index page.js on hide invoke");
    },
    onDestory() {
      console.log("index page.js on destory invoke");
    }
  });
})();
} catch (e) {
console.log(e);
}
})();
} catch (e) {
console.log(e);
}
以上

這一行要修改if(fps>=1&fps<=40){
JavaScript:
if(fps>=1&fps<=100){

第2版制作完成
已解決進入黑屏(如果你想要環間小鏡子😂)請警急更新2.1版
第2.1版制作完成
(我要繼續肝他)
期待3.0版

第3.0版制作完成
第3.333版制作完成
第3.6版制作完成
lllllll
 
基於@zqx666的熒光棒加以修改
JavaScript:
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp;
    var t = e.current,
      { px: o } =
        (new DeviceRuntimeCore.WidgetFactory(
          new DeviceRuntimeCore.HmDomApi(e, t)
        ),
        e.app.__globals__);
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp,
    t = e.current;
  new DeviceRuntimeCore.WidgetFactory(
    new DeviceRuntimeCore.HmDomApi(e, t),
    "drink"
  );
DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
t.module = DeviceRuntimeCore.Page({
    init_view() {
      hmUI.setLayerScrolling(false);

      var fps=hmFS.SysProGetInt('fps')
      if(fps>=1&fps<=100){
      fps=hmFS.SysProGetInt('fps');
      }
      else{
      hmFS.SysProSetInt('fps', 20)
      fps=hmFS.SysProGetInt('fps');
      }
      var bol=hmFS.SysProGetInt('bol')
      if(bol==1){
      bol=hmFS.SysProGetInt('bol');
      }
      else{
      hmFS.SysProSetInt('bol', 0)
      bol=hmFS.SysProGetInt('bol');
      }
      var light=hmSetting.getBrightness();
      hmFS.SysProSetInt('light', light)
      var lightbool=0;
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入第2頁\n@zqx666 bandbbs.cn"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 10,
      y: 100,
      text: '一',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps>1){
        if(fps>10) fps=fps-1;
       else fps=fps-1;
}
else{
hmUI.showToast({
      text: '不能再少了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 147,
      y: 100,
      text: '十',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps<100){
        if(fps<10) fps=fps+1;
       else fps=fps+1;
}
else{
hmUI.showToast({
      text: '不能再多了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 170,
      text: '亮度调\n节&恢复',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      if(lightbool==0){
      hmSetting.setBrightness(100)
      hmUI.showToast({
      text: '亮度已调到最大'
    })
      lightbool=1;
      }
      else{
      hmSetting.setBrightness(light)
      hmUI.showToast({
      text: '亮度已恢复到'+light+'%'
    })
      lightbool=0;
      }

      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 170,
      text: '持续亮\n屏设置',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      hmSetting.setBrightness(light)
      if(bol==1){
      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})
      }
else{
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page4",
     param: "..."
    });
}
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 287,
      text: '彩色',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page2",
     param: "..."
    });
      }
    })
    hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 287,
      text: '黑白',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
            click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page3",
     param: "..."
    });
      }
    })
hmApp.registerGestureEvent(function (event) {
  switch (event) {
   case hmApp.gesture.LEFT:
   hmSetting.setBrightness(light);
    hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page8",
     param: "..."
    });
   
    break;
   case hmApp.gesture.RIGHT:
    hmSetting.setBrightness(light);
    break;
  }
 })
    },
    onInit() {
      console.log("index page.js on init invoke"), this.init_view();
    },
    onReady() {
      console.log("index page.js on ready invoke");
    },
    onShow() {
      console.log("index page.js on show invoke");
    },
    onHide() {
      console.log("index page.js on hide invoke");
    },
    onDestory() {
      console.log("index page.js on destory invoke");
    }
  });
})();
} catch (e) {
console.log(e);
}
})();
} catch (e) {
console.log(e);
}
以上

這一行要修改if(fps>=1&fps<=40){
JavaScript:
if(fps>=1&fps<=100){

第2版制作完成
已解決進入黑屏(如果你想要環間小鏡子😂)請警急更新2.1版
第2.1版制作完成
(我要繼續肝他)
期待3.0版

第3.0版制作完成
第3.333版制作完成
第3.6版制作完成
厉害啊
 
基於@zqx666的熒光棒加以修改
JavaScript:
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp;
    var t = e.current,
      { px: o } =
        (new DeviceRuntimeCore.WidgetFactory(
          new DeviceRuntimeCore.HmDomApi(e, t)
        ),
        e.app.__globals__);
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp,
    t = e.current;
  new DeviceRuntimeCore.WidgetFactory(
    new DeviceRuntimeCore.HmDomApi(e, t),
    "drink"
  );
DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
t.module = DeviceRuntimeCore.Page({
    init_view() {
      hmUI.setLayerScrolling(false);

      var fps=hmFS.SysProGetInt('fps')
      if(fps>=1&fps<=100){
      fps=hmFS.SysProGetInt('fps');
      }
      else{
      hmFS.SysProSetInt('fps', 20)
      fps=hmFS.SysProGetInt('fps');
      }
      var bol=hmFS.SysProGetInt('bol')
      if(bol==1){
      bol=hmFS.SysProGetInt('bol');
      }
      else{
      hmFS.SysProSetInt('bol', 0)
      bol=hmFS.SysProGetInt('bol');
      }
      var light=hmSetting.getBrightness();
      hmFS.SysProSetInt('light', light)
      var lightbool=0;
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入第2頁\n@zqx666 bandbbs.cn"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 10,
      y: 100,
      text: '一',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps>1){
        if(fps>10) fps=fps-1;
       else fps=fps-1;
}
else{
hmUI.showToast({
      text: '不能再少了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 147,
      y: 100,
      text: '十',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps<100){
        if(fps<10) fps=fps+1;
       else fps=fps+1;
}
else{
hmUI.showToast({
      text: '不能再多了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 170,
      text: '亮度调\n节&恢复',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      if(lightbool==0){
      hmSetting.setBrightness(100)
      hmUI.showToast({
      text: '亮度已调到最大'
    })
      lightbool=1;
      }
      else{
      hmSetting.setBrightness(light)
      hmUI.showToast({
      text: '亮度已恢复到'+light+'%'
    })
      lightbool=0;
      }

      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 170,
      text: '持续亮\n屏设置',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      hmSetting.setBrightness(light)
      if(bol==1){
      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})
      }
else{
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page4",
     param: "..."
    });
}
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 287,
      text: '彩色',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page2",
     param: "..."
    });
      }
    })
    hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 287,
      text: '黑白',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
            click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page3",
     param: "..."
    });
      }
    })
hmApp.registerGestureEvent(function (event) {
  switch (event) {
   case hmApp.gesture.LEFT:
   hmSetting.setBrightness(light);
    hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page8",
     param: "..."
    });
   
    break;
   case hmApp.gesture.RIGHT:
    hmSetting.setBrightness(light);
    break;
  }
 })
    },
    onInit() {
      console.log("index page.js on init invoke"), this.init_view();
    },
    onReady() {
      console.log("index page.js on ready invoke");
    },
    onShow() {
      console.log("index page.js on show invoke");
    },
    onHide() {
      console.log("index page.js on hide invoke");
    },
    onDestory() {
      console.log("index page.js on destory invoke");
    }
  });
})();
} catch (e) {
console.log(e);
}
})();
} catch (e) {
console.log(e);
}
以上

這一行要修改if(fps>=1&fps<=40){
JavaScript:
if(fps>=1&fps<=100){

第2版制作完成
已解決進入黑屏(如果你想要環間小鏡子😂)請警急更新2.1版
第2.1版制作完成
(我要繼續肝他)
期待3.0版

第3.0版制作完成
第3.333版制作完成
第3.6版制作完成
 
基於@zqx666的熒光棒加以修改
JavaScript:
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp;
    var t = e.current,
      { px: o } =
        (new DeviceRuntimeCore.WidgetFactory(
          new DeviceRuntimeCore.HmDomApi(e, t)
        ),
        e.app.__globals__);
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp,
    t = e.current;
  new DeviceRuntimeCore.WidgetFactory(
    new DeviceRuntimeCore.HmDomApi(e, t),
    "drink"
  );
DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
t.module = DeviceRuntimeCore.Page({
    init_view() {
      hmUI.setLayerScrolling(false);

      var fps=hmFS.SysProGetInt('fps')
      if(fps>=1&fps<=100){
      fps=hmFS.SysProGetInt('fps');
      }
      else{
      hmFS.SysProSetInt('fps', 20)
      fps=hmFS.SysProGetInt('fps');
      }
      var bol=hmFS.SysProGetInt('bol')
      if(bol==1){
      bol=hmFS.SysProGetInt('bol');
      }
      else{
      hmFS.SysProSetInt('bol', 0)
      bol=hmFS.SysProGetInt('bol');
      }
      var light=hmSetting.getBrightness();
      hmFS.SysProSetInt('light', light)
      var lightbool=0;
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入第2頁\n@zqx666 bandbbs.cn"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 10,
      y: 100,
      text: '一',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps>1){
        if(fps>10) fps=fps-1;
       else fps=fps-1;
}
else{
hmUI.showToast({
      text: '不能再少了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 147,
      y: 100,
      text: '十',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps<100){
        if(fps<10) fps=fps+1;
       else fps=fps+1;
}
else{
hmUI.showToast({
      text: '不能再多了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 170,
      text: '亮度调\n节&恢复',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      if(lightbool==0){
      hmSetting.setBrightness(100)
      hmUI.showToast({
      text: '亮度已调到最大'
    })
      lightbool=1;
      }
      else{
      hmSetting.setBrightness(light)
      hmUI.showToast({
      text: '亮度已恢复到'+light+'%'
    })
      lightbool=0;
      }

      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 170,
      text: '持续亮\n屏设置',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      hmSetting.setBrightness(light)
      if(bol==1){
      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})
      }
else{
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page4",
     param: "..."
    });
}
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 287,
      text: '彩色',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page2",
     param: "..."
    });
      }
    })
    hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 287,
      text: '黑白',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
            click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page3",
     param: "..."
    });
      }
    })
hmApp.registerGestureEvent(function (event) {
  switch (event) {
   case hmApp.gesture.LEFT:
   hmSetting.setBrightness(light);
    hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page8",
     param: "..."
    });
   
    break;
   case hmApp.gesture.RIGHT:
    hmSetting.setBrightness(light);
    break;
  }
 })
    },
    onInit() {
      console.log("index page.js on init invoke"), this.init_view();
    },
    onReady() {
      console.log("index page.js on ready invoke");
    },
    onShow() {
      console.log("index page.js on show invoke");
    },
    onHide() {
      console.log("index page.js on hide invoke");
    },
    onDestory() {
      console.log("index page.js on destory invoke");
    }
  });
})();
} catch (e) {
console.log(e);
}
})();
} catch (e) {
console.log(e);
}
以上

這一行要修改if(fps>=1&fps<=40){
JavaScript:
if(fps>=1&fps<=100){

第2版制作完成
已解決進入黑屏(如果你想要環間小鏡子😂)請警急更新2.1版
第2.1版制作完成
(我要繼續肝他)
期待3.0版

第3.0版制作完成
第3.333版制作完成
第3.6版制作完成
NB
 
基於@zqx666的熒光棒加以修改
JavaScript:
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp;
    var t = e.current,
      { px: o } =
        (new DeviceRuntimeCore.WidgetFactory(
          new DeviceRuntimeCore.HmDomApi(e, t)
        ),
        e.app.__globals__);
try {
  (() => {
    var e = __$$hmAppManager$$__.currentApp,
    t = e.current;
  new DeviceRuntimeCore.WidgetFactory(
    new DeviceRuntimeCore.HmDomApi(e, t),
    "drink"
  );
DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
t.module = DeviceRuntimeCore.Page({
    init_view() {
      hmUI.setLayerScrolling(false);

      var fps=hmFS.SysProGetInt('fps')
      if(fps>=1&fps<=100){
      fps=hmFS.SysProGetInt('fps');
      }
      else{
      hmFS.SysProSetInt('fps', 20)
      fps=hmFS.SysProGetInt('fps');
      }
      var bol=hmFS.SysProGetInt('bol')
      if(bol==1){
      bol=hmFS.SysProGetInt('bol');
      }
      else{
      hmFS.SysProSetInt('bol', 0)
      bol=hmFS.SysProGetInt('bol');
      }
      var light=hmSetting.getBrightness();
      hmFS.SysProSetInt('light', light)
      var lightbool=0;
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:25,w:152,h:35,color:"0xdddddd",text_size:25,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"环间荧光棒"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:20,y:70,w:152,h:30,color:"0xdddddd",text_size:20,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"帧率调节(实验)"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:0,y:370,w:192,h:60,color:"0x9d9d9d",text_size:18,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:"左滑进入第2頁\n@zqx666 bandbbs.cn"})
      hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 10,
      y: 100,
      text: '一',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps>1){
        if(fps>10) fps=fps-1;
       else fps=fps-1;
}
else{
hmUI.showToast({
      text: '不能再少了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 147,
      y: 100,
      text: '十',
      w: 35,
      h: 35,
      click_func: () => {
        if(fps<100){
        if(fps<10) fps=fps+1;
       else fps=fps+1;
}
else{
hmUI.showToast({
      text: '不能再多了,兄弟'
    })
}
hmFS.SysProSetInt('fps', fps)
         hmUI.createWidget(hmUI.widget.FILL_RECT, {
      x: 70,
      y: 100,
      w: 50,
      h: 50,
      radius: 0,
      color: 0x000000
    })
              hmUI.createWidget(hmUI.widget.TEXT,{x:45,y:90,color:"0xdddddd",text_size:40,text_style:hmUI.text_style.NONE,align_h:hmUI.align.CENTER_H,text:fps})
       
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 170,
      text: '亮度调\n节&恢复',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      if(lightbool==0){
      hmSetting.setBrightness(100)
      hmUI.showToast({
      text: '亮度已调到最大'
    })
      lightbool=1;
      }
      else{
      hmSetting.setBrightness(light)
      hmUI.showToast({
      text: '亮度已恢复到'+light+'%'
    })
      lightbool=0;
      }

      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 170,
      text: '持续亮\n屏设置',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
      hmSetting.setBrightness(light)
      if(bol==1){
      hmApp.startApp({url: "Settings_displayBrightScreen", native: true})
      }
else{
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page4",
     param: "..."
    });
}
      }
    })
hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 0,
      y: 287,
      text: '彩色',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
      click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page2",
     param: "..."
    });
      }
    })
    hmUI.createWidget(hmUI.widget.BUTTON, {
      x: 117,
      y: 287,
      text: '黑白',
      w: 75,
      h: 75,
      radius: 20,
      normal_color: 0x0072e3,
      press_color: 0x97cbff,
            click_func: () => {
hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page3",
     param: "..."
    });
      }
    })
hmApp.registerGestureEvent(function (event) {
  switch (event) {
   case hmApp.gesture.LEFT:
   hmSetting.setBrightness(light);
    hmApp.gotoPage({
     url: "page/192x490_s_l66/index.page8",
     param: "..."
    });
   
    break;
   case hmApp.gesture.RIGHT:
    hmSetting.setBrightness(light);
    break;
  }
 })
    },
    onInit() {
      console.log("index page.js on init invoke"), this.init_view();
    },
    onReady() {
      console.log("index page.js on ready invoke");
    },
    onShow() {
      console.log("index page.js on show invoke");
    },
    onHide() {
      console.log("index page.js on hide invoke");
    },
    onDestory() {
      console.log("index page.js on destory invoke");
    }
  });
})();
} catch (e) {
console.log(e);
}
})();
} catch (e) {
console.log(e);
}
以上

這一行要修改if(fps>=1&fps<=40){
JavaScript:
if(fps>=1&fps<=100){

第2版制作完成
已解決進入黑屏(如果你想要環間小鏡子😂)請警急更新2.1版
第2.1版制作完成
(我要繼續肝他)
期待3.0版

第3.0版制作完成
第3.333版制作完成
第3.6版制作完成
 

*这是一则由 Google AdSense 自动推荐的广告,与本站无关,不对其真实性与可靠性负责

相似主题

米环7小程序
43K
801

Home 首页
News 发现
Account 我的
顶部