Copied the 89 uncopied AI*SimulationUtility/extension files defining the AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
37 lines
831 B
C#
37 lines
831 B
C#
using UnityEngine;
|
|
|
|
namespace Wizard;
|
|
|
|
public class ChatLogPlateLayoutNoMember : ChatLogPlateLayoutBase
|
|
{
|
|
[SerializeField]
|
|
private UISprite _spriteBG;
|
|
|
|
public override Vector2 GetPlateSize(ChatMessageInfo messageInfo)
|
|
{
|
|
return GetContentSize(messageInfo);
|
|
}
|
|
|
|
protected override void OnClearDisplay()
|
|
{
|
|
_spriteBG.gameObject.SetActive(value: true);
|
|
}
|
|
|
|
protected override void OnSetDisplayBeforeLoad(ChatMessageInfo messageInfo)
|
|
{
|
|
SetDisplayBG(messageInfo);
|
|
}
|
|
|
|
protected override void OnSetDisplayAfterLoad(ChatMessageInfo messageInfo)
|
|
{
|
|
}
|
|
|
|
private void SetDisplayBG(ChatMessageInfo messageInfo)
|
|
{
|
|
_spriteBG.gameObject.SetActive(value: true);
|
|
Vector2 plateSize = GetPlateSize(messageInfo);
|
|
_spriteBG.width = (int)plateSize.x;
|
|
_spriteBG.height = (int)plateSize.y;
|
|
}
|
|
}
|