73e62c4dfd
- 在 CMakeLists.txt 中添加 ui_Screen2.c 源文件以支持新屏幕 - 新增 ui_events.c 和 ui_events.h,定义按钮点击事件处理函数 - 实现 ui_Screen2.c,构建第二屏幕的 UI 组件和事件回调 - 更新 ui.c 以初始化和加载第二屏幕 - 更新相关头文件,确保新屏幕与现有结构兼容
40 lines
663 B
C
40 lines
663 B
C
// This file was generated by SquareLine Studio
|
|
// SquareLine Studio version: SquareLine Studio 1.6.1
|
|
// LVGL version: 9.2.2
|
|
// Project name: HeavenlyHeroStar
|
|
|
|
#ifndef _HEAVENLYHEROSTAR_UI_H
|
|
#define _HEAVENLYHEROSTAR_UI_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "lvgl.h"
|
|
|
|
#include "ui_helpers.h"
|
|
#include "ui_events.h"
|
|
|
|
|
|
///////////////////// SCREENS ////////////////////
|
|
|
|
#include "screens/ui_Screen1.h"
|
|
#include "screens/ui_Screen2.h"
|
|
|
|
///////////////////// VARIABLES ////////////////////
|
|
|
|
|
|
// EVENTS
|
|
|
|
extern lv_obj_t * ui____initial_actions0;
|
|
|
|
// UI INIT
|
|
void ui_init(void);
|
|
void ui_destroy(void);
|
|
|
|
#ifdef __cplusplus
|
|
} /*extern "C"*/
|
|
#endif
|
|
|
|
#endif
|