mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-03-23 03:21:47 +00:00
Added navigability with dpad.
This commit is contained in:
parent
b007d1f34b
commit
ee2f143f3d
2 changed files with 4 additions and 2 deletions
|
|
@ -57,7 +57,7 @@
|
|||
<panel class="config" data-model="graphics_model">
|
||||
<template src="config-menu__graphics" />
|
||||
</panel>
|
||||
<tab class="tab" id="tab_sound">
|
||||
<tab class="tab" id="tab_sound" style="nav-down: #main_volume_input">
|
||||
<div>Sound</div>
|
||||
<div class="tab__indicator"></div>
|
||||
</tab>
|
||||
|
|
|
|||
|
|
@ -515,7 +515,9 @@ class ConfigTabsetListener : public Rml::EventListener {
|
|||
if (tabs != nullptr) {
|
||||
size_t num_children = tabs->GetNumChildren();
|
||||
for (size_t i = 0; i < num_children; i++) {
|
||||
tabs->GetChild(i)->SetProperty(Rml::PropertyId::NavDown, Rml::Style::Nav::Auto);
|
||||
if (!tabs->GetChild(i)->GetLocalProperty(Rml::PropertyId::NavDown)) {
|
||||
tabs->GetChild(i)->SetProperty(Rml::PropertyId::NavDown, Rml::Style::Nav::Auto);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue