Repository navigation
0.65.0
Gave the UnderScript website a face-lift.
Features
- Added a search bar and status filters to the community plugins list, which is now sorted by name
- The battle log can now be resized by dragging its bottom-left corner, and minimized with the button in its header
- Staff chat commands now show up in chat autocomplete for users with permission to use them
- Toasts can now be reached with the keyboard and dismissed with Escape
Fixes
- Fixed some settings pages showing an extra scrollbar when they didn't need one
- Fixed setting notes and other hover text going off the screen
- Fixed the sign in page not showing the settings window correctly
- Opening packs now waits and carries on when the game rate limits the requests, instead of stopping early
- Fixed the cosmetics shop showing two purchase confirmations, shift-click still skips the confirmation
- Fixed the Deck Hub import arrow staying orange when you are missing a DT, it is red again
- The Large Icon mode notice now offers to switch to small icons, since the game shows large icons already
Plugins
- Plugin setting pages with too many tabs to fit now split into pages, with arrows to flip between them (special thanks to Wiza for the original idea)
- This also applies to any horizontal view made with
utils.tabManager(). Those can passlabels: { previous(page, total), next(page, total) }andtooltip: underscript.utils.hovertotabManager().settings()to change the tooltip text or use UnderScript's hover instead of a plaintitle. - Settings pages always use UnderScript's own arrows and tooltips.
- This also applies to any horizontal view made with
- Added
underscript.semver.meets(<version>)andisBehind(<version>)to check the UnderScript version - Added
plugin.settings().name(<string>)to rename the first settings tab - Fixed
plugin.events.once,until, andoffnot removing listeners - Fixed
underscript.constants.getPriority()andisPriority()throwing an error - Added
underscript.rarity, andunderscript.constants.getRarity()andisRarity().underscript.utils.raritynow accepts them, and'DT'for'DETERMINATION' - Fixed
underscript.user.getDecks(),getCollection(),getArtifacts(), andgetAllArtifacts()each making their own request when called at the same time - Added
underscript.d.tsto each release, so editors like VS Code can suggest and check your plugin code- This is optional, plugins work the same without it.
- Download
underscript.d.tsfrom the latest release and put it next to your plugin's script.
- Plugin
toast()API was modifiedplugin.toast()- A
footerpassed toplugin.toast()is now kept and shown in front of your plugin's name, instead of being replaced button.onclick()was deprecated in favor ofbutton.onClick()buttonsoption can setdismiss: false, or callevent.preventDefault()inonClick, to keep the toast open after the button is clicked. Buttons still close the toast by default- The
cssoption ofplugin.toast()is deprecated, useclassNameinstead.cssstill works, but a warning will show when used
- A
toast = plugin.toast()- Added
toast.setFooter(text), which prepends text to the footer - Added
toast.setTitle(title), which allows you to modify toast title - Added
toast.element, so you can modify the element directly
- Added