提交
This commit is contained in:
@@ -67,6 +67,11 @@ namespace BingoBrain
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
InitView();
|
||||
Set101();
|
||||
Set102();
|
||||
SetName();
|
||||
ui.settings.SetClick(OnClickSetting);
|
||||
// ui.com_avatar.loader_flag.visible = false;
|
||||
// if (!GameHelper.IsGiftSwitch() && (ConfigSystem.GetConfig<CommonModel>().WVswitch == 1))
|
||||
// {
|
||||
// ui.btn_h5.visible = true;
|
||||
@@ -78,7 +83,57 @@ namespace BingoBrain
|
||||
// });
|
||||
|
||||
}
|
||||
private void OnClickSetting()
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.JThinkUI_Open);
|
||||
}
|
||||
|
||||
public void OnUpdate101(object obj = null)
|
||||
{
|
||||
if (obj != null)
|
||||
{
|
||||
var changeValue = (decimal)obj;
|
||||
model.show101 += changeValue;
|
||||
model.show101 = Math.Round(model.show101, 2);
|
||||
Set101(model.show101.ToString("N"));
|
||||
}
|
||||
}
|
||||
|
||||
public void Set101(string c101 = null)
|
||||
{
|
||||
if (c101 == null)
|
||||
{
|
||||
c101 = GameHelper.Get101().ToString("N0");
|
||||
}
|
||||
|
||||
ui.btn_coin.title = $"{c101}";
|
||||
}
|
||||
|
||||
public void OnUpdate102(object obj = null)
|
||||
{
|
||||
if (obj != null)
|
||||
{
|
||||
var changeValue = (decimal)obj;
|
||||
model.show102 += changeValue;
|
||||
model.show102 = Math.Round(model.show102, 2);
|
||||
Set102(model.show102.ToString("N"));
|
||||
}
|
||||
}
|
||||
|
||||
public void Set102(string c102 = null)
|
||||
{
|
||||
if (c102 == null)
|
||||
{
|
||||
c102 = GameHelper.Get102().ToString("N");
|
||||
}
|
||||
|
||||
ui.btn_cash.title = $"{c102}";
|
||||
}
|
||||
|
||||
private void SetName()
|
||||
{
|
||||
// GameHelper.SetName(ui.com_avatar.text_name);
|
||||
}
|
||||
protected override void OnOpen(object args)
|
||||
{
|
||||
}
|
||||
@@ -209,6 +264,8 @@ namespace BingoBrain
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.JTodUI_Open);
|
||||
});
|
||||
model.show101 = GameHelper.Get101();
|
||||
model.show102 = GameHelper.Get102();
|
||||
}
|
||||
|
||||
|
||||
@@ -371,7 +428,7 @@ namespace BingoBrain
|
||||
if (PreferencesMgr.Instance.CardBoardSum >= need_card)
|
||||
{
|
||||
PreferencesMgr.Instance.CardBoardSum -= need_card;
|
||||
PreferencesMgr.Instance.CardBoardIndex=play_index_list[i];
|
||||
PreferencesMgr.Instance.CardBoardIndex = play_index_list[i];
|
||||
ui.com_cards.text_fx.text = $"-{need_card}";
|
||||
ui.touchable = false;
|
||||
ui.com_cards.fx_num.Play();
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace BingoBrain
|
||||
}
|
||||
if (Screen.safeArea.y != 0)
|
||||
{
|
||||
ui.top_group.y=-90;
|
||||
// ui.top_group.y=-90;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user