Advertisement
emieylea

Ttpptt

Apr 1st, 2023
873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. function test2(){
  3.     let testgg = null;
  4.     let andr_id = false;  
  5.     modmenu.create('test mod',
  6.     [
  7.         {
  8.             'id': '1',
  9.             'type': 'category',
  10.             'title': 'category title'
  11.         },
  12.         {
  13.             'id': '2',
  14.             'type': 'switch',
  15.             'title': 'switch1 title',
  16.             'enable': true
  17.         },
  18.         {
  19.             'id': '3',
  20.             'type': 'switch',
  21.             'title': 'switch2 title'
  22.         },
  23.         {
  24.             'id': '4',
  25.             'type': 'webview',
  26.             'data': '<font color="red"><b>text</b></font>',
  27.             //or
  28.             //'url': 'http://xxxxx.com'
  29.         },
  30.         {
  31.             'id': '5',
  32.             'type': 'button',
  33.             'title': 'button title'
  34.         },
  35.         {
  36.             'id': '6',
  37.             'type': 'input',
  38.             'title': 'input title',
  39.             'val': 'default value'
  40.         },
  41.         {
  42.             'type': 'collapse',
  43.             'title': 'collapse title',
  44.             'item': [
  45.                 {
  46.                     'id': '7',
  47.                     'type': 'switch',
  48.                     'title': 'switch title'
  49.                 }
  50.             ],
  51.             'enable': true
  52.         },
  53.         {
  54.             'id': '8',
  55.             'type': 'slider',
  56.             'title': 'slider title',
  57.             'val': 88,
  58.             'min': 1,
  59.             'max': 100
  60.         },
  61.         {
  62.             'id': '9',
  63.             'type': 'checkbox',
  64.             'title': 'checkbox title',
  65.             'enable': true
  66.         },
  67.         {
  68.             'type': 'checkboxs',
  69.             'item': [
  70.                 {
  71.                     'id': '10',
  72.                     'type': 'checkbox',
  73.                     'title': '1 title'
  74.                 },
  75.                 {
  76.                     'id': '11',
  77.                     'type': 'checkbox',
  78.                     'title': '2 title'
  79.                 },
  80.                 {
  81.                     'id': '12',
  82.                     'type': 'checkbox',
  83.                     'title': '33333333 title'
  84.                 }
  85.             ]
  86.         },
  87.         {
  88.             'id': '13',
  89.             'type': 'radio',
  90.             'title': 'radio title',
  91.             'item': ['test', 'test2', 'test3'],
  92.             'check': 0
  93.         }
  94.     ]
  95.     , {
  96.         onchange: function (result) {
  97.             console.log(result);
  98.         }
  99.     })
  100.  
  101.     Java.use("hd.l0").e.implementation = function (arg){
  102.     let result = this.e(arg);
  103.     if(andr_id == true){
  104.         test3();
  105.         testgg = result;
  106.     }
  107.     return result;
  108.     }
  109. }
  110. function test3(){
  111.     confirm('is ok?', {
  112.         ok: function () {
  113.             //...
  114.         },
  115.         cancel: function () {
  116.             //...
  117.         }
  118.     })
  119. }
  120.  
  121. test2();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement