69 lines
1.4 KiB
C#
69 lines
1.4 KiB
C#
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using TMPro;
|
||
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.UI;
|
||
|
|
using UnityEngine.UIElements;
|
||
|
|
using Button = UnityEngine.UI.Button;
|
||
|
|
using Image = UnityEngine.UI.Image;
|
||
|
|
using Toggle = UnityEngine.UI.Toggle;
|
||
|
|
using PhxhSDK;
|
||
|
|
using Framework;
|
||
|
|
|
||
|
|
public class UI_VehiclePartTreeController : UIWindow
|
||
|
|
{
|
||
|
|
//UI GameObj
|
||
|
|
///Auto Gen Start///
|
||
|
|
public Image Image_Bg;
|
||
|
|
public Image Image_TreeBg1;
|
||
|
|
public Button Button_Return;
|
||
|
|
public Button Button_back;
|
||
|
|
public TMP_Text Text_Back;
|
||
|
|
public Button Button_Home;
|
||
|
|
public Image Image_TreeBg0;
|
||
|
|
public Toggle Toggle_Dev;
|
||
|
|
public Toggle Toggle_Reinforce;
|
||
|
|
public Toggle Toggle_BlueMap;
|
||
|
|
public Toggle Toggle_Repair;
|
||
|
|
public PhxhScrollView ScrollView_PartsTree;
|
||
|
|
public Button Button_Back;
|
||
|
|
|
||
|
|
///Auto Gen End///
|
||
|
|
|
||
|
|
// deal with input data
|
||
|
|
public override void PreLoad(object data = null)
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
// Use this for initialization
|
||
|
|
public override void OnInit()
|
||
|
|
{
|
||
|
|
//bind UI GameObj
|
||
|
|
UI_VehiclePartTreeBinder.GetComponents(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
//invoke when open window
|
||
|
|
protected override void OnShowWindow(object data = null)
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
//invoke when reload window
|
||
|
|
protected override void OnReloadWindow(object data = null)
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
//invoke when close window
|
||
|
|
protected override void OnHideWindow()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
//invoke when destroy
|
||
|
|
public override void OnRelease()
|
||
|
|
{
|
||
|
|
base.OnRelease();
|
||
|
|
}
|
||
|
|
}
|