mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
Preparing the menu classes for Lua Part #3
- Add non locale variants for CMenuOptionNumberChooser and CMenuOptionChooser - Adaptation of CMenuOptionStringChooser, CChangeObserver THX Martii
This commit is contained in:
@@ -194,10 +194,9 @@ int CAudioSelectMenuHandler::doMenu ()
|
||||
int percent[p_count];
|
||||
for (uint i=0; i < p_count; i++) {
|
||||
percent[i] = CZapit::getInstance()->GetPidVolume(0, g_RemoteControl->current_PIDs.APIDs[i].pid);
|
||||
AudioSelector.addItem(new CMenuOptionNumberChooser(NONEXISTANT_LOCALE, &percent[i],
|
||||
i == g_RemoteControl->current_PIDs.PIDs.selected_apid,
|
||||
0, 999, CVolume::getInstance(), 0, 0, NONEXISTANT_LOCALE,
|
||||
g_RemoteControl->current_PIDs.APIDs[i].desc));
|
||||
AudioSelector.addItem(new CMenuOptionNumberChooser(g_RemoteControl->current_PIDs.APIDs[i].desc,
|
||||
&percent[i], i == g_RemoteControl->current_PIDs.PIDs.selected_apid,
|
||||
0, 999, CVolume::getInstance()));
|
||||
}
|
||||
|
||||
return AudioSelector.exec(NULL, "");
|
||||
|
Reference in New Issue
Block a user