|
@@ -7,7 +7,10 @@ namespace GFGGame
|
|
|
public class NoticeView : BaseWindow
|
|
|
{
|
|
|
private UI_NoticeUI _ui;
|
|
|
-
|
|
|
+ private GameObject _gameObject1;
|
|
|
+ private GameObject _gameObject2;
|
|
|
+ private GoWrapper _wrapper1;
|
|
|
+ private GoWrapper _wrapper2;
|
|
|
|
|
|
public override void Dispose()
|
|
|
{
|
|
@@ -54,11 +57,15 @@ namespace GFGGame
|
|
|
_ui.m_c1.selectedIndex = 1;
|
|
|
_ui.m_listActivity.visible = true;
|
|
|
_ui.m_listNotice.visible = true;
|
|
|
+ _ui.m_buttonCom.visible = true;
|
|
|
OnCtrlChange();
|
|
|
+ AddEffect();
|
|
|
}
|
|
|
|
|
|
protected override void OnHide()
|
|
|
{
|
|
|
+ SceneController.DestroyObjectFromView(_gameObject1, _wrapper1);
|
|
|
+ SceneController.DestroyObjectFromView(_gameObject2, _wrapper2);
|
|
|
base.OnHide();
|
|
|
}
|
|
|
protected override void RemoveEventListener()
|
|
@@ -67,6 +74,20 @@ namespace GFGGame
|
|
|
EventAgent.RemoveEventListener(ConstMessage.NOTICE_SYSTOM_ADD, OnCtrlChange);
|
|
|
EventAgent.RemoveEventListener(ConstMessage.NOTICE_SYSTOM_REMOVE, OnCtrlChange);
|
|
|
}
|
|
|
+
|
|
|
+ private void AddEffect()
|
|
|
+ {
|
|
|
+ //邊框左上角特效
|
|
|
+ string resPath1 = ResPathUtil.GetViewEffectPath("ui_Activity", "Com_window_L_up");
|
|
|
+ SceneController.AddObjectToView(null, null, _ui.m_holderLeftTop, resPath1,
|
|
|
+ out _gameObject1, out _wrapper1);
|
|
|
+
|
|
|
+ //邊框右下角特效
|
|
|
+ string resPath2 = ResPathUtil.GetViewEffectPath("ui_Activity", "Com_window_R_Down");
|
|
|
+ SceneController.AddObjectToView(null, null, _ui.m_holderRightDowm, resPath2,
|
|
|
+ out _gameObject2, out _wrapper2);
|
|
|
+ }
|
|
|
+
|
|
|
private void OnCtrlChange()
|
|
|
{
|
|
|
if (_ui.m_c1.selectedIndex == 0)
|
|
@@ -117,6 +138,7 @@ namespace GFGGame
|
|
|
{
|
|
|
_ui.m_listActivity.visible = false;
|
|
|
_ui.m_listNotice.visible = false;
|
|
|
+ _ui.m_buttonCom.visible = false;
|
|
|
NoticeInfo noticeInfo = (context.sender as GObject).data as NoticeInfo;
|
|
|
if (noticeInfo.content == "")
|
|
|
{
|