1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-17 08:43:21 +00:00

Added option to remove check box from user consent

This commit is contained in:
Bryan Roe
2022-04-20 11:18:53 -07:00
parent 6e43f2c7ac
commit 3b92ca04da
2 changed files with 22 additions and 18 deletions

File diff suppressed because one or more lines are too long

View File

@@ -423,19 +423,23 @@ function pump_onHwnd(h)
this.pump._denybutton = c; this.pump._denybutton = c;
this.pump._addAsyncMethodCall(this.pump._user32.SendMessageW.async, [c, WM_SETFONT, this.pump.buttonfont, 1]); this.pump._addAsyncMethodCall(this.pump._user32.SendMessageW.async, [c, WM_SETFONT, this.pump.buttonfont, 1]);
}).parentPromise.pump = this; }).parentPromise.pump = this;
this._addCreateWindowEx(0, GM.CreateVariable('BUTTON', { wide: true }), GM.CreateVariable(this.translations.Auto, { wide: true }), WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_CHECKBOX | BS_MULTILINE,
SCALE(210, this.dpi), // x position if (this.options.noCheck != true)
SCALE(150 + 32, this.dpi), // y position {
SCALE(335, this.dpi), // Button width this._addCreateWindowEx(0, GM.CreateVariable('BUTTON', { wide: true }), GM.CreateVariable(this.translations.Auto, { wide: true }), WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_CHECKBOX | BS_MULTILINE,
SCALE(60, this.dpi), // Button height SCALE(210, this.dpi), // x position
h, // Parent window SCALE(150 + 32, this.dpi), // y position
0xFFF0, // Child ID SCALE(335, this.dpi), // Button width
0, SCALE(60, this.dpi), // Button height
0).then(function (c) h, // Parent window
{ 0xFFF0, // Child ID
this.pump._checkbox = c; 0,
this.pump._addAsyncMethodCall(this.pump._user32.SendMessageW.async, [c, WM_SETFONT, this.pump.buttonfont, 1]); 0).then(function (c)
}).parentPromise.pump = this; {
this.pump._checkbox = c;
this.pump._addAsyncMethodCall(this.pump._user32.SendMessageW.async, [c, WM_SETFONT, this.pump.buttonfont, 1]);
}).parentPromise.pump = this;
}
this._addCreateWindowEx(0, GM.CreateVariable('STATIC', { wide: true }), GM.CreateVariable('NONE', { wide: true }), WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_BLACKRECT | SS_BITMAP | SS_REALSIZECONTROL, this._addCreateWindowEx(0, GM.CreateVariable('STATIC', { wide: true }), GM.CreateVariable('NONE', { wide: true }), WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_BLACKRECT | SS_BITMAP | SS_REALSIZECONTROL,
SCALE(10, this.dpi), // x position SCALE(10, this.dpi), // x position
SCALE(10 + 32, this.dpi), // y position SCALE(10 + 32, this.dpi), // y position