Rotating ring modeled after the watch Controls menu: UP/DOWN spin,
START/STOP selects. Selection point sits at −30° (≈ 2 o'clock) so it
lines up with the physical enter button on 5-button round Garmins.
Icons are rasterized at 80×80 with automaticPalette="false" and
scaled via drawBitmap2 to stay crisp at any display resolution. Long
German compounds ("Einsatzbeginn", "Beweismittel", "Letzten löschen")
wrap to two lines via a Config array so the center label never
overlaps the surrounding icons. Selected index is persisted in
Application.Storage and restored on next launch.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
551 B
MonkeyC
22 lines
551 B
MonkeyC
import Toybox.Application;
|
|
import Toybox.Lang;
|
|
import Toybox.WatchUi;
|
|
|
|
class EinsatzprotokollApp extends Application.AppBase {
|
|
|
|
function initialize() {
|
|
AppBase.initialize();
|
|
}
|
|
|
|
function onStart(state as Dictionary?) as Void {
|
|
EventStore.pruneOld();
|
|
Logger.pruneOld();
|
|
}
|
|
|
|
function onStop(state as Dictionary?) as Void {}
|
|
|
|
function getInitialView() as [WatchUi.Views] or [WatchUi.Views, WatchUi.InputDelegates] {
|
|
var view = new MenuView();
|
|
return [ view, new MenuDelegate(view) ];
|
|
}
|
|
}
|