| Core/GameEngine/Model/Config/ChatBubbleBoxConfig.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Core/GameEngine/Model/Config/ChatBubbleBoxConfig.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Chat/ChatBubbleBehaviour.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Core/GameEngine/Model/Config/ChatBubbleBoxConfig.cs
@@ -1,6 +1,6 @@ //-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Monday, November 05, 2018 // [ Date ]: Tuesday, November 06, 2018 //-------------------------------------------------------- using UnityEngine; @@ -22,7 +22,8 @@ public string Icon { get ; private set; } public int Jump { get ; private set ; } public string GainTip { get ; private set; } public int[] color; public int[] color; public int top { get ; private set ; } public override string getKey() { @@ -69,7 +70,9 @@ for (int i=0;i<colorStringArray.Length;i++) { int.TryParse(colorStringArray[i],out color[i]); } } top=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; } catch (Exception ex) { Core/GameEngine/Model/Config/ChatBubbleBoxConfig.cs.meta
@@ -1,6 +1,6 @@ fileFormatVersion: 2 guid: d3368c32387593943aae6e197d7cb78f timeCreated: 1541411608 timeCreated: 1541471355 licenseType: Pro MonoImporter: serializedVersion: 2 System/Chat/ChatBubbleBehaviour.cs
@@ -1,5 +1,6 @@ using 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(); } }