Commit 76000034 authored by SherryChaos's avatar SherryChaos

fix missing of null name mates

parent 2cbe728e
This diff is collapsed.
fileFormatVersion: 2
guid: 78900b3e3b82fdc4e929b3af45506c66
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
......@@ -25,7 +25,7 @@ namespace MDPro3
if (!nameLoaded)
{
var listName = instance.GetName(id, m_name);
if(listName != nullString)
if(listName != nullString || string.IsNullOrEmpty(m_name))
m_name = listName;
nameLoaded = true;
}
......
......@@ -56,7 +56,7 @@ public class OnlineDeckViewer : Servant
IEnumerator RefreshAsync()
{
var task = OnlineDeck.FetchSimpleDeckList(100000, searchDeckName.text, searchAuthorName.text);
var task = OnlineDeck.FetchSimpleDeckList(10000, searchDeckName.text, searchAuthorName.text);
yield return new WaitUntil(() => task.IsCompleted);
if(task.Status == System.Threading.Tasks.TaskStatus.RanToCompletion)
......@@ -104,10 +104,10 @@ public class OnlineDeckViewer : Servant
List<string[]> tasks = new List<string[]>();
foreach (var deck in decks)
{
if (!deck.deckName.ToLower().Contains(searchDeckName.text.ToLower()))
continue;
if (!deck.deckContributor.ToLower().Contains(searchAuthorName.text.ToLower()))
continue;
//if (!deck.deckName.ToLower().Contains(searchDeckName.text.ToLower()))
// continue;
//if (!deck.deckContributor.ToLower().Contains(searchAuthorName.text.ToLower()))
// continue;
var task = new string[10]
{
......
......@@ -52,7 +52,7 @@ namespace MDPro3.UI
textDeckName.text = deckName;
textAuthorName.text = "By " + authorName;
textLike.text = like.ToString();
textDate.text = lastDate.Substring(0, 10);
textDate.text = lastDate;
var casePath = deckCase.ToString();
var load = TextureManager.LoadItemIcon(casePath);
while (load.MoveNext())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment