Commit Graph

674 Commits

Author SHA1 Message Date
christoph-heinrich
2d8b41fbd4 fix: restore leading zero sorting (#342) 2022-10-26 09:54:21 +02:00
christoph-heinrich
352fd544a3 fix: windows check for sorting (#345) 2022-10-26 09:54:04 +02:00
christoph-heinrich
614ccf6b3a perf: faster filename sorting (#341) 2022-10-25 19:03:31 +02:00
tomasklaen
2b0aadfa7b fix: update Controls on Timeline.enabled changes
closes #340
2022-10-25 17:46:22 +02:00
tomasklaen
f776bf39eb fix: tone down buffering indicator
closes #339
2022-10-25 17:32:35 +02:00
tomasklaen
c00e296953 refactor: modularize the codebase
Splits the monolith file into individual modules with as little code refactoring as possible.

Not too happy with it, mainly because of the weird language server behavior where it doesn't recognize types or variables unless the files defining them are open...

It'd also be better to refactor everything from the ground up to not depend on global variables but if I had that much time to invest I'd straight up just rewrite everything in typescript and use TS→Lua transpiler.
2022-10-25 12:14:50 +02:00
christoph-heinrich
e6ebb9c4e4 feat: better file sorting (#338) 2022-10-25 10:35:57 +02:00
christoph-heinrich
bef4a77139 feat: improved text width measuring (#322) 2022-10-25 10:21:28 +02:00
tomasklaen
26648f081a feat: smooth menu scrolling 2022-10-24 22:28:59 +02:00
tomasklaen
89c8d3fde1 chore: add words to cSpell 2022-10-24 22:19:32 +02:00
christoph-heinrich
0f53516158 feat: drag to scroll for menu (#331)
Co-authored-by: tomasklaen <tomas.klaen@gmail.com>
2022-10-24 22:17:20 +02:00
Zhong Lufan
2e281b51a2 fix: urls without slashes not recognized as urls (#336) 2022-10-20 22:32:22 +02:00
Hikari
1c5a061388 fix: pause while dragging the timeline (#335) 2022-10-20 19:49:09 +02:00
christoph-heinrich
f4e0d2ba49 fix: touch input (#327) 2022-10-15 10:49:51 +02:00
christoph-heinrich
0f964879b2 fix: spacing and clipping in menu (#325)
Puts clipping position right in the middle of the spacing between title
and hint. This gives us a little bit more leeway to prevent clipping from
inaccurate width estimation.

Also now only adds spacing where necessary.
2022-10-15 10:40:53 +02:00
christoph-heinrich
df3c2ec14c fix: use ass_safe_title (#328)
It was created but not used
2022-10-15 10:40:27 +02:00
christoph-heinrich
9516325ba8 fix: menu title/hint clipping (#321) 2022-10-13 11:13:54 +02:00
christoph-heinrich
fa049a1cfa fix: buffered time x bounds calculation (#323) 2022-10-13 11:05:29 +02:00
christoph-heinrich
34b9b59603 fix: don't render empty title (#319) 2022-10-12 08:43:12 +02:00
christoph-heinrich
2c4cfd70ee fix: properly update title (#318)
Get the properties relevant to the title, observe and update based on
their changes.
2022-10-12 08:41:39 +02:00
tomasklaen
5995bfb7ae feat: implement set-min-visibility message listener
closes #317
2022-10-11 17:55:35 +02:00
tomasklaen
2fb5ff69a8 4.3.0 2022-10-11 13:02:45 +02:00
Tomas Klaen
97bf03bc77 chore: update previews 2022-10-11 13:00:14 +02:00
tomasklaen
ef1753e27e feat: update default menu items 2022-10-11 12:12:51 +02:00
tomasklaen
629617117f tweak: thumbnail border opacity 2022-10-11 10:58:37 +02:00
tomasklaen
66a29d67f9 refactor: title template updating
closes #312
2022-10-11 10:23:23 +02:00
Hikari
840181825c fix: menu parser not ignoring other comments (#315) 2022-10-11 09:43:03 +02:00
tomasklaen
3aa0ae6584 fix: remove debugging prints 2022-10-10 10:44:45 +02:00
tomasklaen
be1b978528 fix: title initializing prematurely and not accounting for dynamic variables
ref #312
2022-10-10 10:40:22 +02:00
tomasklaen
30a3ec195d feat: move @ in control badge props from prefix to suffix for consistency
The old `@prop` syntax will still work, but consider it deprecated.
2022-10-10 10:20:46 +02:00
tomasklaen
75ab13f2e3 feat: make toggle and cycle controls work with external properties
ref #310
2022-10-10 09:56:16 +02:00
tomasklaen
7d2c59bb51 fix: title not escaping ass tags from filenames
closes #314
2022-10-10 09:09:03 +02:00
tomasklaen
993cfa5d21 tweak: click_threshold descrition and top bar subtitle offset 2022-10-10 09:02:57 +02:00
christoph-heinrich
d3f25af012 fix: options.click_threshold (#309) 2022-10-10 08:56:52 +02:00
tomasklaen
46ab864adc docs: clarify shuffle control and option descriptions
ref #310
2022-10-09 12:07:11 +02:00
tomasklaen
63fc2e8499 fix: CycleButton internal prop state not initiating properly
closes #310
2022-10-09 11:47:40 +02:00
tomasklaen
b5726097cc fix: current chapter not updating on chapter list changes 2022-10-09 11:14:44 +02:00
tomasklaen
5bb12b23ca fix: thumbnail not clearing when timeline dragging released outside of timeline
closes #311
2022-10-09 11:12:03 +02:00
tomasklaen
a942a932c6 fix: drag seeking crashing the UI during file loads
closes #305
2022-10-08 09:32:11 +02:00
tomasklaen
e94f9bf290 feat: implement click_threshold and click_command options
Deprecates `pause_on_click_shorter_than`.
2022-10-08 09:04:54 +02:00
christoph-heinrich
93bb49edce feat: automatically choose between fast and exact seeking (#302) 2022-10-07 23:04:51 +02:00
christoph-heinrich
9dd78e85eb fix: use mouse-pos property instead of keybinds (#301) 2022-10-07 22:16:29 +02:00
tomasklaen
3a759d212d tweak: scale BufferingIndicator with window 2022-10-07 16:57:39 +02:00
tomasklaen
9935d6b72a fix: shuffle not really random
closes #303
2022-10-07 16:41:18 +02:00
christoph-heinrich
51abce27a0 feat: better buffering detection (#298)
* feat: better buffering detection

Leverage not just information from the cache, but also the player
playback state to get a better idea of when playback is stalled due to
buffering.

Use different metric for enabling the indicator then for disabling it.
This allows the indicator to be continuously on instead of switching
on/off multiple times within the same stall.

* tweak: buffering indicator draws it's own curtain
2022-10-07 16:38:50 +02:00
tomasklaen
7d5082135c fix: icons affected by font_bold=yes
This was causing misalignments such as buffering indicator icon wobbling while rotating.
2022-10-07 16:23:02 +02:00
tomasklaen
983c389a4f feat: add timeline_drag_seek_keyframes option
Makes dragging in timeline use faster seeking to keyframes. Disabled by default.
2022-10-06 22:40:01 +02:00
christoph-heinrich
521f880a18 refactor: more compact request_render() (#299) 2022-10-06 21:42:49 +02:00
tomasklaen
5fdcddd548 tweak: thumbnail border style 2022-10-06 17:03:26 +02:00
tomasklaen
db15ae00c0 fix: thumbnail not clearing when dragging timeline out of window
When user started seeking by dragging the timeline, and released the button while hovering out of window, thumbnail would not clear.
2022-10-06 16:49:59 +02:00