Skip to content

WeatherTweaker v2.0.0

Choose a tag to compare

@Mitaska Mitaska released this 26 Jun 21:31
· 1 commit to main since this release

Added

  • Standalone mode — new toggle that renders weather on the extension's own canvas, with no World State agent and no "Dynamic weather effects" setting required. It mounts and animates an independent canvas in the roleplay surface, porting the engine's particle, lightning, aurora, starfield/meteor, and sun/moon rendering so the look matches the default (greffé) mode. Standalone is a global preference (not per-chat) and is also offered on the popup's "not available" screen
  • Celestial Position slider — places the sun/moon along its sky arc (rising → peak → setting, 0–1), driving both horizontal position and height. Works in standalone, and in greffé mode by overriding the engine's time-of-day hour when Sun/Moon is forced; disabled for Auto/None

Changed

  • Toolbar button consistency — the button now mirrors the engine's getChatToolbarButtonClass, adding the keyboard focus-visible ring, using the engine's larger touch target in the mobile overflow menu, and setting type="button" + aria-label
  • Config-memo refresh — the host's weather config object is re-located on a throttled cadence, so forced overlay / lightning / celestial overrides survive World State weather and time updates instead of silently stopping after the first AI change
  • Per-frame work throttled — chat-switch detection and config refresh no longer run on every animation frame
  • Reset button moved to the bottom of the popup (was rendered mid-panel, between the Celestial and Aurora sections)
  • Persistence — the per-chat original-particle snapshot is no longer written to localStorage (it is ephemeral and random, and caused a needless write on every change)
  • Faithful rendering — createParticle / drawParticle and the sun/moon helpers are ported from the engine so forced presets and standalone output match the native effects

Fixed

  • Standalone animation speed / flash — thunderstorms over-flashed and Revamped Aurora moved too fast. Root cause: React re-rendering the roleplay surface detached the extension's canvas, triggering a re-attach that reset every animation counter to 0 — firing an immediate lightning strike and restarting the aurora each time. Fixed by reusing the same canvas element across re-renders and persisting animation state across (re)attach (measured: ~150 → ~3 strikes per 1500 frames). Affected all frame-counter effects (lightning, aurora, stars, meteors)
  • Toolbar button missing in some layouts — the button is now injected into every top-controls container (the engine renders several for responsive / compact layouts) using a class marker instead of a duplicate id, so it appears in whichever layout is visible
  • Removed an unused variable and a stale comment