tomasklaen
972dd41b94
fix: menu prev/next navigation shouldn't smooth scroll
...
closes #352
2022-10-29 19:30:34 +02:00
tomasklaen
64feeb04b7
4.4.0
2022-10-28 22:25:04 +02:00
tomasklaen
d8fad3306a
feat: implement special spinner
icon for menus
...
Allows menus to use `spinner` as an item icon, which will display a rotating spinner. Along with a no-op command on an item and `keep_open=true`, this can be used to display placeholder menus/items that are still loading.
Extracts spinner from `BufferingIndicator` into `ass:spinner()` utility.
2022-10-28 22:22:21 +02:00
christoph-heinrich
59ac8af48f
fix: menu title when browsing files ( #349 )
2022-10-28 21:54:57 +02:00
christoph-heinrich
00d249a351
fix: selection on mbtn_up requires mbtn_down first ( #348 )
...
Without checking if mbtn_down happened first in the menu, it is possible
to select an item right after opening the menu from the controls.
(mbtn_down on control opens menu, mbtn_up selects item in menu)
2022-10-28 09:46:21 +02:00
tomasklaen
b5ca97adcf
feat: add timeline_cache
option to disable cache indicators
...
ref #351
2022-10-27 21:35:56 +02:00
tomasklaen
8538d6a177
perf: optimize reading directories
...
Instead of calling `utils.readdir()` twice to get directories and files, we now read the directory only once and sort it by item type. Also optimizes extension checking.
ref #344
2022-10-27 13:25:02 +02:00
tomasklaen
70c02b8a7c
refactor: don't extend native utilities
2022-10-27 12:14:28 +02:00
tomasklaen
4399904bba
refactor: change directory structure to support mpv 0.32 and lower
2022-10-27 12:09:59 +02:00
christoph-heinrich
b2ffc26195
perf: optimize normalize_path ( #347 )
...
Does not convert backslashes to slashes or vice versa anymore.
2022-10-27 11:49:09 +02:00
christoph-heinrich
5953113e9d
perf: optimize serialize_path ( #346 )
...
~22x performance improvement
2022-10-27 11:48:44 +02:00
tomasklaen
d4697134a1
docs: use no-osd
in keybind examples
2022-10-26 10:03:31 +02:00
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