feat(battle-engine): close the AI-simulation subsystem (verbatim)
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.
This commit is contained in:
45
SVSim.BattleEngine/Engine/Wizard/ChatLogPartsNotice.cs
Normal file
45
SVSim.BattleEngine/Engine/Wizard/ChatLogPartsNotice.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class ChatLogPartsNotice : MonoBehaviour
|
||||
{
|
||||
private const int PADDING_NOTICE_MESSAGE_AND_FRAME = 42;
|
||||
|
||||
[SerializeField]
|
||||
private UILabel _labelEndNotice;
|
||||
|
||||
[SerializeField]
|
||||
private UILabel _labelShareNotice;
|
||||
|
||||
public void SetText(string text, bool isEnd)
|
||||
{
|
||||
_labelEndNotice.gameObject.SetActive(isEnd);
|
||||
_labelShareNotice.gameObject.SetActive(!isEnd);
|
||||
if (isEnd)
|
||||
{
|
||||
_labelEndNotice.text = text;
|
||||
}
|
||||
else
|
||||
{
|
||||
_labelShareNotice.text = text;
|
||||
}
|
||||
}
|
||||
|
||||
public Vector2 GetSize(string text, bool isEnd)
|
||||
{
|
||||
UILabel uILabel = _labelShareNotice;
|
||||
if (isEnd)
|
||||
{
|
||||
uILabel = _labelEndNotice;
|
||||
}
|
||||
string text2 = uILabel.text;
|
||||
uILabel.InitializeFont();
|
||||
uILabel.text = text;
|
||||
uILabel.ProcessText();
|
||||
int num = 42 + uILabel.width;
|
||||
int height = uILabel.height;
|
||||
uILabel.text = text2;
|
||||
return new Vector2(num, height);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user