xtc block filtering, GO
| @@ -90,6 +90,11 @@ function setSamplerListListeners() { | ||
| 90 | 90 | targetDisplayType = 'block'; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | + if (samplerName === 'xtc_probability') { | |
| 94 | + relatedDOMElement = $('#xtc_block'); | |
| 95 | + targetDisplayType = 'block'; | |
| 96 | + } | |
| 97 | + | |
| 93 | 98 | if (samplerName === 'dynatemp') { |
| 94 | 99 | relatedDOMElement = $('#dynatemp_block_ooba'); |
| 95 | 100 | targetDisplayType = 'block'; |
| @@ -248,6 +253,10 @@ async function listSamplers(main_api, arrayOnly = false) { | ||
| 248 | 253 | targetDOMelement = $('#dryBlock'); |
| 249 | 254 | displayname = 'DRY Rep Pen Block'; |
| 250 | 255 | } |
| 256 | + if (sampler === 'xtc_probability') { | |
| 257 | + targetDOMelement = $('#xtc_block'); | |
| 258 | + displayname = 'XTC Block'; | |
| 259 | + } | |
| 251 | 260 | |
| 252 | 261 | if (sampler === 'dynatemp') { |
| 253 | 262 | targetDOMelement = $('#dynatemp_block_ooba'); |
| @@ -374,6 +383,11 @@ export async function validateDisabledSamplers(redraw = false) { | ||
| 374 | 383 | targetDisplayType = 'block'; |
| 375 | 384 | } |
| 376 | 385 | |
| 386 | + if (sampler === 'xtc_probability') { | |
| 387 | + relatedDOMElement = $('#xtc_block'); | |
| 388 | + targetDisplayType = 'block'; | |
| 389 | + } | |
| 390 | + | |
| 377 | 391 | if (sampler === 'penalty_alpha') { //contrastive search only has one sampler, does it need its own block? |
| 378 | 392 | relatedDOMElement = $('#contrastiveSearchBlock'); |
| 379 | 393 | } |