CultivationOfBrewing/Assets/Scripts/UI/UIItem/UI_TipsForPracticePanelPPTN...

65 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class UI_TipsForPracticePanelPPTNameItem : BaseItem
{
/// <summary>
/// ×ó²àpptÃû×Ö
/// </summary>
public TextMeshProUGUI PPTName_Text;
/// <summary>
/// ×ÔÉí°´Å¥
/// </summary>
public Toggle PPTName_Tog;
public UI_TipsForPracticePanel practicePanel;
private ToggleGroup toggleGroup;
/// <summary>
/// ³õʼ»¯
/// </summary>
/// <param name="LabelDate"></param>
public void Init(string LabelDate)
{
PPTName_Text.text = LabelDate;
toggleGroup = GetComponentInParent<ToggleGroup>();
PPTName_Tog.group = toggleGroup;
//LoadPPTTest.AdjustImageWidth(PPTName_Text,PPTName_Tog.GetComponent<RectTransform>(), 30, 52);
}
public override void ShowMe()
{
base.ShowMe();
}
public override void HideMe()
{
base.HideMe();
}
//protected override void OnClick(string btnName)
//{
// switch (btnName)
// {
// case "333":
// default:
// break;
// }
//}
//public void RoadPPT(string btnName)
//{
// List<Texture2D> textures = LoadPPTTest.LoadPPTItems(btnName);
// if (textures != null)
// {
// practicePanel.DisplayPPT(textures);
// StartCoroutine(practicePanel.RefreshScrollView());
// }
//}
}