Comment interactable selectors & more small fixes
This commit is contained in:
parent
d98d811cc1
commit
10da7eb474
|
@ -173,8 +173,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-selection__choice__display {
|
.select2-selection__choice__display {
|
||||||
/* Fix weird alignment on the left side */
|
/* Fix weird alignment of the inside block */
|
||||||
margin-left: 1px;
|
margin-left: 3px;
|
||||||
|
margin-right: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styling for choice remove icon */
|
/* Styling for choice remove icon */
|
||||||
|
|
|
@ -1,24 +1,25 @@
|
||||||
/* All selectors that should act as interactables / keyboard buttons by default */
|
/* All selectors that should act as interactables / keyboard buttons by default */
|
||||||
const interactableSelectors = [
|
const interactableSelectors = [
|
||||||
'.custom_interactable',
|
'.interactable', // Main interactable class for ALL interactable controls (can also be manually added in code, so that's why its listed here)
|
||||||
'.interactable',
|
'.custom_interactable', // Manually made interactable controls via code (see 'makeKeyboardInteractable()')
|
||||||
'.menu_button',
|
'.menu_button', // General menu button in ST
|
||||||
'.right_menu_button',
|
'.right_menu_button', // Button-likes in many menus
|
||||||
'.drawer-icon',
|
'.drawer-icon', // Main "menu bar" icons
|
||||||
'.inline-drawer-icon',
|
'.inline-drawer-icon', // Buttons/icons inside the drawer menus
|
||||||
'.paginationjs-pages li a',
|
'.paginationjs-pages li a', // Pagination buttons
|
||||||
'.group_select',
|
'.group_select, .character_select, .bogus_folder_select', // Cards to select char, group or folder in character list and other places
|
||||||
'.character_select',
|
'.avatar-container', // Persona list blocks
|
||||||
'.bogus_folder_select',
|
'.tag .tag_remove', // Remove button in removable tags
|
||||||
'.avatar-container',
|
'.bg_example', // Background elements in the background menu
|
||||||
'.tag .tag_remove',
|
'.bg_example .bg_button', // The inline buttons on the backgrounds
|
||||||
'.bg_example',
|
'#options a', // Option entries in the popup options menu
|
||||||
'.bg_example .bg_button',
|
'#extensionsMenu div:has(.extensionsMenuExtensionButton)', // Option entries in the extension menu popup that are coming from extensions
|
||||||
'#options a',
|
'.mes_buttons .mes_button', // Small inline buttons on the chat messages
|
||||||
'#extensionsMenu div:has(.extensionsMenuExtensionButton)',
|
'.extraMesButtons>div:not(.mes_button)', // The extra/extension buttons inline on the chat messages
|
||||||
'.mes_buttons .mes_button',
|
'.swipe_left, .swipe_right', // Swipe buttons on the last message
|
||||||
'.extraMesButtons>div:not(.mes_button)',
|
'.stscript_btn', // STscript buttons in the chat bar
|
||||||
'.stscript_btn'
|
'.select2_choice_clickable+span.select2-container .select2-selection__choice__display', // select2 control elements if they are meant to be clickable
|
||||||
|
'.avatar_load_preview' // Char display avatar selection
|
||||||
];
|
];
|
||||||
|
|
||||||
export const INTERACTABLE_CONTROL_CLASS = 'interactable';
|
export const INTERACTABLE_CONTROL_CLASS = 'interactable';
|
||||||
|
|
|
@ -23,7 +23,7 @@ import { ARGUMENT_TYPE, SlashCommandArgument, SlashCommandNamedArgument } from '
|
||||||
import { isMobile } from './RossAscends-mods.js';
|
import { isMobile } from './RossAscends-mods.js';
|
||||||
import { POPUP_RESULT, POPUP_TYPE, callGenericPopup } from './popup.js';
|
import { POPUP_RESULT, POPUP_TYPE, callGenericPopup } from './popup.js';
|
||||||
import { debounce_timeout } from './constants.js';
|
import { debounce_timeout } from './constants.js';
|
||||||
import { INTERACTABLE_CONTROL_CLASS, registerInteractableType } from './keyboard.js';
|
import { INTERACTABLE_CONTROL_CLASS } from './keyboard.js';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
TAG_FOLDER_TYPES,
|
TAG_FOLDER_TYPES,
|
||||||
|
|
Loading…
Reference in New Issue