|
@@ -176,22 +176,20 @@ namespace GFGGame
|
|
_ui.m_comHotel0.m_txtNextAdd.text = memberLimitAdd.ToString();
|
|
_ui.m_comHotel0.m_txtNextAdd.text = memberLimitAdd.ToString();
|
|
_ui.m_comHotel0.m_c1.selectedIndex = memberLimitAdd > 0 ? 1 : 0;
|
|
_ui.m_comHotel0.m_c1.selectedIndex = memberLimitAdd > 0 ? 1 : 0;
|
|
|
|
|
|
- int memberDayLimitAdd = nextHotelCfg == null ? 0 : nextHotelCfg.limitDayAdd - hotelCfg.limitDayAdd;
|
|
|
|
- _ui.m_comHotel1.m_txtCurValue.text = hotelCfg.limitDayAdd.ToString();
|
|
|
|
- _ui.m_comHotel1.m_txtNextAdd.text = memberDayLimitAdd.ToString();
|
|
|
|
- _ui.m_comHotel1.m_c1.selectedIndex = memberDayLimitAdd > 0 ? 1 : 0;
|
|
|
|
-
|
|
|
|
- int memberDayExtraLimitAdd = nextHotelCfg == null ? 0 : nextHotelCfg.limitDayAddExtra - hotelCfg.limitDayAddExtra;
|
|
|
|
- _ui.m_comHotel2.m_txtCurValue.text = hotelCfg.limitDayAddExtra.ToString();
|
|
|
|
- _ui.m_comHotel2.m_txtNextAdd.text = memberDayExtraLimitAdd.ToString();
|
|
|
|
- _ui.m_comHotel2.m_c1.selectedIndex = memberDayExtraLimitAdd > 0 ? 1 : 0;
|
|
|
|
-
|
|
|
|
int flowerLimitAdd = nextHotelCfg == null ? 0 : nextHotelCfg.limitPosition - hotelCfg.limitPosition;
|
|
int flowerLimitAdd = nextHotelCfg == null ? 0 : nextHotelCfg.limitPosition - hotelCfg.limitPosition;
|
|
- _ui.m_comHotel3.m_txtCurValue.text = hotelCfg.limitPosition.ToString();
|
|
|
|
- _ui.m_comHotel3.m_txtNextAdd.text = flowerLimitAdd.ToString();
|
|
|
|
- _ui.m_comHotel3.m_c1.selectedIndex = flowerLimitAdd > 0 ? 1 : 0;
|
|
|
|
|
|
+ _ui.m_comHotel1.m_txtCurValue.text = hotelCfg.limitPosition.ToString();
|
|
|
|
+ _ui.m_comHotel1.m_txtNextAdd.text = flowerLimitAdd.ToString();
|
|
|
|
+ _ui.m_comHotel1.m_c1.selectedIndex = flowerLimitAdd > 0 ? 1 : 0;
|
|
|
|
|
|
|
|
+ int memberDayLimitAdd = nextHotelCfg == null ? 0 : nextHotelCfg.limitDayAdd - hotelCfg.limitDayAdd;
|
|
|
|
+ _ui.m_comHotel2.m_txtCurValue.text = hotelCfg.limitDayAdd.ToString();
|
|
|
|
+ _ui.m_comHotel2.m_txtNextAdd.text = memberDayLimitAdd.ToString();
|
|
|
|
+ _ui.m_comHotel2.m_c1.selectedIndex = memberDayLimitAdd > 0 ? 1 : 0;
|
|
|
|
|
|
|
|
+ int memberDayExtraLimitAdd = nextHotelCfg == null ? 0 : nextHotelCfg.limitDayAddExtra - hotelCfg.limitDayAddExtra;
|
|
|
|
+ _ui.m_comHotel3.m_txtCurValue.text = hotelCfg.limitDayAddExtra.ToString();
|
|
|
|
+ _ui.m_comHotel3.m_txtNextAdd.text = memberDayExtraLimitAdd.ToString();
|
|
|
|
+ _ui.m_comHotel3.m_c1.selectedIndex = memberDayExtraLimitAdd > 0 ? 1 : 0;
|
|
|
|
|
|
if (nextHotelCfg == null)
|
|
if (nextHotelCfg == null)
|
|
{
|
|
{
|