From 3fddd64a7e9a1270bf892f7c5fd019c217c7c7c3 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 06 十一月 2018 10:33:34 +0800
Subject: [PATCH] 4398 【1.2】聊天气泡框
---
System/Chat/ChatBubbleBehaviour.cs | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/System/Chat/ChatBubbleBehaviour.cs b/System/Chat/ChatBubbleBehaviour.cs
index 1d5f905..bb24d78 100644
--- a/System/Chat/ChatBubbleBehaviour.cs
+++ b/System/Chat/ChatBubbleBehaviour.cs
@@ -1,5 +1,6 @@
锘縰sing System.Collections;
using System.Collections.Generic;
+using TableConfig;
using UnityEngine;
using UnityEngine.UI;
@@ -99,6 +100,15 @@
m_BubbleIcon.SetSprite(iconKey);
m_Flip.flipHorizontal = requireFlip;
m_Target.color = bubble.color;
+
+ var config = Config.Instance.Get<ChatBubbleBoxConfig>(bubbleId);
+ var position = rect.anchoredPosition;
+ position.y = -config.top;
+ if (rect.anchoredPosition != position)
+ {
+ rect.anchoredPosition = position;
+ }
+
Refresh();
}
}
--
Gitblit v1.8.0