mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-23 06:46:02 +00:00
feat(hud): every reading gets its own switch and a row order (#2454)
* feat: every HUD reading has its own switch and a row order * feat: readings get a reorder dialog of their own * refactor: drag alone moves a reading * fix: the readings list is one column with a switch per row * fix: one scrolling readings list, titled HUD info * refactor: derive the readings order from the defaults instead of a second list * fix: the readings dialog loses its doubled title and follows the saved order * refactor: no title in the readings dialog, its actions sit beside the list * refactor: readings dialog actions take the free side on landscape, the foot on portrait * fix: the readings list follows the size it draws and drags with a live gap * fix: the readings dialog fills the window and keeps scrolling under a held drag * fix: reset restores every size's order, and the new HUD strings are translated * refactor: one table for each size's rows and one for its text sizes * refactor: the readings list swaps rows as the drag passes them, and the list animates the rest * refactor: give the readings rows test tags for the local UI test * refactor: HUD readings follow one configurable row table * refactor: the Strip HUD draws its rows from the same table * refactor: each size orders its rows by its own table, and the frame graph is a row * fix: the readings dialog keeps the row order a drag leaves * fix: each size keeps its own row order, and reset clears only the order * refactor: the graph's size lives in one place, and the section markers are gone * fix: a size change and the first save of a legacy config both keep the order * chore: retrigger the build * feat: a reading can be grabbed with Y and shuffled with the d-pad * feat: controller hints float beside the dialog, and a moved row stays in view * feat: Y grabs on a hold and drops on release, and a touch no longer flips the dialog * fix: keep the key hints off the rows on narrow windows, and let Enter toggle a row
This commit is contained in:
1 parent
d8b3c66b95
commit
269d462825
42 files changed
+1322
-625
No files matched your search
@@ -1330,7 +1330,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
selectedSecondScreenDisplay = selectedSecondScreenDisplay,
|
||||
onHud = { on -> SessionPrefs.setHudEnabled(this@SessionActivity, on); hudOn = on; hud.refresh() },
|
||||
onHudSetting = { key, value -> hudConfig = DroidDeckHudConfig.set(this@SessionActivity, key, value); hud.applyConfig() },
|
||||
onHudOrder = { switches, order -> hudConfig = DroidDeckHudConfig.choose(this@SessionActivity, switches, order); hud.applyConfig() },
|
||||
onHudReset = { hudConfig = DroidDeckHudConfig.reset(this@SessionActivity); hud.applyConfig() },
|
||||
onHudOrderReset = { hudConfig = DroidDeckHudConfig.clearOrder(this@SessionActivity); hud.applyConfig() },
|
||||
onHudExport = { exportHudDiagnostics() },
|
||||
onUpscaler = { m ->
|
||||
SessionPrefs.setUpscaler(this@SessionActivity, m); upscaler = m
|
||||
|
||||
Reference in new issue
Block a user