Dark98 f08736d2df feat(web): align Web audio/clipboard/screenshot hooks and reflection whitelist with Desktop and Android
Bring `2006Scape-Web` platform hooks and TeaVM reflection support in-line with the shared `2006Scape Client` and `2006Scape-Android` implementations.

### Platform Hooks & Web Audio
- `Class56_Sub1_Sub1.java` & `index.html`
  - Forwarded `boolean loop` from `method827` to `DesktopHooks.playMidiBytes(midiBytes, vol, loop)` and `window.scapeWebAudio.playMidi(bytes, volume, loop)` so FluidSynth honors `setPlayerLoop(loop ? -1 : 0)`.
  - Overrode `setLoop(boolean loop, boolean restartIfStopped)` to sync MIDI loop toggles immediately via `DesktopHooks.setMidiLoop` and `scapeWebAudio.setMidiLoop`.
- `DesktopHooks.java` & `index.html`
  - Added browser `paste` and `focus` (`navigator.clipboard.readText()`) tracking to `window.scapeClipboardText` and implemented ASCII `32..122` filtering in `DesktopHooks.getClipBoard()`.
  - Updated `takeScreenshot` to use `<username or SERVER_NAME>_<timestamp>.png` and send `"A picture has been downloaded."` to in-game chat when `sendMessage` is `true`.
  - Removed duplicate `ensureHudAssets()` call in `drawModernMinimap`.

### TeaVM Script Reflection
- `WebReflectionSupplier.java`
  - Added `WorldWebWalker` to `SCRIPTABLE_CLASSES` and expanded `isLangStr` (`lastIndexOf`, `charAt`, `split`) and `isUtilColl` (`set`, `indexOf`, `containsValue`, `keySet`, `values`).
2026-12-02 01:24:54 +00:00
S
Description
No description provided
5.7 MiB
0 Stars 1 Watchers 0 Forks
Languages
Java 74.5%
HTML 24.3%
JavaScript 1.2%