mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
30 lines
791 B
C#
30 lines
791 B
C#
using MoleMole.Config;
|
|
using UnityEngine.UI;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class EndlessInfoDialogContext : BaseDialogContext
|
|
{
|
|
public EndlessInfoDialogContext()
|
|
{
|
|
config = new ContextPattern
|
|
{
|
|
contextName = "EndlessInfoDialogContext",
|
|
viewPrefabPath = "UI/Menus/Dialog/EndlessInfoDialog"
|
|
};
|
|
}
|
|
|
|
protected override void BindViewCallbacks()
|
|
{
|
|
BindViewCallback(base.view.transform.Find("BG").GetComponent<Button>(), Destroy);
|
|
BindViewCallback(base.view.transform.Find("Dialog/CloseBtn").GetComponent<Button>(), Destroy);
|
|
}
|
|
|
|
protected override bool SetupView()
|
|
{
|
|
base.view.transform.Find("Dialog/Content/ScrollView/Viewport/Content/Text").GetComponent<Text>().text = LocalizationGeneralLogic.GetText("Menu_Desc_EndlessInfo");
|
|
return false;
|
|
}
|
|
}
|
|
}
|