1 Star 0 Fork 0

RCSN/d1s_bugger_ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
d1s_bugger_ui.guiguider 10.64 KB
一键复制 编辑 原始数据 按行查看 历史
RCSN 提交于 2021-12-19 22:59 . 加入初始demo 切换五张图片
{
"projectName": "hello_demo",
"boardPlatformSettings": {
"resolution": {
"width": "800",
"height": "480"
},
"color_depth": 32,
"name": "Simulator",
"OS": "Windows/macOS/Linux",
"mcu": "Simulator",
"mcuxpresso_config": {
"CMAKE_BUILD_TYPE": "null"
}
},
"BuildStatus": {
"supportPXP": false,
"enable_pxp": false
},
"version": "1.0.0-GA",
"lvConf": {
"LV_HOR_RES_MAX": "(800)",
"LV_VER_RES_MAX": "(480)",
"LV_COLOR_DEPTH": 32,
"LV_MEM_CUSTOM": "0",
"LV_MEM_SIZE": "320",
"LV_MEM_ADR": "0",
"LV_MEM_AUTO_DEFRAG": "1",
"LV_MEM_CUSTOM_INCLUDE": "<stdlib.h>",
"LV_MEM_CUSTOM_ALLOC": "malloc",
"LV_MEM_CUSTOM_FREE": "free",
"LV_USE_GPU": "1",
"LV_USE_GPU_NXP_PXP": "~~",
"LV_USE_GPU_NXP_PXP_DEFAULT_OSA": "~~",
"LV_USE_GPU_NXP_VG_LITE": "~~"
},
"ImportFonts": {
"simsun": "simsun.woff",
"montserratMedium": "Montserrat-medium.ttf"
},
"FrontJson": [
{
"name": "screen",
"id": "screen",
"list": [
{
"name": "img_num0",
"type": "img",
"left": 0,
"top": 0,
"is_move_animation": false,
"desX": 0,
"desY": 0,
"path_type": "linear",
"duration": 100,
"width": 800,
"height": 480,
"img_path": "pic1.jpg",
"rotate": 0,
"x": 0,
"y": 0,
"color_format": "true-color-alpha",
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255,
"style": [
{
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255
}
],
"id": "8mklducb",
"default_style": false,
"event": []
},
{
"name": "img_num1",
"type": "img",
"left": 0,
"top": 0,
"is_move_animation": false,
"desX": 0,
"desY": 0,
"path_type": "linear",
"duration": 100,
"width": 800,
"height": 480,
"img_path": "pic2.jpg",
"rotate": 0,
"x": 0,
"y": 0,
"color_format": "true-color-alpha",
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255,
"style": [
{
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255
}
],
"id": "k7posbc1",
"default_style": false,
"event": []
},
{
"name": "img_num2",
"type": "img",
"left": 0,
"top": 0,
"is_move_animation": false,
"desX": 0,
"desY": 0,
"path_type": "linear",
"duration": 100,
"width": 800,
"height": 480,
"img_path": "pic3.jpg",
"rotate": 0,
"x": 0,
"y": 0,
"color_format": "true-color-alpha",
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255,
"style": [
{
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255
}
],
"id": "cj49hlix",
"default_style": false
},
{
"name": "img_num3",
"type": "img",
"left": 0,
"top": 0,
"is_move_animation": false,
"desX": 0,
"desY": 0,
"path_type": "linear",
"duration": 100,
"width": 800,
"height": 480,
"img_path": "pic4.jpg",
"rotate": 0,
"x": 0,
"y": 0,
"color_format": "true-color-alpha",
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255,
"style": [
{
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255
}
],
"id": "gpq8h90c",
"default_style": false
},
{
"name": "img_num4",
"type": "img",
"left": 0,
"top": 0,
"is_move_animation": false,
"desX": 0,
"desY": 0,
"path_type": "linear",
"duration": 100,
"width": 800,
"height": 480,
"img_path": "pic5.jpg",
"rotate": 0,
"x": 0,
"y": 0,
"color_format": "true-color-alpha",
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255,
"style": [
{
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255
}
],
"id": "pxge1he1",
"default_style": false,
"event": [
{
"src": "img_num4",
"trigger": "clicked",
"dst": "",
"action": "excute_c_code",
"include": "static uint8_t pic_num = 1;",
"code": "\t\tpic_num ++;\n\t\tif(pic_num == 6) pic_num = 1;\n\t\tswitch (pic_num)\n\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\tlv_img_set_src(guider_ui.screen_img_num4,&_pic1_alpha_800x480);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tlv_img_set_src(guider_ui.screen_img_num4,&_pic2_alpha_800x480);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tlv_img_set_src(guider_ui.screen_img_num4,&_pic3_alpha_800x480);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tlv_img_set_src(guider_ui.screen_img_num4,&_pic4_alpha_800x480);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tlv_img_set_src(guider_ui.screen_img_num4,&_pic5_alpha_800x480);\n\t\t\t\t\tbreak;\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t}"
}
]
}
]
}
],
"FrontStatus": {},
"Application": {
"name": "testingJson",
"version": "test_v1",
"default_scr": "screen",
"screen": [
{
"name": "screen",
"type": "scr",
"widgets": [
{
"name": "screen_img_num0",
"type": "img",
"pos": [
0,
0
],
"size": [
800,
480
],
"is_move_animation": false,
"path_type": "linear",
"move_animation": {
"des_pos": [
0,
0
],
"duration": 100
},
"default_style": false,
"img_path": "H:\\CN-tech\\cn-tech\\CN-D1S\\software\\d1s_bugger_ui\\import\\pic1.jpg",
"color_format": "true-color-alpha",
"rotate": 0,
"pivot": "0,0",
"style": [
{
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255
}
]
},
{
"name": "screen_img_num1",
"type": "img",
"pos": [
0,
0
],
"size": [
800,
480
],
"is_move_animation": false,
"path_type": "linear",
"move_animation": {
"des_pos": [
0,
0
],
"duration": 100
},
"default_style": false,
"img_path": "H:\\CN-tech\\cn-tech\\CN-D1S\\software\\d1s_bugger_ui\\import\\pic2.jpg",
"color_format": "true-color-alpha",
"rotate": 0,
"pivot": "0,0",
"style": [
{
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255
}
]
},
{
"name": "screen_img_num2",
"type": "img",
"pos": [
0,
0
],
"size": [
800,
480
],
"is_move_animation": false,
"path_type": "linear",
"move_animation": {
"des_pos": [
0,
0
],
"duration": 100
},
"default_style": false,
"img_path": "H:\\CN-tech\\cn-tech\\CN-D1S\\software\\d1s_bugger_ui\\import\\pic3.jpg",
"color_format": "true-color-alpha",
"rotate": 0,
"pivot": "0,0",
"style": [
{
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255
}
]
},
{
"name": "screen_img_num3",
"type": "img",
"pos": [
0,
0
],
"size": [
800,
480
],
"is_move_animation": false,
"path_type": "linear",
"move_animation": {
"des_pos": [
0,
0
],
"duration": 100
},
"default_style": false,
"img_path": "H:\\CN-tech\\cn-tech\\CN-D1S\\software\\d1s_bugger_ui\\import\\pic4.jpg",
"color_format": "true-color-alpha",
"rotate": 0,
"pivot": "0,0",
"style": [
{
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255
}
]
},
{
"name": "screen_img_num4",
"type": "img",
"pos": [
0,
0
],
"size": [
800,
480
],
"is_move_animation": false,
"path_type": "linear",
"move_animation": {
"des_pos": [
0,
0
],
"duration": 100
},
"default_style": false,
"img_path": "H:\\CN-tech\\cn-tech\\CN-D1S\\software\\d1s_bugger_ui\\import\\pic5.jpg",
"color_format": "true-color-alpha",
"rotate": 0,
"pivot": "0,0",
"style": [
{
"part": "LV_IMG_PART_MAIN",
"state": "LV_STATE_DEFAULT",
"disable": false,
"image_recolor": "#ffffff",
"image_recolor_opa": 0,
"image_opa": 255
}
]
}
]
}
],
"event": [
{
"src": "screen_img_num4",
"trigger": "clicked",
"dst": "",
"action": "excute_c_code",
"include": "static uint8_t pic_num = 1;",
"code": "\t\tpic_num ++;\n\t\tif(pic_num == 6) pic_num = 1;\n\t\tswitch (pic_num)\n\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\tlv_img_set_src(guider_ui.screen_img_num4,&_pic1_alpha_800x480);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tlv_img_set_src(guider_ui.screen_img_num4,&_pic2_alpha_800x480);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tlv_img_set_src(guider_ui.screen_img_num4,&_pic3_alpha_800x480);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tlv_img_set_src(guider_ui.screen_img_num4,&_pic4_alpha_800x480);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tlv_img_set_src(guider_ui.screen_img_num4,&_pic5_alpha_800x480);\n\t\t\t\t\tbreak;\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t}"
}
]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/RCSN/d1s_bugger_ui.git
git@gitee.com:RCSN/d1s_bugger_ui.git
RCSN
d1s_bugger_ui
d1s_bugger_ui
master

搜索帮助