Commit a18b200a authored by SherryChaos's avatar SherryChaos

bug fix

parent df03b0d8
......@@ -537,8 +537,8 @@ MonoBehaviour:
text: {fileID: 1398959084}
input: {fileID: 1775272994}
mode_Window: 0
mode_Android: 0
mode_IOS: 1
mode_Android: 1
mode_IOS: 0
fullCopy: 0
--- !u!114 &916768208
MonoBehaviour:
......
......@@ -7991,7 +7991,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 600.0002, y: 0}
m_AnchoredPosition: {x: 600.00024, y: 0}
m_SizeDelta: {x: 600, y: 0}
m_Pivot: {x: 1, y: 0.5}
--- !u!114 &1850716665
......
......@@ -81,7 +81,7 @@ namespace MDPro3
id = 10;
var endString = id.ToString("D4");
back = ABLoader.LoadFromFolder<SpriteScaler>("MasterDuel/Background/Back" + endString, true, true);
back = ABLoader.LoadFromFolder<SpriteRenderer>("MasterDuel/Background/Back" + endString, true, true);
if (back.TryGetComponent<SpriteScaler>(out var spriteScaler))
{
spriteScaler.isApplyOnUpdate = true;
......
......@@ -225,7 +225,7 @@ namespace MDPro3.Net
deckProtector = decks[i].Protector,
isDelete = false,
deckYdk = decks[i].GetYDK(),
timeStamp = ((DateTimeOffset)DateTime.UtcNow).ToUnixTimeMilliseconds()
//timeStamp = ((DateTimeOffset)DateTime.UtcNow).ToUnixTimeMilliseconds()
};
decks[i].deckId = ids[i];
......@@ -279,7 +279,7 @@ namespace MDPro3.Net
{
userId = MyCard.account.user.id,
deckContributor = MyCard.account.user.username,
deck = new PostDeck(deck, deckId, deckName, ydk, time)
deck = new PostDeck(deck, deckId, deckName, ydk/*, time*/)
};
var json = JsonUtility.ToJson(body);
......@@ -576,14 +576,18 @@ namespace MDPro3.Net
public int deckProtector;
public string deckYdk;
public bool isDelete;
public long timeStamp;
//public long timeStamp;
//public PostDeck()
//{
// timeStamp = ((DateTimeOffset)DateTime.UtcNow).ToUnixTimeMilliseconds();
//}
public PostDeck()
{
timeStamp = ((DateTimeOffset)DateTime.UtcNow).ToUnixTimeMilliseconds();
}
public PostDeck(Deck deck, string deckId, string deckName, string ydk, DateTime time)
public PostDeck(Deck deck, string deckId, string deckName, string ydk/*, DateTime timeUtc*/)
{
this.deckId = deckId;
this.deckName = deckName;
......@@ -597,7 +601,7 @@ namespace MDPro3.Net
deckProtector = deck.Protector;
deckYdk = ydk;
isDelete = false;
timeStamp = ((DateTimeOffset)time.ToUniversalTime()).ToUnixTimeMilliseconds();
//timeStamp = ((DateTimeOffset)timeUtc).ToUnixTimeMilliseconds();
}
}
......
......@@ -305,7 +305,7 @@ namespace MDPro3.Servant
var serverTime = od.GetUpdateUtcTime();
var diff = serverTime - fileInfo.LastWriteTimeUtc;
//Debug.Log($"{od.deckName}: serverTimeUtc: {od.GetUpdateUtcTime()}, serverTimeLocal: {od.GetUpdateLocalTime()} localTime: {fileInfo.LastWriteTimeUtc} diff: {diff.TotalSeconds}");
//Debug.Log($"{od.deckName}: serverTimeUtc: {od.GetUpdateUtcTime()}, localTime: {fileInfo.LastWriteTimeUtc} diff: {diff.TotalSeconds}");
if (diff.TotalSeconds > timeError || diff.TotalSeconds < -timeError)
{
......
......@@ -190,8 +190,9 @@ namespace MDPro3.UI
}
}
}
else{
if (path.StartsWith("WallPaperIcon"))
else
{
if (AppearanceUI.currentContent == "Wallpaper")
Config.Set("Wallpaper", itemID.ToString());
else
Config.Set(Appearance.condition.ToString() + AppearanceUI.currentContent + Appearance.player, itemID.ToString());
......
......@@ -462,6 +462,7 @@ namespace MDPro3.UI.ServantUI
itemMono.Refresh();
currentList.Add(item);
}
if (Program.items.ListHaveSame(targetItems))
{
GameObject item = Instantiate(Template);
......
......@@ -9,7 +9,6 @@ using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using UnityEditor.Experimental.GraphView;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
......
......@@ -551,7 +551,7 @@ PlayerSettings:
m_APIs: 0b000000
m_Automatic: 1
- m_BuildTarget: WindowsStandaloneSupport
m_APIs: 02000000
m_APIs: 0b00000002000000
m_Automatic: 0
- m_BuildTarget: LinuxStandaloneSupport
m_APIs: 1500000011000000
......
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