This commit is contained in:
MuHua-123
2025-11-12 10:19:42 +08:00
parent 28c121f6d9
commit 64938f1137
70 changed files with 469 additions and 228 deletions
@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
using MuHua;
/// <summary>
/// 消息页面1
/// </summary>
public class UIMessage1 : ModuleUIPanel {
public Label Content => Q<Label>("Content");
public UIMessage1(VisualElement element) : base(element) { }
/// <summary>
/// 设置消息内容
/// </summary>
/// <param name="active"></param>
/// <param name="value"></param>
public void Settings(bool active, string value = "") {
element.EnableInClassList("document-page-hide", !active);
Content.text = value;
}
}