a面修改
This commit is contained in:
@@ -8,6 +8,7 @@ namespace FGUI.Pack_16
|
|||||||
public partial class pack_panel : GComponent
|
public partial class pack_panel : GComponent
|
||||||
{
|
{
|
||||||
public Controller pay_type;
|
public Controller pay_type;
|
||||||
|
public Controller gift;
|
||||||
public GTextField text_goldnum;
|
public GTextField text_goldnum;
|
||||||
public GTextField text_refreshnum;
|
public GTextField text_refreshnum;
|
||||||
public GTextField text_outnum;
|
public GTextField text_outnum;
|
||||||
@@ -37,6 +38,7 @@ namespace FGUI.Pack_16
|
|||||||
base.ConstructFromXML(xml);
|
base.ConstructFromXML(xml);
|
||||||
|
|
||||||
pay_type = GetControllerAt(0);
|
pay_type = GetControllerAt(0);
|
||||||
|
gift = GetControllerAt(1);
|
||||||
text_goldnum = (GTextField)GetChildAt(9);
|
text_goldnum = (GTextField)GetChildAt(9);
|
||||||
text_refreshnum = (GTextField)GetChildAt(10);
|
text_refreshnum = (GTextField)GetChildAt(10);
|
||||||
text_outnum = (GTextField)GetChildAt(11);
|
text_outnum = (GTextField)GetChildAt(11);
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ namespace FGUI.store_17
|
|||||||
public partial class com_buygold : GComponent
|
public partial class com_buygold : GComponent
|
||||||
{
|
{
|
||||||
public Controller state;
|
public Controller state;
|
||||||
|
public Controller gift;
|
||||||
public GTextField ads;
|
public GTextField ads;
|
||||||
public btn_watchAd2 btn_watch;
|
public btn_watchAd2 btn_watch;
|
||||||
public GButton top_gold;
|
public GButton top_gold;
|
||||||
@@ -25,6 +26,7 @@ namespace FGUI.store_17
|
|||||||
base.ConstructFromXML(xml);
|
base.ConstructFromXML(xml);
|
||||||
|
|
||||||
state = GetControllerAt(0);
|
state = GetControllerAt(0);
|
||||||
|
gift = GetControllerAt(1);
|
||||||
ads = (GTextField)GetChildAt(8);
|
ads = (GTextField)GetChildAt(8);
|
||||||
btn_watch = (btn_watchAd2)GetChildAt(9);
|
btn_watch = (btn_watchAd2)GetChildAt(9);
|
||||||
top_gold = (GButton)GetChildAt(10);
|
top_gold = (GButton)GetChildAt(10);
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -79,7 +79,7 @@ namespace ChillConnect
|
|||||||
AppDispatcher.Instance.AddListener(AppMsg.LoginInit, OnLoadingComplete);
|
AppDispatcher.Instance.AddListener(AppMsg.LoginInit, OnLoadingComplete);
|
||||||
|
|
||||||
// DataMgr.InitPreferences();
|
// DataMgr.InitPreferences();
|
||||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetConfig);
|
// NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetConfig);
|
||||||
}
|
}
|
||||||
private bool ispen = false;
|
private bool ispen = false;
|
||||||
private void OnLoadingComplete(object param = null)
|
private void OnLoadingComplete(object param = null)
|
||||||
@@ -91,7 +91,7 @@ namespace ChillConnect
|
|||||||
ispen = true;
|
ispen = true;
|
||||||
WebviewManager.DakaiACT();
|
WebviewManager.DakaiACT();
|
||||||
}
|
}
|
||||||
TimerHelper.mEasy.AddTimer(2.0f, () =>
|
TimerHelper.mEasy.AddTimer(0.1f, () =>
|
||||||
{
|
{
|
||||||
|
|
||||||
AudioManager.Instance.InitDefaultButtonClickSound(AudioConst.gameclick);
|
AudioManager.Instance.InitDefaultButtonClickSound(AudioConst.gameclick);
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ namespace ChillConnect
|
|||||||
// Object.Destroy(splashCanvas);
|
// Object.Destroy(splashCanvas);
|
||||||
// }
|
// }
|
||||||
if (PlayerPrefs.GetInt("OpenAD", 1) == 0) closeMask();
|
if (PlayerPrefs.GetInt("OpenAD", 1) == 0) closeMask();
|
||||||
|
closeMask();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,7 +106,7 @@ namespace ChillConnect
|
|||||||
GameDispatcher.Instance.AddListener(GameMsg.UpdateHotFixMax, OnUpdateHotFixMax);
|
GameDispatcher.Instance.AddListener(GameMsg.UpdateHotFixMax, OnUpdateHotFixMax);
|
||||||
// GameDispatcher.Instance.AddListener(GameMsg.UpdateHotFixProgress, OnUpdateHotFixProgress);
|
// GameDispatcher.Instance.AddListener(GameMsg.UpdateHotFixProgress, OnUpdateHotFixProgress);
|
||||||
GameDispatcher.Instance.AddListener(GameMsg.Network_reconnection, Reconnection);
|
GameDispatcher.Instance.AddListener(GameMsg.Network_reconnection, Reconnection);
|
||||||
GameDispatcher.Instance.AddListener(GameMsg.CloseMask, closeMask);
|
// GameDispatcher.Instance.AddListener(GameMsg.CloseMask, closeMask);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void RemoveListener()
|
protected override void RemoveListener()
|
||||||
@@ -113,7 +114,7 @@ namespace ChillConnect
|
|||||||
GameDispatcher.Instance.RemoveListener(GameMsg.UpdateHotFixMax, OnUpdateHotFixMax);
|
GameDispatcher.Instance.RemoveListener(GameMsg.UpdateHotFixMax, OnUpdateHotFixMax);
|
||||||
// GameDispatcher.Instance.RemoveListener(GameMsg.UpdateHotFixProgress, OnUpdateHotFixProgress);
|
// GameDispatcher.Instance.RemoveListener(GameMsg.UpdateHotFixProgress, OnUpdateHotFixProgress);
|
||||||
GameDispatcher.Instance.RemoveListener(GameMsg.Network_reconnection, Reconnection);
|
GameDispatcher.Instance.RemoveListener(GameMsg.Network_reconnection, Reconnection);
|
||||||
GameDispatcher.Instance.RemoveListener(GameMsg.CloseMask, closeMask);
|
// GameDispatcher.Instance.RemoveListener(GameMsg.CloseMask, closeMask);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
@@ -73,6 +73,11 @@ namespace ChillConnect
|
|||||||
//刘海屏
|
//刘海屏
|
||||||
ui.gold.y += Screen.safeArea.y;
|
ui.gold.y += Screen.safeArea.y;
|
||||||
}
|
}
|
||||||
|
if (!GameHelper.IsGiftSwitch())
|
||||||
|
{
|
||||||
|
ConfigSystem.GetConfig<PaidgiftModel>().DataList[0].Paid_price = 1;
|
||||||
|
ConfigSystem.GetConfig<PaidgiftModel>().DataList[1].Paid_price = 1;
|
||||||
|
}
|
||||||
|
|
||||||
bool need_scroll = false;
|
bool need_scroll = false;
|
||||||
|
|
||||||
@@ -87,11 +92,11 @@ namespace ChillConnect
|
|||||||
if (need_scroll) ui.panel_parent.scrollPane.ScrollDown(300, false);
|
if (need_scroll) ui.panel_parent.scrollPane.ScrollDown(300, false);
|
||||||
if (need_scroll)
|
if (need_scroll)
|
||||||
{
|
{
|
||||||
TrackKit.SendEvent(GameHelper.getTrackEvenName(),Property.RemoveAdShow);
|
TrackKit.SendEvent(GameHelper.getTrackEvenName(), Property.RemoveAdShow);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TrackKit.SendEvent(GameHelper.getTrackEvenName(),Property.FirstPackShow);
|
TrackKit.SendEvent(GameHelper.getTrackEvenName(), Property.FirstPackShow);
|
||||||
}
|
}
|
||||||
|
|
||||||
ui.gold.GetChild("text_gold").text = GameHelper.Get101Str(GameHelper.GetGoldNumber());
|
ui.gold.GetChild("text_gold").text = GameHelper.Get101Str(GameHelper.GetGoldNumber());
|
||||||
@@ -200,7 +205,7 @@ namespace ChillConnect
|
|||||||
|
|
||||||
|
|
||||||
SaveData.GetSaveObject().is_get_packreward = true;
|
SaveData.GetSaveObject().is_get_packreward = true;
|
||||||
Debug.Log(SaveData.GetSaveObject().is_get_packreward+"////////////////////////");
|
Debug.Log(SaveData.GetSaveObject().is_get_packreward + "////////////////////////");
|
||||||
InitView();
|
InitView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -271,6 +271,11 @@ namespace ChillConnect
|
|||||||
|
|
||||||
void initList()
|
void initList()
|
||||||
{
|
{
|
||||||
|
if (!GameHelper.IsGiftSwitch())
|
||||||
|
{
|
||||||
|
list = list.GetRange(0, 2);
|
||||||
|
list[1].Payment_amount = 1;
|
||||||
|
}
|
||||||
ui.gold_list.itemRenderer = setRemaintime;
|
ui.gold_list.itemRenderer = setRemaintime;
|
||||||
ui.gold_list.numItems = list.Count > 6 ? 6 : list.Count;
|
ui.gold_list.numItems = list.Count > 6 ? 6 : list.Count;
|
||||||
|
|
||||||
@@ -337,12 +342,14 @@ namespace ChillConnect
|
|||||||
if (myAds >= needAds)
|
if (myAds >= needAds)
|
||||||
{
|
{
|
||||||
item.btn_buy.can_buy.selectedIndex = 0;
|
item.btn_buy.can_buy.selectedIndex = 0;
|
||||||
item.btn_buy.btn_text.text = needAds + "ADs";
|
// item.btn_buy.btn_text.text = needAds + "ADs";
|
||||||
|
item.btn_buy.btn_text.text = "Claim";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
item.btn_buy.can_buy.selectedIndex = 1;
|
item.btn_buy.can_buy.selectedIndex = 1;
|
||||||
item.btn_buy.btn_text.text = needAds + "ADs";
|
item.btn_buy.btn_text.text = "Watch " + myAds + "/" + needAds + " AD";
|
||||||
|
// item.btn_buy.btn_text.text = + "ADs";
|
||||||
}
|
}
|
||||||
|
|
||||||
item.text_ads.SetVar("ads", needAds.ToString()).FlushVars();
|
item.text_ads.SetVar("ads", needAds.ToString()).FlushVars();
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ namespace ChillConnect
|
|||||||
DateTimeManager.Instance.SetServerCurrTimestamp(loginData.LoginTime);
|
DateTimeManager.Instance.SetServerCurrTimestamp(loginData.LoginTime);
|
||||||
|
|
||||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetPlayData);
|
NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetPlayData);
|
||||||
|
NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetConfig);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user