public static void OnShowFlowerNumChoose(bool bSuccess, object param) { if (!bSuccess) { return; } if (null == param) { LogModule.ErrorLog("ShowFlowerNumChoose:param not define."); return; } FlowerNumChooseInfo curInfo = param as FlowerNumChooseInfo; if (curInfo == null) { LogModule.ErrorLog("FlowerNumChooseInfo:curInfo is null."); return; } UseFlowerNumChooseController.Instance().SetData(curInfo._minValue, curInfo._maxValue, curInfo._szTitle, curInfo._okClickFun, curInfo._stepValue, curInfo._itemName, curInfo._dataid); }
public static void OpenWindow(int minValue, int maxValue, string szTitle, OKClickDelegate okClickFun, int stepValue, string itemName, int dataid) { FlowerNumChooseInfo curInfo = new FlowerNumChooseInfo(minValue, maxValue, szTitle, okClickFun, stepValue, itemName, dataid); UIManager.ShowUI(UIInfo.FlowerNumChoose, OnShowFlowerNumChoose, curInfo); }