684
社区成员
发帖
与我相关
我的任务
分享
static UIONSFactory::UIONSAcquireTable createTables[] = {
// UIONS_ID_InMode_Btn_Diag_ConnectExternalMemory
{true, 0, 0, ONSType_BoxInModeWithBtn,
ONSDIsplayTime_continue, ONSDisplayLocation_Middle, ONSTextAlignment_HLeft, ONSTextGrowDirection_Invalid,
StringId::STR_INVALID, UI_P_Com_Def::SF_12, UI_VRController::Type_Invalid, true,
false, false,
{acquireUI_ONS_InModeOneBtn_Diag}, releaeUI_ONS_InMode_Com},
。。。。。。。
这里有一个函数指针
原来重点在这里,在他的下面还有一个初始化的过程,将createTable对结构体进行赋值
static UIONSFactory::UIONSList s_UIONSList = {
UIONS_ID_InMode_Btn_Diag_ConnectExternalMemory,
sizeof(createTables)/sizeof(createTables[0]),
createTables,
UIONS_ID_InMode_Btn_Diag_RemoteWarning
};