Dark98 558243a3b7 fix(hd): sync web Client Options 317HD state with Plugin Hub 317 HD config
Keeps the webclient's Client Options modal (2006scape_web_options.hd), startup URL/option state, and Plugin Hub's plugin.317_HD.enabled property synchronized in both directions and at runtime.

### Web HD State Synchronization
- src/main/java/org/scape2006/web/WebLauncher.java:
  - Added syncHdStorageState(boolean) on startup when ?hd= or saved web options specify HD so plugin.317_HD.enabled in 2006scape_plugin_settings matches ClientSettings.HD_317 before PluginManager boots.
  - Registered window.scapeSetHd317 callback forwarding live HD toggles to game.setHD317Enabled(boolean).
- src/main/java/org/scape2006/web/DesktopHooks.java:
  - Added jsSyncWebOptionHdFromPluginConfig(String) in savePluginConfig(String) so toggling 317 HD in Plugin Hub or via ::hd updates 2006scape_web_options.hd in localStorage.
- src/main/webapp/index.html:
  - Updated saveOpts(applyLive) to mirror o.hd into plugin.317_HD.enabled in 2006scape_plugin_settings and invoke window.scapeSetHd317(o.hd) when saving live.
2026-12-02 00:36:05 +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%