jumPhp/games/hello-hybrid/ui/index.html
David Nurdin e0e82a22cc Desktop apps: hybrid games, clipboard, tray, global shortcuts, Windows / macOS runtime
- ui: hybrid: an SDL game that also drives Tauri (Application::run() hands over to JumPHP\Tauri\Hybrid): native
  dialogs, tray icon, shortcuts and HTML windows beside its own; a plain game headless, in the browser, on phones and
  without FFI. bin/jumphp run uses the Tauri image; export:standalone a micro with SDL + FFI (tools/hybrid-extensions.txt).
  games/hello-hybrid: SDL balls + an HTML control panel.
- JumPHP\Native\Clipboard (Tauri, browser copy), App::tray() (JumPHP\Tauri\Tray), App::globalShortcut();
  native.copy / native.paste for pages; a command PHP waits for that fails now fails its Task ('result' event)
- runtime: clipboard-manager, global-shortcut, tray-icon; panics of a command stay on the native side; idle time
  after each frame so WebViews keep painting beside a busy game; JUMPHP_TAURI_TRACE=1
- .github/workflows/tauri.yml: the library for Linux, Windows, macOS (universal), hello-desktop run for real on
  each, release tauri-<key> (tools/tauri-key.sh); bin/jumphp tauri:download, used before building
- app:export --windows; the standalone workflow takes an extension list (the apps' / hybrid games' micros)
- docs/tauri.md, docs/tauri.fr.md, AGENTS.md §16, README, TODO

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JkYTqpYNZKwTnRZHQRD5HP
2026-10-31 22:30:21 +01:00

35 lines
1.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello Hybrid — panel</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Control panel</h1>
<p class="muted">HTML here, SDL in the other window, PHP for both.</p>
<label>Balls <output id="ballsOut">12</output></label>
<input id="balls" type="range" min="1" max="200" value="12">
<label>Speed <output id="speedOut">1.0×</output></label>
<input id="speed" type="range" min="0.1" max="4" step="0.1" value="1">
<label>Colour</label>
<div class="swatches" id="swatches"></div>
<div class="row">
<button id="pause">Pause</button>
<button id="shot" class="ghost">Save a picture…</button>
</div>
<dl class="stats">
<dt>Balls</dt><dd id="sBalls">–</dd>
<dt>Bounces</dt><dd id="sBounces">–</dd>
<dt>Game FPS</dt><dd id="sFps">–</dd>
</dl>
<p class="muted small">Tray icon: pause, picture, quit · Ctrl+Shift+P anywhere: pause</p>
<script src="panel.js"></script>
</body>
</html>