Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test2(){
- let testgg = null;
- let andr_id = false;
- modmenu.create('test mod',
- [
- {
- 'id': '1',
- 'type': 'category',
- 'title': 'category title'
- },
- {
- 'id': '2',
- 'type': 'switch',
- 'title': 'switch1 title',
- 'enable': true
- },
- {
- 'id': '3',
- 'type': 'switch',
- 'title': 'switch2 title'
- },
- {
- 'id': '4',
- 'type': 'webview',
- 'data': '<font color="red"><b>text</b></font>',
- //or
- //'url': 'http://xxxxx.com'
- },
- {
- 'id': '5',
- 'type': 'button',
- 'title': 'button title'
- },
- {
- 'id': '6',
- 'type': 'input',
- 'title': 'input title',
- 'val': 'default value'
- },
- {
- 'type': 'collapse',
- 'title': 'collapse title',
- 'item': [
- {
- 'id': '7',
- 'type': 'switch',
- 'title': 'switch title'
- }
- ],
- 'enable': true
- },
- {
- 'id': '8',
- 'type': 'slider',
- 'title': 'slider title',
- 'val': 88,
- 'min': 1,
- 'max': 100
- },
- {
- 'id': '9',
- 'type': 'checkbox',
- 'title': 'checkbox title',
- 'enable': true
- },
- {
- 'type': 'checkboxs',
- 'item': [
- {
- 'id': '10',
- 'type': 'checkbox',
- 'title': '1 title'
- },
- {
- 'id': '11',
- 'type': 'checkbox',
- 'title': '2 title'
- },
- {
- 'id': '12',
- 'type': 'checkbox',
- 'title': '33333333 title'
- }
- ]
- },
- {
- 'id': '13',
- 'type': 'radio',
- 'title': 'radio title',
- 'item': ['test', 'test2', 'test3'],
- 'check': 0
- }
- ]
- , {
- onchange: function (result) {
- console.log(result);
- }
- })
- Java.use("hd.l0").e.implementation = function (arg){
- let result = this.e(arg);
- if(andr_id == true){
- test3();
- testgg = result;
- }
- return result;
- }
- }
- function test3(){
- confirm('is ok?', {
- ok: function () {
- //...
- },
- cancel: function () {
- //...
- }
- })
- }
- test2();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement