h5sdk提交
This commit is contained in:
@@ -9,6 +9,8 @@ using Spine.Unity;
|
||||
using BingoBrain.Core;
|
||||
using FGUI.ACommon;
|
||||
using FairyGUI;
|
||||
using BingoBrain.HotFix;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace BingoBrain
|
||||
{
|
||||
@@ -28,7 +30,7 @@ namespace BingoBrain
|
||||
{
|
||||
uiInfo.packageName = "ACommon";
|
||||
uiInfo.assetName = "com_broadcast1";
|
||||
uiInfo.layerType = UILayerType.Popup;
|
||||
uiInfo.layerType = UILayerType.Normal;
|
||||
uiInfo.isNeedOpenAnim = false;
|
||||
uiInfo.isNeedCloseAnim = false;
|
||||
uiInfo.isNeedUIMask = false;
|
||||
@@ -51,6 +53,7 @@ namespace BingoBrain
|
||||
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
broad_text = Regex.Replace(GameHelper.getDesByKey("makeup_4"), @"<img\s+[^>]*?/>", "<img src='ui://pmf3wbjidz5jpj6'/>");
|
||||
InitView();
|
||||
//ui.y = 241;
|
||||
|
||||
@@ -120,24 +123,26 @@ namespace BingoBrain
|
||||
|
||||
// var sk = FX.Instance.SetFx<SkeletonAnimation>(ui.broad_cast_text.bg_panel, Fx_Type.fx_broad, closeCallback);
|
||||
// sk.state.SetAnimation(0, "animation", true);
|
||||
FX.Instance.SetFx<SkeletonAnimation>(ui.broad_cast_text.bg_panel, Fx_Type.fx_broad, sk =>
|
||||
{
|
||||
// ske_pot = sk;
|
||||
// FX.Instance.SetFx<SkeletonAnimation>(ui.broad_cast_text.bg_panel, Fx_Type.fx_broad, sk =>
|
||||
// {
|
||||
// // ske_pot = sk;
|
||||
|
||||
// // NAAVsa.AddCompleteEvent(cardSpine, OnChangeCardFinish);
|
||||
// // OnChangeCardFinish(null);
|
||||
// NAAVsa.PlayAnim(sk, "animation", true);
|
||||
// }, closeCallback);
|
||||
|
||||
// ui.group_.y = 220;
|
||||
|
||||
// NAAVsa.AddCompleteEvent(cardSpine, OnChangeCardFinish);
|
||||
// OnChangeCardFinish(null);
|
||||
NAAVsa.PlayAnim(sk, "animation", true);
|
||||
}, closeCallback);
|
||||
ui.group_.y = 220;
|
||||
if (Screen.safeArea.y != 0)
|
||||
{//刘海屏
|
||||
ui.group_.y += Screen.safeArea.y;
|
||||
// ui.group_.y += Screen.safeArea.y;
|
||||
}
|
||||
}
|
||||
|
||||
private void OpenRecord()
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.RecordViewUI_Open);
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.RecordViewUI_Open);
|
||||
}
|
||||
private void hideEvent(object sender = null)
|
||||
{
|
||||
@@ -163,6 +168,7 @@ namespace BingoBrain
|
||||
{
|
||||
ui.group_.y = GRoot.inst.height - 300;
|
||||
}
|
||||
string broad_text = "";
|
||||
void timeEvent()
|
||||
{
|
||||
time_count++;
|
||||
@@ -185,8 +191,9 @@ namespace BingoBrain
|
||||
// }
|
||||
|
||||
// time_count = 0;
|
||||
//[color=#63f021][size=32]{0}[/size][/color] claimed <img src='ui://pmf3wbji112epi7'/>[color=#009900][size=36]{1} [/size][/color][color=#efc26b][size=22]{2}[/size][/color]
|
||||
|
||||
|
||||
// Debug.Log(GameHelper.getDesByKey("makeup_4"));
|
||||
//Debug.Log($"barry broad time count======== {time_count}");
|
||||
if (time_count > 20)
|
||||
{
|
||||
@@ -200,11 +207,12 @@ namespace BingoBrain
|
||||
{
|
||||
name = name[..4] + "...";
|
||||
}
|
||||
string broad_text = String.Format(text_ui.hide_text.text, name,
|
||||
"$" + config_money_list[money_index], DateTimeBoardk.Instance.GetCurrDateTime());
|
||||
text_ui.cast_text.text = broad_text;
|
||||
// Tweener tweener = DOTween.To(() => ui.broad.x,
|
||||
// x => ui.broad.x = x, 200, 0.5f);
|
||||
// text_ui.hide_text.text = GameHelper.getDesByKey("makeup_4");
|
||||
|
||||
|
||||
|
||||
string temp_text = String.Format(broad_text, name, GameHelper.Get102Str_new(decimal.Parse(config_money_list[money_index])), DateTimeBoardk.Instance.GetCurrDateTime());
|
||||
text_ui.cast_text.text = temp_text;
|
||||
ui.t0.Play();
|
||||
|
||||
DOVirtual.DelayedCall(3.5f, () =>
|
||||
@@ -214,7 +222,7 @@ namespace BingoBrain
|
||||
ui.t1.Play();
|
||||
});
|
||||
string str = name + "-" + config_money_list[money_index] + "-" + DateTimeBoardk.Instance.GetCurrDateTime();
|
||||
// GameDispatcher.Instance.Dispatch(GameMsg.updateRecordList, str);
|
||||
GameDispatcher.Instance.Dispatch(BingoInfo.updateRecordList, str);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user