using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using XFrame.Core.UI;

public class TaishiPanel : XUIPanel
{
    //float SliderValue = 0;
    //public Text text;
    public TaishiPanel() : base(UIType.Fixed, UIMode.None, UICollider.None)
    {
        uiPath = "Prefabs/TaishiPanel";
    }
    public override void Awake(GameObject go)
    {
        this.transform.Find("TopBG/Panel/btn-zonghe").GetComponent<Button>().onClick.AddListener(() =>
        {
            GameObject.Find("TopBG/Panel/btn-zonghe1").SetActive(true);
            GameObject.Find("TopBG/Panel/btn-director1").SetActive(false);
            ShowPanel<ZonghePanel>();
        });
        this.transform.Find("TopBG/Panel/btn-director").GetComponent<Button>().onClick.AddListener(() =>
        {
            GameObject.Find("TopBG/Panel/btn-director1").SetActive(true);
            GameObject.Find("TopBG/Panel/btn-zonghe1").SetActive(false);
            ShowPanel<DirectorPanel>();
        });
        //SliderValue = this.transform.Find("LeftBG/Panel/txt-ground/Slider").GetComponent<Slider>().value;
        //Debug.Log(SliderValue);
        //text = this.transform.Find("LeftBG/Panel/txt-ground/Slider").GetChild(2).GetComponent<Text>();
        //text.text = SliderValue * 100 + "%";
    }
    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }
}