Commit Graph

15 Commits

Author SHA1 Message Date
Kartik K. Agaram 95f34d5b68 Merge carousel.love 2024-03-17 11:49:27 -07:00
Kartik K. Agaram fff4dc198c explicitly state stance on autosave 2024-03-17 10:49:45 -07:00
Kartik K. Agaram dd7e6e395d switch to a single global output editor 2023-12-31 22:51:04 -08:00
Kartik K. Agaram fdc84789fc switch all handlers to run either the app or editor 2023-12-31 16:21:30 -08:00
Kartik K. Agaram 2f09322d49 greatly simplify slider implementation
It now looks a lot like button.lua.
2023-12-16 23:41:49 -08:00
Kartik K. Agaram 7ca2006145 partition handlers between screen regions
This fixes one bug I know of: dragging the mouse atop the settings menu
was selecting text in the editor underneath.
2023-12-01 20:59:22 -08:00
Kartik K. Agaram e0a0c4f33b check slider state more precisely 2023-12-01 20:53:08 -08:00
Kartik K. Agaram 0d2d85d8d7 activate buttons for some time
The active state has 2 uses:
* It gives some visual feedback that a button has been pressed.
  Otherwise, tapping a button gave no feedback that the tap had
  occurred. Particularly on a phone screen where fat-fingering is
  easier, hitting the 'save' button in particular gave no hint that the
  file had actually been saved. Which causes some anxiety.
* It suppresses all mouse taps during the activation time. For example,
  this helps keep tapping say an overflow button from selecting text in
  the editor.
2023-12-01 20:07:20 -08:00
Kartik K. Agaram 2e66d2f0fd send errors from event handlers to output editor 2023-11-21 21:22:52 -08:00
Kartik K. Agaram fc3cb96171 support event handlers
I've agonized over conflicts between editor and script handlers for a
while, but finally the solution occurred to me: to use the script's
handlers, hide the editor. To use the editor's handlers, show the
editor. The menu and settings are always active. This seems nice and
consistent, easy to explain.

Mike Stein would prefer we just supported love.* handlers in scripts to
minimize special cases and cognitive load for people. But I'd rather
err on the side of being transparent about what's going on inside. As a
compromise I'm supporting love.* names at least in addition to my
rephrasings (which came about mostly because love.keychordpressed is
just too much of a mouthful)
2023-11-21 19:17:49 -08:00
Kartik K. Agaram 76bfcba47e sliders for font size and color settings 2023-11-21 02:19:56 -08:00
Kartik K. Agaram e38191fc4f aggregate global state inside a 'pane' object
We're soon going to start juggling multiple of these.
2023-11-19 13:15:06 -08:00
Kartik K. Agaram 809a980213 implement second, 'output' editor
Also its scrollbar.
2023-11-18 21:18:09 -08:00
Kartik K. Agaram fe8a21bea3 mouse events for scrollbar
You can either drag the scrollbar or click anywhere in the scrollbar
area.

It has this weird funkiness that the scrollbar shrinks as you get near
the bottom. But it feels.. weirdly satisfying?
2023-11-18 05:29:07 -08:00
Kartik K. Agaram acc6e97db0 debug animations
https://merveilles.town/@akkartik/111333888472146119
2023-11-11 10:00:54 -08:00