UI更改与功能修正

This commit is contained in:
YiHan0621
2025-09-17 16:22:06 +08:00
parent 0fd35d8c21
commit 3f425c9434
191 changed files with 1271 additions and 4307 deletions

View File

@@ -0,0 +1,8 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DeckScroller : MonoBehaviour
{
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2badac8a05537094caad9f78cb2e2e0b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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;

View File

@@ -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
{

View File

@@ -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;
}
}
}