cyberslak
/lightsout
/amendments
Amendments on March 17, 2025
cyberslak made amendment
24
16 days ago
cyberslak made amendment
23
16 days ago
Amendments on March 15, 2025
cyberslak made amendment
22
18 days ago
cyberslak made amendment
21
18 days ago
Amendments on March 14, 2025
cyberslak made amendment
20
19 days ago
Amendments on March 13, 2025
Work around HA brightness range quirks
Some lights in HA have a brightness range of 1-255, and some of 1-254 (notably Zigbee lights), without any way of distinguishing the two. To handle both, we internally use the 1-255 range (0 = off) and map 254 to 255 when requesting the entity state. This means we may show 99.6% brightness as 100%, but that is far better than showing it as 99% and being unable to set a light to 100%.
Amendments on March 12, 2025
slider cleanup, add room for drag ctl, fix valueDelta bug
This fixes two annoying issues: the drag control disappearing below ~15%, as well as the inability to fully turn off a light due to precision loss while calculating valueDelta (leaving the light at, say, 1%).
cyberslak made amendment
17
21 days ago
Amendments on March 11, 2025
cyberslak made amendment
16
22 days ago
Amendments on March 10, 2025
cyberslak made amendment
15
23 days ago
cyberslak made amendment
14
23 days ago
main: add scroll support to main window and clean up entity access patterns
Because we now also have a scrollbar control, our control handling needs to be more sophisticated than simply iterating over all controls in a window. We now generally use list_foreach to iterate over entities. Additionally, we store some more info in reference constants (window_info and control_type).
Amendments on March 9, 2025
main: smorgasbord of changes
- Add preferences support
- Add support for adding entities (Cmd-A)
- Load saved entities
- Handle update/activate/suspend/resume events better
- Port handling tweaks
cyberslak made amendment
11
24 days ago
entity_ldef: add
Custom entity LDEF which simply shows the name of an entity.
cyberslak made amendment
9
24 days ago
GenerateR: add
This is a little MPW script that generates the Rez file from a rsrc file. Can be run under ToolServer in CodeWarrior.
cyberslak made amendment
7
24 days ago
cyberslak made amendment
6
24 days ago
cyberslak made amendment
5
24 days ago
1
2