public FlowerNumChooseInfo(int minValue, int maxVaue, string szTitle, OKClickDelegate okClickFun, int stepValue, string itemName, int dataid)
 {
     _minValue   = minValue;
     _maxValue   = maxVaue;
     _szTitle    = szTitle;
     _okClickFun = okClickFun;
     _stepValue  = stepValue;
     _itemName   = itemName;
     _dataid     = dataid;
 }
Beispiel #2
0
 public NumChooseInfo(int minValue, int maxVaue, string szTitle, OKClickDelegate okClickFun, int stepValue, string totalTitle = "", string OkButtomTitle = "", bool showComsume = false, string comsumeName = "", string comsumeicon = "", int comsumeNum = 0)
 {
     _minValue      = minValue;
     _maxValue      = maxVaue;
     _szTitle       = szTitle;
     _okClickFun    = okClickFun;
     _stepValue     = stepValue;
     _totalTitle    = totalTitle;
     _okbuttomTitle = OkButtomTitle;
     _showComsume   = showComsume;
     _comsumeName   = comsumeName;
     _comsumeicon   = comsumeicon;
     _comsumeNum    = comsumeNum;
 }
 public void SetData(int minValue, int maxVaue, string szTitle, OKClickDelegate okClickFun, int stepValue, string itemName, int dataid)
 {
     delOkClick = okClickFun;
     if (maxVaue <= 999)
     {
         m_maxValue = maxVaue;
     }
     m_minValue     = minValue;
     m_curNum       = minValue;
     inputNum.value = minValue.ToString();
     title.text     = szTitle;
     m_stepValue    = stepValue > 0 ? stepValue : 1;
     m_itemName     = itemName;
     m_dataid       = dataid;
 }
Beispiel #4
0
 public void SetData(int minValue, int maxVaue, string szTitle, OKClickDelegate okClickFun, int stepValue, string totalTitle = "", string OkButtomTitle = "", bool showComsume = false, string comsumeName = "", string comsumeicon = "", int comsumeNum = 0)
 {
     delOkClick     = okClickFun;
     m_maxValue     = maxVaue;
     m_minValue     = minValue;
     m_curNum       = minValue;
     inputNum.value = minValue.ToString();
     title.text     = szTitle;
     m_stepValue    = stepValue > 0 ? stepValue : 1;
     //新增
     m_TotalTitle.text   = totalTitle;
     m_OkButomTitle.text = OkButtomTitle;
     NGUITools.SetActive(m_ComsumePart, showComsume);
     if (!string.IsNullOrEmpty(comsumeName))
     {
         m_ComsumeName.text = comsumeName;
     }
     m_ComsumeIcon.spriteName = comsumeicon;
     m_unitPrice = comsumeNum;
     UpdateConsumeArea();
 }
    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);
    }
Beispiel #6
0
    /// <summary>
    /// Select the quantity
    /// </summary>
    /// <param name="minValue"></param>
    /// <param name="maxValue"></param>
    /// <param name="szTitle"></param>
    /// <param name="okClickFun"></param>
    /// <param name="stepValue"></param>
    /// <param name="totalTitle"></param>
    /// <param name="OkButtomTitle"></param>
    /// <param name="showComsume"></param>
    /// <param name="comsumeName"></param>
    /// <param name="comsumeicon"></param>
    /// <param name="comsumeNum">unit price</param>
    public static void OpenWindow(int minValue, int maxValue, string szTitle, OKClickDelegate okClickFun, int stepValue, string totalTitle = "", string OkButtomTitle = "", bool showComsume = false, string comsumeName = "", string comsumeicon = "", int comsumeNum = 0)
    {
        NumChooseInfo curInfo = new NumChooseInfo(minValue, maxValue, szTitle, okClickFun, stepValue, totalTitle, OkButtomTitle, showComsume, comsumeName, comsumeicon, comsumeNum);

        UIManager.ShowUI(UIInfo.NumChoose, OnShowNumChoose, curInfo);
    }