1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user