mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 05:08:35 -07:00
Fix infrared var item list setup and app cast
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
#include <gui/modules/loading.h>
|
#include <gui/modules/loading.h>
|
||||||
#include <gui/modules/submenu.h>
|
#include <gui/modules/submenu.h>
|
||||||
#include <gui/modules/dialog_ex.h>
|
#include <gui/modules/dialog_ex.h>
|
||||||
|
#include <gui/modules/variable_item_list.h>
|
||||||
#include <gui/modules/text_input.h>
|
#include <gui/modules/text_input.h>
|
||||||
#include <gui/modules/button_menu.h>
|
#include <gui/modules/button_menu.h>
|
||||||
#include <gui/modules/button_panel.h>
|
#include <gui/modules/button_panel.h>
|
||||||
@@ -108,6 +109,7 @@ struct InfraredApp {
|
|||||||
|
|
||||||
Submenu* submenu; /**< Standard view for displaying application menus. */
|
Submenu* submenu; /**< Standard view for displaying application menus. */
|
||||||
TextInput* text_input; /**< Standard view for receiving user text input. */
|
TextInput* text_input; /**< Standard view for receiving user text input. */
|
||||||
|
VariableItemList* variable_item_list; /**< Standard view for displaying option menus. */
|
||||||
DialogEx* dialog_ex; /**< Standard view for displaying dialogs. */
|
DialogEx* dialog_ex; /**< Standard view for displaying dialogs. */
|
||||||
ButtonMenu* button_menu; /**< Custom view for interacting with IR remotes. */
|
ButtonMenu* button_menu; /**< Custom view for interacting with IR remotes. */
|
||||||
Popup* popup; /**< Standard view for displaying messages. */
|
Popup* popup; /**< Standard view for displaying messages. */
|
||||||
@@ -135,6 +137,7 @@ struct InfraredApp {
|
|||||||
typedef enum {
|
typedef enum {
|
||||||
InfraredViewSubmenu,
|
InfraredViewSubmenu,
|
||||||
InfraredViewTextInput,
|
InfraredViewTextInput,
|
||||||
|
InfraredViewVariableItemList,
|
||||||
InfraredViewDialogEx,
|
InfraredViewDialogEx,
|
||||||
InfraredViewButtonMenu,
|
InfraredViewButtonMenu,
|
||||||
InfraredViewPopup,
|
InfraredViewPopup,
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const char* const infrared_debug_cfg_variables_text[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static void infrared_scene_debug_settings_changed(VariableItem* item) {
|
static void infrared_scene_debug_settings_changed(VariableItem* item) {
|
||||||
Infrared* infrared = variable_item_get_context(item);
|
InfraredApp* infrared = variable_item_get_context(item);
|
||||||
value_index_ir = variable_item_get_current_value_index(item);
|
value_index_ir = variable_item_get_current_value_index(item);
|
||||||
UNUSED(infrared);
|
UNUSED(infrared);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user