Colin
feb6ed4d0c
more debug logging
2023-07-27 11:35:54 +00:00
Colin
bc635b0115
fix: touchscreen interactions don't require extra presses
...
previously activating a control meant tapping it once to enable
proximity, then tapping it again to do the actual interaction.
now a single tap will do that.
previously the following glitch was present:
- interact with a slider
- release touch on that slider
- touch a different control
->input would be received by the old control
now the input is received by the correct control
2023-07-27 11:31:05 +00:00
Eva
e783ad1f13
fix: crash when a script menu update renders selected index unavailable ( #591 )
...
Co-authored-by: Christoph Heinrich <christoph.heinrich@student.tugraz.at>
2023-07-26 23:20:09 +02:00
tomasklaen
72982e29b3
fix: use `mp.get_script_directory()` instead of relative paths
2023-07-19 16:57:41 +02:00
tomasklaen
ade1d1f319
feat: dropped compatibility for mpv 0.32 and below
...
closes #359
2023-07-18 18:21:00 +02:00
christoph-heinrich
c8ad77a1a9
fix: crashes when dealing with invalid UTF-8 strings ( #579 )
...
Caps char byte count of UTF-8 to string length.
Closes #515
2023-06-28 21:20:36 +02:00
tomasklaen
442fe6b2e5
feat: shuffle now prevents repeating same files often
...
Specifically, shuffle now guarantees no path/url repetition until at least 80% of the playlist/directory has been exhausted.
closes #569
2023-05-30 20:26:59 +02:00
unavailable500
7e1d26c7a3
doc: add windows install commands ( #568 )
2023-05-25 14:57:29 +02:00
tomasklaen
e5a8bb813c
refactor: use local function where appropriate
2023-05-18 10:15:22 +02:00
tomasklaen
10768d212d
feat: improved menu cursor navigation
...
- Left side of the empty menu screen is no longer a huge invisible back button. Instead, each parent menu can be clicked individually to navigate to it. Clicking empty space now correctly closes the menu.
- Submenus can now also be clicked to navigate to them.
- Moving cursor towards a submenu will not cause other items in current menu to be selected if cursor moves through them.
ref #217
2023-05-17 21:06:17 +02:00
tomasklaen
78b5d9e59f
fix: menu back navigation resetting selected index
2023-05-15 18:40:00 +02:00
tomasklaen
532a9b18e1
fix: removed debugging leftovers
2023-05-15 18:34:52 +02:00
christoph-heinrich
5b4ccc8874
fix: crash when opening a non blurred menu ( #565 )
...
itable_find() returns two values, so without specifying the second
parameter to select_index() lua will use the second return value for
that.
2023-05-15 18:32:34 +02:00
tomasklaen
8ad5330a4b
fix: window title click events preventing window dragging
...
closes #563
2023-05-15 12:45:30 +02:00
tomasklaen
128c76c3ba
feat: menu items now accept `selectable` and `align` options
...
Allows creating placeholder items like "Empty" that can't be selected or clicked.
2023-05-15 11:22:53 +02:00
tomasklaen
9c544bf565
fix: removed `add-intl-directory` API
...
It doesn't make sense for uosc to be the internationalization provider for other scripts.
2023-05-15 09:51:16 +02:00
tomasklaen
fb1268f0e4
fix: don't translate strings from `input.conf`
...
closes #561
2023-05-15 09:39:07 +02:00
christoph-heinrich
5e2c930551
feat: scroll to new position after moving item in menu ( #552 )
2023-05-05 08:50:17 +02:00
Eva
3369454a68
fix: take window_border_size into account for tooltip positioning ( #554 )
2023-05-04 23:26:28 +02:00
Eva
7b2f36efc1
fix: take window_border_size into account for thumbnail positioning ( #553 )
2023-05-04 23:24:21 +02:00
natural-harmonia-gropius
9960906abb
fix: show empty placeholder for empty menus ( #546 )
2023-05-03 10:46:21 +02:00
Eva
85618617f7
fix: translate fallback chapter title ( #540 )
2023-04-28 09:15:25 +02:00
Eva
f4ef5e8990
fix: translate built-in menu titles ( #539 )
2023-04-27 14:51:50 +02:00
tomasklaen
618e4728f4
fix: remove redundant menu title translation
2023-04-27 08:48:42 +02:00
Eva
26b062d84f
fix: update spanish, french, romanian translations ( #537 )
2023-04-26 20:36:58 +02:00
natural-harmonia-gropius
ff88fabdb6
fix: translate topbar when no file ( #533 )
2023-04-26 15:06:19 +02:00
natural-harmonia-gropius
6216f64ac8
fix: update simplified chinese translation ( #534 )
2023-04-26 15:06:04 +02:00
christoph-heinrich
c15164b390
feat: german translation ( #532 )
2023-04-26 15:02:56 +02:00
Eva
ec907cacc4
feat: romanian translation ( #531 )
2023-04-26 09:03:10 +02:00
Eva
c69df10164
tweak: handle plural in audio track list ( #530 )
2023-04-26 09:02:45 +02:00
Eva
e7f4989da1
fix: use string type for all translation formatting
2023-04-25 21:35:20 +02:00
Eva
1fb0528f9e
fix: take parameter values into account when caching translations
2023-04-25 21:35:20 +02:00
Eva
23abd31025
tweak: include number in fallback edition title ( #529 )
2023-04-25 21:28:20 +02:00
Eva
f403f92c1d
fix: translate audio channels and devices list ( #520 )
2023-04-25 19:21:51 +02:00
tomasklaen
e23eea6e43
feat: `add-intl-directory` APi for scripts to extend localization
2023-04-25 10:51:39 +02:00
tomasklaen
ec4e51e954
feat: dynamic localization strings and caching
...
`t()` now works as `string.format()` → `t('Foo %d %s', 42, 'bar')`
2023-04-25 10:01:57 +02:00
christoph-heinrich
1947f1b614
test: add chapter ranges pattern tests ( #519 )
2023-04-25 09:44:42 +02:00
Eva
64023fbb6c
feat: spanish translation ( #523 )
2023-04-25 09:44:15 +02:00
Eva
987f2ea728
feat: french translation ( #521 )
2023-04-25 09:43:55 +02:00
natural-harmonia-gropius
cbbb40611e
fix: `en` locale not working ( #526 )
2023-04-25 09:39:00 +02:00
natural-harmonia-gropius
55087ca3fa
fix: language priority ( #525 )
2023-04-25 09:36:21 +02:00
Eva
398947d931
perf: cache menu title translation ( #524 )
2023-04-25 09:35:32 +02:00
natural-harmonia-gropius
3c70ffd927
feat: internationalization ( #518 )
...
Adds `languages` option to specify localization language priority.
Built in languages can be found in `scripts/uosc_shared/intl`.
2023-04-24 11:37:58 +02:00
christoph-heinrich
f274101fbd
fix: failing to detect macos platform ( #513 )
...
With the change to use the new `platform` property,
the platform 'macos' also got renamed to 'darwin',
but the platform checks were not adjusted to the new name.
2023-04-19 09:11:56 +02:00
christoph-heinrich
3d55917068
tweak: elements with min_visibility > 0.5 cause a margin ( #508 )
2023-04-16 00:04:17 +02:00
tomasklaen
ec52252380
4.7.0
2023-04-15 10:34:30 +02:00
christoph-heinrich
588609bf45
tweak: treat italic as a width offset rather then a factor ( #506 )
2023-04-15 10:30:23 +02:00
tomasklaen
a0b18eabec
fix: uncalled for autohide timer triggering on init
2023-04-10 22:24:13 +02:00
tomasklaen
e1b663f930
fix: unloading a file to idle was causing stale current directory path
...
closes #502
2023-04-10 22:07:58 +02:00
christoph-heinrich
6d58ef4c99
feat: apply margin to `osd-margin-*` ( #499 )
...
* feat: apply margin to `osd-margin-y` and `osd-margin-x`
The margins were already set for `osc-margins` and
`user-data/osc/margins`, but osd messages have their own properties
`osd-margin-x` and `osd-margin-y`.
Offsetting `osd-margin-x` and `osd-margin-y` by our margin prevents
overlap of osd messages with the GUI.
2023-04-09 08:48:15 +02:00