Skip to content

Commit

Permalink
[component/tgui/template_view] update
Browse files Browse the repository at this point in the history
  • Loading branch information
versaloon committed Jan 10, 2025
1 parent 8fb0a6b commit fd0b1c2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions source/component/ui/tgui/view/template/vsf_tgui_v_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ fsm_rt_t vsf_tgui_control_v_rendering( vsf_tgui_t* gui_ptr,
vsf_tgui_region_t* dirty_region_ptr, //!< you can ignore the tDirtyRegion for simplicity
vsf_tgui_control_refresh_mode_t mode)
{
if (!control_ptr->__skip_frame) {
// draw control frame
}
return fsm_rt_cpl;
}

Expand Down
1 change: 1 addition & 0 deletions source/component/ui/tgui/view/template/vsf_tgui_v_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ fsm_rt_t vsf_tgui_list_v_init(vsf_tgui_t *gui_ptr, vsf_tgui_list_t* list_ptr)
{
vsf_tgui_container_v_init(gui_ptr, &list_ptr->use_as__vsf_tgui_container_t);
vsf_tgui_container_v_init(gui_ptr, list_ptr->ptList);
list_ptr->ptList->__skip_frame = true;
return fsm_rt_cpl;
}

Expand Down
3 changes: 3 additions & 0 deletions source/component/ui/tgui/view/template/vsf_tgui_v_text_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ fsm_rt_t vsf_tgui_text_list_v_init(vsf_tgui_t *gui_ptr, vsf_tgui_text_list_t* te
{
vsf_tgui_container_v_init(gui_ptr, &text_list_ptr->use_as__vsf_tgui_container_t);
vsf_tgui_container_v_init(gui_ptr, &text_list_ptr->tList.use_as__vsf_tgui_container_t);

text_list_ptr->tList.__skip_frame = true;
text_list_ptr->tList.tContent.__skip_frame = true;
return fsm_rt_cpl;
}

Expand Down
5 changes: 1 addition & 4 deletions source/component/ui/tgui/view/template/vsf_tgui_v_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@
/*============================ TYPES =========================================*/

def_structure(vsf_tgui_v_control_t)
#if __IS_COMPILER_IAR__ || (!defined( __STDC_VERSION__ ) || __STDC_VERSION__ < 199901L)
//please remove this if your structure is not emplty
uint8_t : 8;
#endif
bool __skip_frame;
end_def_structure(vsf_tgui_v_control_t)

def_structure(vsf_tgui_v_container_t)
Expand Down

0 comments on commit fd0b1c2

Please sign in to comment.