mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-15 10:58:54 +00:00
460 lines
28 KiB
C
460 lines
28 KiB
C
|
|
/*
|
|||
|
|
* Copyright 2022 NXP
|
|||
|
|
* SPDX-License-Identifier: MIT
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
|
|||
|
|
#include "lvgl.h"
|
|||
|
|
#else
|
|||
|
|
#include "lvgl/lvgl.h"
|
|||
|
|
#endif
|
|||
|
|
#include <stdio.h>
|
|||
|
|
#include "gui_guider.h"
|
|||
|
|
#include "events_init.h"
|
|||
|
|
#include "custom.h"
|
|||
|
|
|
|||
|
|
|
|||
|
|
void setup_scr_gangonoff2(lv_ui *ui){
|
|||
|
|
//Write codes gangonoff2
|
|||
|
|
#ifndef CONFIG_DEVICE_SCR_ACT_JUMP
|
|||
|
|
ui->gangonoff2 = lv_obj_create(NULL);
|
|||
|
|
#else
|
|||
|
|
ui->gangonoff2 = lv_obj_create(lv_scr_act());
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2, 0, 0);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2, LV_HOR_RES_MAX, LV_VER_RES_MAX);
|
|||
|
|
lv_obj_center(ui->gangonoff2);
|
|||
|
|
#endif
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_main_main_default);
|
|||
|
|
lv_style_set_bg_color(&style_gangonoff2_main_main_default, lv_color_make(0x00, 0x00, 0x00));
|
|||
|
|
lv_style_set_bg_opa(&style_gangonoff2_main_main_default, 255);
|
|||
|
|
#ifndef CONFIG_DEVICE_SCR_ACT_JUMP
|
|||
|
|
#else
|
|||
|
|
lv_style_set_border_width(&style_gangonoff2_main_main_default, 0);
|
|||
|
|
lv_style_set_border_opa(&style_gangonoff2_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_all(&style_gangonoff2_main_main_default, 0);
|
|||
|
|
#endif
|
|||
|
|
lv_obj_add_style(ui->gangonoff2, &style_gangonoff2_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_img_1
|
|||
|
|
ui->gangonoff2_img_1 = lv_img_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_img_1, 13, 12);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_img_1, 35, 30);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_img_1_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_img_1_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_img_1_main_main_default);
|
|||
|
|
lv_style_set_img_recolor(&style_gangonoff2_img_1_main_main_default, lv_color_make(0xff, 0xff, 0xff));
|
|||
|
|
lv_style_set_img_recolor_opa(&style_gangonoff2_img_1_main_main_default, 0);
|
|||
|
|
lv_style_set_img_opa(&style_gangonoff2_img_1_main_main_default, 255);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_img_1, &style_gangonoff2_img_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_add_flag(ui->gangonoff2_img_1, LV_OBJ_FLAG_CLICKABLE);
|
|||
|
|
lv_img_set_src(ui->gangonoff2_img_1,LVGL_PATH(returnbg2.png));
|
|||
|
|
lv_img_set_pivot(ui->gangonoff2_img_1, 0,0);
|
|||
|
|
lv_img_set_angle(ui->gangonoff2_img_1, 0);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_label_1
|
|||
|
|
ui->gangonoff2_label_1 = lv_label_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_label_1, 43, 18);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_label_1, 280, 30);
|
|||
|
|
//lv_label_set_text(ui->gangonoff2_label_1, "Smart 2 Gang switch");
|
|||
|
|
lv_label_set_text(ui->gangonoff2_label_1,Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_GANG2_NAME]);
|
|||
|
|
|
|||
|
|
lv_label_set_long_mode(ui->gangonoff2_label_1, LV_LABEL_LONG_WRAP);
|
|||
|
|
lv_obj_set_style_text_align(ui->gangonoff2_label_1, LV_TEXT_ALIGN_LEFT, 0);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_label_1_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_label_1_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_label_1_main_main_default);
|
|||
|
|
lv_style_set_radius(&style_gangonoff2_label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_bg_color(&style_gangonoff2_label_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_color(&style_gangonoff2_label_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_dir(&style_gangonoff2_label_1_main_main_default, LV_GRAD_DIR_VER);
|
|||
|
|
lv_style_set_bg_opa(&style_gangonoff2_label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_text_color(&style_gangonoff2_label_1_main_main_default, lv_color_make(0xff, 0xff, 0xff));
|
|||
|
|
lv_style_set_text_font(&style_gangonoff2_label_1_main_main_default, &lv_font_simsun_16);
|
|||
|
|
lv_style_set_text_letter_space(&style_gangonoff2_label_1_main_main_default, 2);
|
|||
|
|
lv_style_set_pad_left(&style_gangonoff2_label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_right(&style_gangonoff2_label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_top(&style_gangonoff2_label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_bottom(&style_gangonoff2_label_1_main_main_default, 0);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_label_1, &style_gangonoff2_label_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_btn_1
|
|||
|
|
ui->gangonoff2_btn_1 = lv_btn_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_btn_1, 1, 1);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_btn_1, 80, 50);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_btn_1_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_btn_1_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_btn_1_main_main_default);
|
|||
|
|
lv_style_set_radius(&style_gangonoff2_btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_bg_color(&style_gangonoff2_btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_color(&style_gangonoff2_btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_dir(&style_gangonoff2_btn_1_main_main_default, LV_GRAD_DIR_VER);
|
|||
|
|
lv_style_set_bg_opa(&style_gangonoff2_btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_shadow_color(&style_gangonoff2_btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_shadow_opa(&style_gangonoff2_btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_border_color(&style_gangonoff2_btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_border_width(&style_gangonoff2_btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_border_opa(&style_gangonoff2_btn_1_main_main_default, 0);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_btn_1, &style_gangonoff2_btn_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
ui->gangonoff2_btn_1_label = lv_label_create(ui->gangonoff2_btn_1);
|
|||
|
|
lv_label_set_text(ui->gangonoff2_btn_1_label, "");
|
|||
|
|
lv_obj_set_style_text_color(ui->gangonoff2_btn_1_label, lv_color_make(0x00, 0x00, 0x00), LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_set_style_pad_all(ui->gangonoff2_btn_1, 0, LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_align(ui->gangonoff2_btn_1_label, LV_ALIGN_CENTER, 0, 0);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_shortcutimg
|
|||
|
|
ui->gangonoff2_shortcutimg = lv_img_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_shortcutimg, 222, 50);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_shortcutimg, 36, 32);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_shortcutimg_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_shortcutimg_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_shortcutimg_main_main_default);
|
|||
|
|
lv_style_set_img_recolor(&style_gangonoff2_shortcutimg_main_main_default, lv_color_make(0xff, 0xff, 0xff));
|
|||
|
|
lv_style_set_img_recolor_opa(&style_gangonoff2_shortcutimg_main_main_default, 0);
|
|||
|
|
lv_style_set_img_opa(&style_gangonoff2_shortcutimg_main_main_default, 255);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_shortcutimg, &style_gangonoff2_shortcutimg_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_add_flag(ui->gangonoff2_shortcutimg, LV_OBJ_FLAG_CLICKABLE);
|
|||
|
|
|
|||
|
|
if(nvs_SysInfo.gangonoff2_scutkey)
|
|||
|
|
{
|
|||
|
|
lv_img_set_src(ui->gangonoff2_shortcutimg,LVGL_PATH(heartred.png));
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
lv_img_set_src(ui->gangonoff2_shortcutimg,LVGL_PATH(devxin.png));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
lv_img_set_pivot(ui->gangonoff2_shortcutimg, 0,0);
|
|||
|
|
lv_img_set_angle(ui->gangonoff2_shortcutimg, 0);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_shortcutkeybtn
|
|||
|
|
ui->gangonoff2_shortcutkeybtn = lv_btn_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_shortcutkeybtn, 207, 48);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_shortcutkeybtn, 66, 39);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_shortcutkeybtn_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_shortcutkeybtn_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_shortcutkeybtn_main_main_default);
|
|||
|
|
lv_style_set_radius(&style_gangonoff2_shortcutkeybtn_main_main_default, 5);
|
|||
|
|
lv_style_set_bg_color(&style_gangonoff2_shortcutkeybtn_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_color(&style_gangonoff2_shortcutkeybtn_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_dir(&style_gangonoff2_shortcutkeybtn_main_main_default, LV_GRAD_DIR_VER);
|
|||
|
|
lv_style_set_bg_opa(&style_gangonoff2_shortcutkeybtn_main_main_default, 0);
|
|||
|
|
lv_style_set_shadow_color(&style_gangonoff2_shortcutkeybtn_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_shadow_opa(&style_gangonoff2_shortcutkeybtn_main_main_default, 0);
|
|||
|
|
lv_style_set_border_color(&style_gangonoff2_shortcutkeybtn_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_border_width(&style_gangonoff2_shortcutkeybtn_main_main_default, 0);
|
|||
|
|
lv_style_set_border_opa(&style_gangonoff2_shortcutkeybtn_main_main_default, 0);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_shortcutkeybtn, &style_gangonoff2_shortcutkeybtn_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
ui->gangonoff2_shortcutkeybtn_label = lv_label_create(ui->gangonoff2_shortcutkeybtn);
|
|||
|
|
lv_label_set_text(ui->gangonoff2_shortcutkeybtn_label, "");
|
|||
|
|
lv_obj_set_style_text_color(ui->gangonoff2_shortcutkeybtn_label, lv_color_make(0x00, 0x00, 0x00), LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_set_style_pad_all(ui->gangonoff2_shortcutkeybtn, 0, LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_align(ui->gangonoff2_shortcutkeybtn_label, LV_ALIGN_CENTER, 0, 0);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_key1bgimg_1
|
|||
|
|
ui->gangonoff2_key1bgimg_1 = lv_img_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_key1bgimg_1, 24, 100);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_key1bgimg_1, 216, 324);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_key1bgimg_1_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_key1bgimg_1_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_key1bgimg_1_main_main_default);
|
|||
|
|
lv_style_set_img_recolor(&style_gangonoff2_key1bgimg_1_main_main_default, lv_color_make(0xff, 0xff, 0xff));
|
|||
|
|
lv_style_set_img_recolor_opa(&style_gangonoff2_key1bgimg_1_main_main_default, 0);
|
|||
|
|
lv_style_set_img_opa(&style_gangonoff2_key1bgimg_1_main_main_default, 255);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_key1bgimg_1, &style_gangonoff2_key1bgimg_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_add_flag(ui->gangonoff2_key1bgimg_1, LV_OBJ_FLAG_CLICKABLE);
|
|||
|
|
//lv_img_set_src(ui->gangonoff2_key1bgimg_1,LVGL_PATH(onoff2on1.png));
|
|||
|
|
lv_img_set_pivot(ui->gangonoff2_key1bgimg_1, 0,0);
|
|||
|
|
lv_img_set_angle(ui->gangonoff2_key1bgimg_1, 0);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_key1ligthimg_1
|
|||
|
|
ui->gangonoff2_key1ligthimg_1 = lv_img_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_key1ligthimg_1, 116, 220);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_key1ligthimg_1, 32, 32);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_key1ligthimg_1_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_key1ligthimg_1_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_key1ligthimg_1_main_main_default);
|
|||
|
|
lv_style_set_img_recolor(&style_gangonoff2_key1ligthimg_1_main_main_default, lv_color_make(0xff, 0xff, 0xff));
|
|||
|
|
lv_style_set_img_recolor_opa(&style_gangonoff2_key1ligthimg_1_main_main_default, 0);
|
|||
|
|
lv_style_set_img_opa(&style_gangonoff2_key1ligthimg_1_main_main_default, 255);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_key1ligthimg_1, &style_gangonoff2_key1ligthimg_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_add_flag(ui->gangonoff2_key1ligthimg_1, LV_OBJ_FLAG_CLICKABLE);
|
|||
|
|
// lv_img_set_src(ui->gangonoff2_key1ligthimg_1,LVGL_PATH(onofflighton1.png));
|
|||
|
|
lv_img_set_pivot(ui->gangonoff2_key1ligthimg_1, 0,0);
|
|||
|
|
lv_img_set_angle(ui->gangonoff2_key1ligthimg_1, 0);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_key1label_1
|
|||
|
|
ui->gangonoff2_key1label_1 = lv_label_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_key1label_1, 24, 270);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_key1label_1, 216, 90);
|
|||
|
|
//lv_label_set_text(ui->gangonoff2_key1label_1, "Chandeliers");
|
|||
|
|
if( strlen((const char*)nvs_Sys_Info_SysInfo.gang2_sw1.Label) )
|
|||
|
|
{
|
|||
|
|
lv_label_set_text_fmt(ui->gangonoff2_key1label_1, "%s",nvs_Sys_Info_SysInfo.gang2_sw1.Label);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
lv_label_set_text(ui->gangonoff2_key1label_1,Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_GANG21]);
|
|||
|
|
}
|
|||
|
|
lv_label_set_long_mode(ui->gangonoff2_key1label_1, LV_LABEL_LONG_DOT);
|
|||
|
|
lv_obj_set_style_text_align(ui->gangonoff2_key1label_1, LV_TEXT_ALIGN_CENTER, 0);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_key1label_1_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_key1label_1_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_key1label_1_main_main_default);
|
|||
|
|
lv_style_set_radius(&style_gangonoff2_key1label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_bg_color(&style_gangonoff2_key1label_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_color(&style_gangonoff2_key1label_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_dir(&style_gangonoff2_key1label_1_main_main_default, LV_GRAD_DIR_VER);
|
|||
|
|
lv_style_set_bg_opa(&style_gangonoff2_key1label_1_main_main_default, 0);
|
|||
|
|
// lv_style_set_text_color(&style_gangonoff2_key1label_1_main_main_default, lv_color_make(0x90, 0x90, 0x90));
|
|||
|
|
if(GET_nvs_Sys_Info_Gang2relay1())
|
|||
|
|
{
|
|||
|
|
//#if !defined(CONFIG_OBJICT_IMAGE)
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key1bgimg_1,LVGL_PATH(onoff2on1.png));//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
// #else
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key1bgimg_1, lv_color_make(CONFIG_ON_COLOR_R, CONFIG_ON_COLOR_G, CONFIG_ON_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key1bgimg_1, lv_color_make(CONFIG_ON_COLOR_R, CONFIG_ON_COLOR_G, CONFIG_ON_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_border_color(ui->gangonoff2_key1bgimg_1, lv_color_make(0xFF, 0xFF, 0xFF), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
//
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key1bgcont_2, lv_color_make(CONFIG_ON_COLOR_R, CONFIG_ON_COLOR_G, CONFIG_ON_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key1bgcont_2, lv_color_make(CONFIG_ON_COLOR_R, CONFIG_ON_COLOR_G, CONFIG_ON_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_border_color(ui->gangonoff2_key1bgcont_2, lv_color_make(0xFF, 0xFF, 0xFF), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
//
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key1bgcont_3, lv_color_make(CONFIG_ON_COLOR_R, CONFIG_ON_COLOR_G, CONFIG_ON_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key1bgcont_3, lv_color_make(CONFIG_ON_COLOR_R, CONFIG_ON_COLOR_G, CONFIG_ON_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
//
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key1bgcont_4, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key1bgcont_4, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// #endif
|
|||
|
|
|
|||
|
|
if(GET_nvs_Sys_Info_Gang21icon())
|
|||
|
|
{
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key1ligthimg_1,onoff_keyligthimgon_ary[GET_nvs_Sys_Info_Gang21icon()]);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key1ligthimg_1,LVGL_PATH(onofflighton7.png));//icon
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
lv_style_set_text_color(&style_gangonoff2_key1label_1_main_main_default, lv_color_make(0xFF, 0xFF, 0xFF));
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
//#if !defined(CONFIG_OBJICT_IMAGE)
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key1bgimg_1,LVGL_PATH(onoff2off1.png));//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
// #else
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key1bgimg_1, lv_color_make(CONFIG_OFF_COLOR_R, CONFIG_OFF_COLOR_G, CONFIG_OFF_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key1bgimg_1, lv_color_make(CONFIG_OFF_COLOR_R, CONFIG_OFF_COLOR_G, CONFIG_OFF_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_border_color(ui->gangonoff2_key1bgimg_1, lv_color_make(0x72, 0x72, 0x72), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
//
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key1bgcont_2, lv_color_make(CONFIG_OFF_COLOR_R, CONFIG_OFF_COLOR_G, CONFIG_OFF_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key1bgcont_2, lv_color_make(CONFIG_OFF_COLOR_R, CONFIG_OFF_COLOR_G, CONFIG_OFF_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_border_color(ui->gangonoff2_key1bgcont_2, lv_color_make(0x72, 0x72, 0x72), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
//
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key1bgcont_3, lv_color_make(CONFIG_OFF_COLOR_R, CONFIG_OFF_COLOR_G, CONFIG_OFF_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key1bgcont_3, lv_color_make(CONFIG_OFF_COLOR_R, CONFIG_OFF_COLOR_G, CONFIG_OFF_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
//
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key1bgcont_4, lv_color_make(0x72, 0x72, 0x72), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key1bgcont_4, lv_color_make(0x72, 0x72, 0x72), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// #endif
|
|||
|
|
|
|||
|
|
if(GET_nvs_Sys_Info_Gang21icon())
|
|||
|
|
{
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key1ligthimg_1,onoff_keyligthimgoff_ary[GET_nvs_Sys_Info_Gang21icon()]);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key1ligthimg_1,LVGL_PATH(onofflightoff7.png));//icon
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
lv_style_set_text_color(&style_gangonoff2_key1label_1_main_main_default, lv_color_make(0x90, 0x90, 0x90));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
lv_style_set_text_font(&style_gangonoff2_key1label_1_main_main_default, &lv_font_simsun_16);
|
|||
|
|
lv_style_set_text_letter_space(&style_gangonoff2_key1label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_left(&style_gangonoff2_key1label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_right(&style_gangonoff2_key1label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_top(&style_gangonoff2_key1label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_bottom(&style_gangonoff2_key1label_1_main_main_default, 0);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_key1label_1, &style_gangonoff2_key1label_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_key1btn_1
|
|||
|
|
ui->gangonoff2_key1btn_1 = lv_btn_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_key1btn_1, 24, 100);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_key1btn_1, 206, 324);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_key1btn_1_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_key1btn_1_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_key1btn_1_main_main_default);
|
|||
|
|
lv_style_set_radius(&style_gangonoff2_key1btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_bg_color(&style_gangonoff2_key1btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_color(&style_gangonoff2_key1btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_dir(&style_gangonoff2_key1btn_1_main_main_default, LV_GRAD_DIR_VER);
|
|||
|
|
lv_style_set_bg_opa(&style_gangonoff2_key1btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_shadow_color(&style_gangonoff2_key1btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_shadow_opa(&style_gangonoff2_key1btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_border_color(&style_gangonoff2_key1btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_border_width(&style_gangonoff2_key1btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_border_opa(&style_gangonoff2_key1btn_1_main_main_default, 0);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_key1btn_1, &style_gangonoff2_key1btn_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
ui->gangonoff2_key1btn_1_label = lv_label_create(ui->gangonoff2_key1btn_1);
|
|||
|
|
lv_label_set_text(ui->gangonoff2_key1btn_1_label, "");
|
|||
|
|
lv_obj_set_style_text_color(ui->gangonoff2_key1btn_1_label, lv_color_make(0xff, 0xff, 0xff), LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_set_style_pad_all(ui->gangonoff2_key1btn_1, 0, LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_align(ui->gangonoff2_key1btn_1_label, LV_ALIGN_CENTER, 0, 0);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_key2bgimg_1
|
|||
|
|
ui->gangonoff2_key2bgimg_1 = lv_img_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_key2bgimg_1, 240, 100);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_key2bgimg_1, 216, 324);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_key2bgimg_1_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_key2bgimg_1_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_key2bgimg_1_main_main_default);
|
|||
|
|
lv_style_set_img_recolor(&style_gangonoff2_key2bgimg_1_main_main_default, lv_color_make(0xff, 0xff, 0xff));
|
|||
|
|
lv_style_set_img_recolor_opa(&style_gangonoff2_key2bgimg_1_main_main_default, 0);
|
|||
|
|
lv_style_set_img_opa(&style_gangonoff2_key2bgimg_1_main_main_default, 255);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_key2bgimg_1, &style_gangonoff2_key2bgimg_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_add_flag(ui->gangonoff2_key2bgimg_1, LV_OBJ_FLAG_CLICKABLE);
|
|||
|
|
// lv_img_set_src(ui->gangonoff2_key2bgimg_1,LVGL_PATH(onoff2on2.png));
|
|||
|
|
lv_img_set_pivot(ui->gangonoff2_key2bgimg_1, 0,0);
|
|||
|
|
lv_img_set_angle(ui->gangonoff2_key2bgimg_1, 0);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_key2ligthimg_1
|
|||
|
|
ui->gangonoff2_key2ligthimg_1 = lv_img_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_key2ligthimg_1, 332, 220);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_key2ligthimg_1, 32, 32);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_key2ligthimg_1_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_key2ligthimg_1_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_key2ligthimg_1_main_main_default);
|
|||
|
|
lv_style_set_img_recolor(&style_gangonoff2_key2ligthimg_1_main_main_default, lv_color_make(0xff, 0xff, 0xff));
|
|||
|
|
lv_style_set_img_recolor_opa(&style_gangonoff2_key2ligthimg_1_main_main_default, 0);
|
|||
|
|
lv_style_set_img_opa(&style_gangonoff2_key2ligthimg_1_main_main_default, 255);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_key2ligthimg_1, &style_gangonoff2_key2ligthimg_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_add_flag(ui->gangonoff2_key2ligthimg_1, LV_OBJ_FLAG_CLICKABLE);
|
|||
|
|
// lv_img_set_src(ui->gangonoff2_key2ligthimg_1,LVGL_PATH(onofflighton2.png));
|
|||
|
|
lv_img_set_pivot(ui->gangonoff2_key2ligthimg_1, 0,0);
|
|||
|
|
lv_img_set_angle(ui->gangonoff2_key2ligthimg_1, 0);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_key2label_1
|
|||
|
|
ui->gangonoff2_key2label_1 = lv_label_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_key2label_1, 240, 270);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_key2label_1, 216, 90);
|
|||
|
|
//lv_label_set_text(ui->gangonoff2_key2label_1, "Light strip");
|
|||
|
|
if( strlen((const char*)nvs_Sys_Info_SysInfo.gang2_sw2.Label) )
|
|||
|
|
{
|
|||
|
|
lv_label_set_text_fmt(ui->gangonoff2_key2label_1, "%s",nvs_Sys_Info_SysInfo.gang2_sw2.Label);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
lv_label_set_text(ui->gangonoff2_key2label_1,Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_GANG22]);
|
|||
|
|
}
|
|||
|
|
lv_label_set_long_mode(ui->gangonoff2_key2label_1, LV_LABEL_LONG_DOT);
|
|||
|
|
lv_obj_set_style_text_align(ui->gangonoff2_key2label_1, LV_TEXT_ALIGN_CENTER, 0);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_key2label_1_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_key2label_1_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_key2label_1_main_main_default);
|
|||
|
|
lv_style_set_radius(&style_gangonoff2_key2label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_bg_color(&style_gangonoff2_key2label_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_color(&style_gangonoff2_key2label_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_dir(&style_gangonoff2_key2label_1_main_main_default, LV_GRAD_DIR_VER);
|
|||
|
|
lv_style_set_bg_opa(&style_gangonoff2_key2label_1_main_main_default, 0);
|
|||
|
|
// lv_style_set_text_color(&style_gangonoff2_key2label_1_main_main_default, lv_color_make(0x90, 0x90, 0x90));
|
|||
|
|
if(GET_nvs_Sys_Info_Gang2relay2())
|
|||
|
|
{
|
|||
|
|
//#if !defined(CONFIG_OBJICT_IMAGE)
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key2bgimg_1,LVGL_PATH(onoff2on2.png));
|
|||
|
|
// #else
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key2bgimg_1, lv_color_make(CONFIG_ON_COLOR_R, CONFIG_ON_COLOR_G, CONFIG_ON_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key2bgimg_1, lv_color_make(CONFIG_ON_COLOR_R, CONFIG_ON_COLOR_G, CONFIG_ON_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_border_color(ui->gangonoff2_key2bgimg_1, lv_color_make(0xFF, 0xFF, 0xFF), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
//
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key2bgcont_4, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key2bgcont_4, lv_color_make(0xff, 0xff, 0xff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// #endif
|
|||
|
|
|
|||
|
|
if(GET_nvs_Sys_Info_Gang22icon())
|
|||
|
|
{
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key2ligthimg_1,onoff_keyligthimgon_ary[GET_nvs_Sys_Info_Gang22icon()]);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key2ligthimg_1,LVGL_PATH(onofflighton2.png));//icon
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
lv_style_set_text_color(&style_gangonoff2_key2label_1_main_main_default, lv_color_make(0xFF, 0xFF, 0xFF));
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
//#if !defined(CONFIG_OBJICT_IMAGE)
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key2bgimg_1,LVGL_PATH(onoff2off2.png));
|
|||
|
|
// #else
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key2bgimg_1, lv_color_make(CONFIG_OFF_COLOR_R, CONFIG_OFF_COLOR_G, CONFIG_OFF_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key2bgimg_1, lv_color_make(CONFIG_OFF_COLOR_R, CONFIG_OFF_COLOR_G, CONFIG_OFF_COLOR_B), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_border_color(ui->gangonoff2_key2bgimg_1, lv_color_make(0x72, 0x72, 0x72), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
//
|
|||
|
|
// lv_obj_set_style_bg_color(ui->gangonoff2_key2bgcont_4, lv_color_make(0x72, 0x72, 0x72), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// lv_obj_set_style_bg_grad_color(ui->gangonoff2_key2bgcont_4, lv_color_make(0x72, 0x72, 0x72), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
// #endif
|
|||
|
|
|
|||
|
|
if(GET_nvs_Sys_Info_Gang22icon())
|
|||
|
|
{
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key2ligthimg_1,onoff_keyligthimgoff_ary[GET_nvs_Sys_Info_Gang22icon()]);
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
lv_img_set_src(ui->gangonoff2_key2ligthimg_1,LVGL_PATH(onofflightoff2.png));//icon
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
lv_style_set_text_color(&style_gangonoff2_key2label_1_main_main_default, lv_color_make(0x90, 0x90, 0x90));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
lv_style_set_text_font(&style_gangonoff2_key2label_1_main_main_default, &lv_font_simsun_16);
|
|||
|
|
lv_style_set_text_letter_space(&style_gangonoff2_key2label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_left(&style_gangonoff2_key2label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_right(&style_gangonoff2_key2label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_top(&style_gangonoff2_key2label_1_main_main_default, 0);
|
|||
|
|
lv_style_set_pad_bottom(&style_gangonoff2_key2label_1_main_main_default, 0);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_key2label_1, &style_gangonoff2_key2label_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
|
|||
|
|
//Write codes gangonoff2_key2btn_1
|
|||
|
|
ui->gangonoff2_key2btn_1 = lv_btn_create(ui->gangonoff2);
|
|||
|
|
lv_obj_set_pos(ui->gangonoff2_key2btn_1, 250, 100);
|
|||
|
|
lv_obj_set_size(ui->gangonoff2_key2btn_1, 206, 324);
|
|||
|
|
|
|||
|
|
//Write style state: LV_STATE_DEFAULT for style_gangonoff2_key2btn_1_main_main_default
|
|||
|
|
static lv_style_t style_gangonoff2_key2btn_1_main_main_default;
|
|||
|
|
lv_style_reset(&style_gangonoff2_key2btn_1_main_main_default);
|
|||
|
|
lv_style_set_radius(&style_gangonoff2_key2btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_bg_color(&style_gangonoff2_key2btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_color(&style_gangonoff2_key2btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_bg_grad_dir(&style_gangonoff2_key2btn_1_main_main_default, LV_GRAD_DIR_VER);
|
|||
|
|
lv_style_set_bg_opa(&style_gangonoff2_key2btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_shadow_color(&style_gangonoff2_key2btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_shadow_opa(&style_gangonoff2_key2btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_border_color(&style_gangonoff2_key2btn_1_main_main_default, lv_color_make(0x21, 0x95, 0xf6));
|
|||
|
|
lv_style_set_border_width(&style_gangonoff2_key2btn_1_main_main_default, 0);
|
|||
|
|
lv_style_set_border_opa(&style_gangonoff2_key2btn_1_main_main_default, 0);
|
|||
|
|
lv_obj_add_style(ui->gangonoff2_key2btn_1, &style_gangonoff2_key2btn_1_main_main_default, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|||
|
|
ui->gangonoff2_key2btn_1_label = lv_label_create(ui->gangonoff2_key2btn_1);
|
|||
|
|
lv_label_set_text(ui->gangonoff2_key2btn_1_label, "");
|
|||
|
|
lv_obj_set_style_text_color(ui->gangonoff2_key2btn_1_label, lv_color_make(0xff, 0xff, 0xff), LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_set_style_pad_all(ui->gangonoff2_key2btn_1, 0, LV_STATE_DEFAULT);
|
|||
|
|
lv_obj_align(ui->gangonoff2_key2btn_1_label, LV_ALIGN_CENTER, 0, 0);
|
|||
|
|
|
|||
|
|
//Init events for screen
|
|||
|
|
events_init_gangonoff2(ui);
|
|||
|
|
}
|