using UnityEngine;
|
using UnityEngine.UI;
|
|
|
namespace Snxxz.UI
|
{
|
public class CrossServerOneVsOneDanLVWin : Window
|
{
|
[SerializeField] ScrollerController lvCtrl;
|
[SerializeField] Button closeBtn;
|
#region Built-in
|
protected override void BindController()
|
{
|
|
}
|
protected override void AddListeners()
|
{
|
closeBtn.AddListener(CloseClick);
|
}
|
protected override void OnPreOpen()
|
{
|
SetDisplay();
|
}
|
protected override void OnAfterOpen()
|
{
|
|
}
|
|
protected override void OnPreClose()
|
{
|
|
}
|
protected override void OnAfterClose()
|
{
|
|
}
|
#endregion
|
|
private void SetDisplay()
|
{
|
var lvConfigs = CrossServerArenaConfig.GetValues();
|
lvCtrl.Refresh();
|
for(int i = lvConfigs.Count - 1; i > -1; i--)
|
{
|
int danLv = lvConfigs[i].DanLV;
|
lvCtrl.AddCell(ScrollerDataType.Header,danLv);
|
}
|
lvCtrl.Restart();
|
}
|
}
|
}
|