Commit Graph

19 Commits (master)

Author SHA1 Message Date
Tom Wallroth 26114d9767 0.11: Add options for natural scroll and disabling wrap-around 2024-12-30 16:18:28 +01:00
Rob Pilling b2ff2eb47f promenu: call `options.remove` when removed 2024-12-03 12:16:33 +00:00
Rob Pilling 7c2f191fa7 promenu: don't show "..." if the string isn't truncated 2024-10-16 21:58:19 +01:00
Rob Pilling d1de2fa67c promenu: consts 2024-10-16 21:57:55 +01:00
Rob Pilling bb769a0bb9 promenu: don't modify the menu object
This fixes hadash, which uses `menu[""]` after calling `showMenu`
2024-10-03 12:01:42 +01:00
Rob Pilling 4061b419c6 promenu: scroll truncated menu lines 2024-09-12 18:22:37 +01:00
Rob Pilling 8aa839be26 promenu: factor out `drawLine()` 2024-09-12 18:21:46 +01:00
Rob Pilling c6d4713f5b promenu: only calculate offsets for plain (non-image) strings
This fixes the alarm app, for example, which shows images within the strings
2024-08-10 16:19:30 +01:00
Rob Pilling 5dac7b2624 promenu: return a scroller (fixes alarms app) 2024-08-10 15:54:12 +01:00
Rob Pilling 7822445b6a promenu: fix values going below minimum 2024-06-16 17:52:10 +01:00
Rob Pilling 1fa407b305 promenu: only run onchange/draw if value changes 2024-06-16 17:51:32 +01:00
Rob Pilling d9bc0aaffa promenu: fix whitespace 2024-06-16 17:51:08 +01:00
Rob Pilling 6bd3d2e599 promenu: fix removal of final menu item & `E.showMenu(<nothing>)` 2024-05-21 21:44:54 +01:00
Rob Pilling dd0fd23af1 promenu: register swipe as part of setUI
... for removing later, e.g. when a submenu comes along
2024-05-14 21:53:24 +01:00
Rob Pilling a0e5090254 promenu: fix boolean overwriting 2024-05-14 08:36:03 +01:00
Rob Pilling b5ad702c3a promenu: simplify if-else 2024-05-14 08:36:03 +01:00
Rob Pilling 9c6f14a63e promenu: item function typings / tweaks 2024-05-14 08:36:03 +01:00
Rob Pilling b5313e5c82 promenu: pass `back` into setUI() for the back button 2024-05-14 08:36:03 +01:00
Rob Pilling c22f16eb74 promenu: typescript 2024-05-13 18:20:32 +01:00