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