UI更改与功能修正
This commit is contained in:
8
Assets/TcgEngine/Scripts/UI/DeckScroller.cs
Normal file
8
Assets/TcgEngine/Scripts/UI/DeckScroller.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class DeckScroller : MonoBehaviour
|
||||
{
|
||||
|
||||
}
|
||||
11
Assets/TcgEngine/Scripts/UI/DeckScroller.cs.meta
Normal file
11
Assets/TcgEngine/Scripts/UI/DeckScroller.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2badac8a05537094caad9f78cb2e2e0b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -8,9 +8,8 @@ using TcgEngine;
|
||||
namespace TcgEngine.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Deck selector is a dropdown that let the player select a deck before a match
|
||||
/// 牌组选择器是一个下拉菜单,让玩家在比赛前选择牌组
|
||||
/// </summary>
|
||||
|
||||
public class DeckSelector : MonoBehaviour
|
||||
{
|
||||
public DropdownValue deck_dropdown;
|
||||
|
||||
@@ -7,9 +7,8 @@ using UnityEngine.UI;
|
||||
namespace TcgEngine.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Class that let you store a ID with each element of a Dropdown
|
||||
/// 在Dropdown的每个元素中存储ID
|
||||
/// </summary>
|
||||
|
||||
[System.Serializable]
|
||||
public class DropdownValueItem
|
||||
{
|
||||
|
||||
@@ -13,7 +13,8 @@ namespace TcgEngine.UI
|
||||
public class IconButton : MonoBehaviour
|
||||
{
|
||||
public string group;
|
||||
public string value;
|
||||
public TeamTitle valueData;
|
||||
private string value;
|
||||
|
||||
public Image active_img;
|
||||
public Image disabled_img;
|
||||
@@ -42,7 +43,7 @@ namespace TcgEngine.UI
|
||||
|
||||
void Start()
|
||||
{
|
||||
|
||||
value = TeamTitleData.Team(valueData);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
@@ -124,5 +125,10 @@ namespace TcgEngine.UI
|
||||
}
|
||||
return toggles;
|
||||
}
|
||||
|
||||
public string GetValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user