Skip to content

0.65.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 00:16

Gave the UnderScript website a face-lift.

Features

  1. Added a search bar and status filters to the community plugins list, which is now sorted by name
  2. The battle log can now be resized by dragging its bottom-left corner, and minimized with the button in its header
  3. Staff chat commands now show up in chat autocomplete for users with permission to use them
  4. Toasts can now be reached with the keyboard and dismissed with Escape

Fixes

  1. Fixed some settings pages showing an extra scrollbar when they didn't need one
  2. Fixed setting notes and other hover text going off the screen
  3. Fixed the sign in page not showing the settings window correctly
  4. Opening packs now waits and carries on when the game rate limits the requests, instead of stopping early
  5. Fixed the cosmetics shop showing two purchase confirmations, shift-click still skips the confirmation
  6. Fixed the Deck Hub import arrow staying orange when you are missing a DT, it is red again
  7. The Large Icon mode notice now offers to switch to small icons, since the game shows large icons already

Plugins

  1. 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 pass labels: { previous(page, total), next(page, total) } and tooltip: underscript.utils.hover to tabManager().settings() to change the tooltip text or use UnderScript's hover instead of a plain title.
    • Settings pages always use UnderScript's own arrows and tooltips.
  2. Added underscript.semver.meets(<version>) and isBehind(<version>) to check the UnderScript version
  3. Added plugin.settings().name(<string>) to rename the first settings tab
  4. Fixed plugin.events.once, until, and off not removing listeners
  5. Fixed underscript.constants.getPriority() and isPriority() throwing an error
  6. Added underscript.rarity, and underscript.constants.getRarity() and isRarity(). underscript.utils.rarity now accepts them, and 'DT' for 'DETERMINATION'
  7. Fixed underscript.user.getDecks(), getCollection(), getArtifacts(), and getAllArtifacts() each making their own request when called at the same time
  8. Added underscript.d.ts to 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.ts from the latest release and put it next to your plugin's script.
  9. Plugin toast() API was modified
    • plugin.toast()
      • A footer passed to plugin.toast() is now kept and shown in front of your plugin's name, instead of being replaced
      • button.onclick() was deprecated in favor of button.onClick()
      • buttons option can set dismiss: false, or call event.preventDefault() in onClick, to keep the toast open after the button is clicked. Buttons still close the toast by default
      • The css option of plugin.toast() is deprecated, use className instead. css still works, but a warning will show when used
    • 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