示例#1
0
 private static void OpenNativeDialog(DialogParams dialogParams)
 {
     // TODO:这里应该弹出原生对话框,先简化实现为直接按确认按钮
     if (dialogParams.OnClickConfirm != null)
     {
         dialogParams.OnClickConfirm(dialogParams.UserData);
     }
 }
示例#2
0
 public static void OpenDialog(this UIComponent uiComponent, DialogParams dialogParams)
 {
     if (((ProcedureBase)GameEntry.Procedure.CurrentProcedure).UseNativeDialog)
     {
         OpenNativeDialog(dialogParams);
     }
     else
     {
         uiComponent.OpenUIForm(UIFormId.DialogForm, dialogParams);
     }
 }