| | |
| | | { |
| | | TipOptionMsg(titleId, Language.StringByID(msgId), callBackAction); |
| | | } |
| | | |
| | | public void TipOptionMsg(int titleId, int msgId,int cancelTextId,int confrimTextId, Action callBackAction) |
| | | { |
| | | TipOptionMsg(titleId, Language.StringByID(msgId), callBackAction, 0,cancelTextId, confrimTextId); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载提示弹窗 |
| | | /// </summary> |
| | | /// <param name="titleId"></param> |
| | | /// <param name="msgId"></param> |
| | | /// <param name="callBackAction"></param> |
| | | public void TipOptionMsg(int titleId, string msg, Action callBackAction,int extraHeight = 0) |
| | | public void TipOptionMsg(int titleId, string msg, Action callBackAction,int extraHeight = 0, int cancelTextId = StringId.Cancel, int confrimTextId = StringId.Confirm) |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | //SelectedTextColor = CSS_Color.MainBackgroundColor, |
| | | //SelectedBackgroundColor = CSS_Color.MainColor, |
| | | TextID = StringId.Cancel, |
| | | TextID = cancelTextId, |
| | | }; |
| | | contentView.AddChidren(btnCancel); |
| | | |
| | |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | TextID = StringId.Confirm, |
| | | TextID = confrimTextId, |
| | | }; |
| | | contentView.AddChidren(btnConfirm); |
| | | //例:右下圆角 大小为50 |