1
This commit is contained in:
parent
304ccf0f1e
commit
e6de85d765
@ -71,32 +71,17 @@ SpriteAtlas:
|
|||||||
secondaryTextureSettings: {}
|
secondaryTextureSettings: {}
|
||||||
variantMultiplier: 1
|
variantMultiplier: 1
|
||||||
packables:
|
packables:
|
||||||
<<<<<<< Updated upstream
|
|
||||||
=======
|
|
||||||
- {fileID: 21300000, guid: 2b6f8d50ab114d448b03e8b7c279f230, type: 3}
|
- {fileID: 21300000, guid: 2b6f8d50ab114d448b03e8b7c279f230, type: 3}
|
||||||
- {fileID: 21300000, guid: 771e7d7731b51d74f99f46460198d153, type: 3}
|
- {fileID: 21300000, guid: 771e7d7731b51d74f99f46460198d153, type: 3}
|
||||||
- {fileID: 21300000, guid: ec9ae6c212a5c7447a91eb6bf4788311, type: 3}
|
|
||||||
>>>>>>> Stashed changes
|
|
||||||
- {fileID: 21300000, guid: 86ab5d2474d50d448a735fb340c904b4, type: 3}
|
- {fileID: 21300000, guid: 86ab5d2474d50d448a735fb340c904b4, type: 3}
|
||||||
- {fileID: 21300000, guid: 38a120ecc4a4c964fa5d4e7b77e63619, type: 3}
|
|
||||||
- {fileID: 21300000, guid: e0246e23c99b19945b74857ab2afc817, type: 3}
|
- {fileID: 21300000, guid: e0246e23c99b19945b74857ab2afc817, type: 3}
|
||||||
- {fileID: 21300000, guid: 0a4f5c692f81d4d4f955f18051647cb9, type: 3}
|
|
||||||
bindAsDefault: 1
|
bindAsDefault: 1
|
||||||
isAtlasV2: 0
|
isAtlasV2: 0
|
||||||
cachedData: {fileID: 0}
|
cachedData: {fileID: 0}
|
||||||
packedSpriteRenderDataKeys:
|
packedSpriteRenderDataKeys: []
|
||||||
- 86ab5d2474d50d448a735fb340c904b4: 21300000
|
|
||||||
- 0a4f5c692f81d4d4f955f18051647cb9: 21300000
|
|
||||||
- 38a120ecc4a4c964fa5d4e7b77e63619: 21300000
|
|
||||||
m_MasterAtlas: {fileID: 0}
|
m_MasterAtlas: {fileID: 0}
|
||||||
m_PackedSprites:
|
m_PackedSprites: []
|
||||||
- {fileID: 21300000, guid: 86ab5d2474d50d448a735fb340c904b4, type: 3}
|
m_PackedSpriteNamesToIndex: []
|
||||||
- {fileID: 21300000, guid: 0a4f5c692f81d4d4f955f18051647cb9, type: 3}
|
|
||||||
- {fileID: 21300000, guid: 38a120ecc4a4c964fa5d4e7b77e63619, type: 3}
|
|
||||||
m_PackedSpriteNamesToIndex:
|
|
||||||
- zjm_tc_wmsp
|
|
||||||
- "\u53C2\u8003\u56FE"
|
|
||||||
- zjm_wxwmjsq
|
|
||||||
m_RenderDataMap: {}
|
m_RenderDataMap: {}
|
||||||
m_Tag: "UIRaw_Atlas_\u65B0\u589E\u5185\u5BB9"
|
m_Tag: "UIRaw_Atlas_\u65B0\u589E\u5185\u5BB9"
|
||||||
m_IsVariant: 0
|
m_IsVariant: 0
|
||||||
|
@ -4844,7 +4844,7 @@ GameObject:
|
|||||||
- component: {fileID: 9006140915265678874}
|
- component: {fileID: 9006140915265678874}
|
||||||
- component: {fileID: 3083103117851827895}
|
- component: {fileID: 3083103117851827895}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: WenMing
|
m_Name: m_tmp_TeamName
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@ -4906,7 +4906,7 @@ MonoBehaviour:
|
|||||||
m_fontMaterials: []
|
m_fontMaterials: []
|
||||||
m_fontColor32:
|
m_fontColor32:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 6939388
|
rgba: 4285129468
|
||||||
m_fontColor: {r: 0.98823535, g: 0.8862746, b: 0.41176474, a: 1}
|
m_fontColor: {r: 0.98823535, g: 0.8862746, b: 0.41176474, a: 1}
|
||||||
m_enableVertexGradient: 0
|
m_enableVertexGradient: 0
|
||||||
m_colorMode: 3
|
m_colorMode: 3
|
||||||
@ -9928,6 +9928,7 @@ GameObject:
|
|||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 8451575949868884774}
|
- component: {fileID: 8451575949868884774}
|
||||||
|
- component: {fileID: 7538243395150443130}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: HDWMSP
|
m_Name: HDWMSP
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -9956,6 +9957,18 @@ RectTransform:
|
|||||||
m_AnchoredPosition: {x: 348.3, y: 268.9}
|
m_AnchoredPosition: {x: 348.3, y: 268.9}
|
||||||
m_SizeDelta: {x: 100, y: 100}
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &7538243395150443130
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1670347114808273646}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: a6e89f00f25b10c4da1a404c4c5f2955, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
--- !u!1 &1717311148866719178
|
--- !u!1 &1717311148866719178
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -10309,7 +10322,7 @@ MonoBehaviour:
|
|||||||
m_fontMaterials: []
|
m_fontMaterials: []
|
||||||
m_fontColor32:
|
m_fontColor32:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 16777215
|
rgba: 4294967295
|
||||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_enableVertexGradient: 0
|
m_enableVertexGradient: 0
|
||||||
m_colorMode: 3
|
m_colorMode: 3
|
||||||
|
@ -58066,6 +58066,7 @@ RectTransform:
|
|||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 4655219308374456140}
|
- {fileID: 4655219308374456140}
|
||||||
- {fileID: 3086937246495487097}
|
- {fileID: 3086937246495487097}
|
||||||
|
- {fileID: 3735584724623260786}
|
||||||
m_Father: {fileID: 1508900408836313865}
|
m_Father: {fileID: 1508900408836313865}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
@ -99260,6 +99261,112 @@ Transform:
|
|||||||
m_CorrespondingSourceObject: {fileID: 4584437216545881317, guid: 22072e4e48fdd8d44a6541e32e8b6415, type: 3}
|
m_CorrespondingSourceObject: {fileID: 4584437216545881317, guid: 22072e4e48fdd8d44a6541e32e8b6415, type: 3}
|
||||||
m_PrefabInstance: {fileID: 3113856628817430133}
|
m_PrefabInstance: {fileID: 3113856628817430133}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &5088347465780830036
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 6805953989209425366}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 1670347114808273646, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: HDWMSP
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1670347114808273646, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_IsActive
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_Pivot.x
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_Pivot.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_AnchorMax.x
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_AnchorMax.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_AnchorMin.x
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_AnchorMin.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_SizeDelta.x
|
||||||
|
value: 100
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_SizeDelta.y
|
||||||
|
value: 100
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.x
|
||||||
|
value: 348.3
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.y
|
||||||
|
value: 268.9
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
--- !u!224 &3735584724623260786 stripped
|
||||||
|
RectTransform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8451575949868884774, guid: f6282c9fd1b60fa44a49784333a9ad3b, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 5088347465780830036}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1001 &5822606616100293313
|
--- !u!1001 &5822606616100293313
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -77,6 +77,7 @@ namespace GameLogic
|
|||||||
public const string HuangJinGameEnd = "HuangJinGameEnd";
|
public const string HuangJinGameEnd = "HuangJinGameEnd";
|
||||||
public const string GuanJunShiKe = "GuanJunShiKe";
|
public const string GuanJunShiKe = "GuanJunShiKe";
|
||||||
public const string UIDianZan = "UIDianZan";
|
public const string UIDianZan = "UIDianZan";
|
||||||
|
public const string UIHDWMSP = "UIHDWMSP";
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
@ -740,6 +740,9 @@ namespace GameLogic
|
|||||||
eGo.transform.localPosition = new Vector3(-1500, 0, 0);
|
eGo.transform.localPosition = new Vector3(-1500, 0, 0);
|
||||||
eGo.transform.localScale = Vector3.one;
|
eGo.transform.localScale = Vector3.one;
|
||||||
|
|
||||||
|
string str = DataGameSceneManager.Instance.GetStrs(int.Parse(unitPlayerData.teamId) - 1);
|
||||||
|
GameEvent.Send(EventConts.UIHDWMSP, unitPlayerData, str + "氏文明");
|
||||||
|
|
||||||
// 移动特效
|
// 移动特效
|
||||||
eGo.transform.DOLocalMoveX(0, 5f).OnComplete(async () =>
|
eGo.transform.DOLocalMoveX(0, 5f).OnComplete(async () =>
|
||||||
{
|
{
|
||||||
|
@ -9,6 +9,7 @@ using TMPro;
|
|||||||
using Coffee.UIExtensions;
|
using Coffee.UIExtensions;
|
||||||
using UnityEngine.Video;
|
using UnityEngine.Video;
|
||||||
using System.Xml.Linq;
|
using System.Xml.Linq;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace GameLogic
|
namespace GameLogic
|
||||||
{
|
{
|
||||||
@ -314,6 +315,7 @@ namespace GameLogic
|
|||||||
GameEvent.AddEventListener(EventConts.HuangJinGameEnd, HuangJinGameEndFunc);
|
GameEvent.AddEventListener(EventConts.HuangJinGameEnd, HuangJinGameEndFunc);
|
||||||
GameEvent.AddEventListener(EventConts.GuanJunShiKe, GuanJunShiKeFunc);
|
GameEvent.AddEventListener(EventConts.GuanJunShiKe, GuanJunShiKeFunc);
|
||||||
GameEvent.AddEventListener<string>(EventConts.UIDianZan, UIDianZanFunc);
|
GameEvent.AddEventListener<string>(EventConts.UIDianZan, UIDianZanFunc);
|
||||||
|
GameEvent.AddEventListener<UnitPlayerData, string>(EventConts.UIHDWMSP, AddHdWmspFunc);
|
||||||
GameEvent.AddEventListener<UnitPlayerData, GiftConfig, int>(EventConts.AddGiftMessage, AddGiftMessageFunc);
|
GameEvent.AddEventListener<UnitPlayerData, GiftConfig, int>(EventConts.AddGiftMessage, AddGiftMessageFunc);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -328,6 +330,7 @@ namespace GameLogic
|
|||||||
GameEvent.RemoveEventListener(EventConts.HuangJinGameEnd, HuangJinGameEndFunc);
|
GameEvent.RemoveEventListener(EventConts.HuangJinGameEnd, HuangJinGameEndFunc);
|
||||||
GameEvent.RemoveEventListener(EventConts.GuanJunShiKe, GuanJunShiKeFunc);
|
GameEvent.RemoveEventListener(EventConts.GuanJunShiKe, GuanJunShiKeFunc);
|
||||||
GameEvent.RemoveEventListener<string>(EventConts.UIDianZan, UIDianZanFunc);
|
GameEvent.RemoveEventListener<string>(EventConts.UIDianZan, UIDianZanFunc);
|
||||||
|
GameEvent.RemoveEventListener<UnitPlayerData, string>(EventConts.UIHDWMSP, AddHdWmspFunc);
|
||||||
GameEvent.RemoveEventListener<UnitPlayerData, GiftConfig, int>(EventConts.AddGiftMessage, AddGiftMessageFunc);
|
GameEvent.RemoveEventListener<UnitPlayerData, GiftConfig, int>(EventConts.AddGiftMessage, AddGiftMessageFunc);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -628,6 +631,15 @@ namespace GameLogic
|
|||||||
giftItem.GetComponent<UIGiftItem>().OnInit(unitPlayerData, giftConfig, num);
|
giftItem.GetComponent<UIGiftItem>().OnInit(unitPlayerData, giftConfig, num);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AddHdWmspFunc(UnitPlayerData unitPlayerData, string teamName)
|
||||||
|
{
|
||||||
|
var giftItem = GameObject.Instantiate(m_rect_GiftPanel.transform.GetChild(2));
|
||||||
|
giftItem.transform.SetParent(m_rect_GiftPanel);
|
||||||
|
giftItem.transform.localScale = Vector3.one;
|
||||||
|
giftItem.transform.localPosition = Vector3.zero;
|
||||||
|
giftItem.gameObject.SetActive(true);
|
||||||
|
giftItem.GetComponent<UIHDWmsp>().OnInit(teamName, unitPlayerData.protCustMessageData.nickName, unitPlayerData.protCustMessageData.imgURL);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 收到游戏重开的消息
|
/// 收到游戏重开的消息
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using TMPro;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
namespace GameLogic
|
||||||
|
{
|
||||||
|
public class UIHDWmsp : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
public TextMeshProUGUI m_teamName;
|
||||||
|
public TextMeshProUGUI m_PlayerName;
|
||||||
|
public RawImage m_HeadIcon;
|
||||||
|
|
||||||
|
|
||||||
|
public void OnInit(string teamName, string playerName, string imgUrl)
|
||||||
|
{
|
||||||
|
m_teamName.text = teamName;
|
||||||
|
m_PlayerName.text = playerName;
|
||||||
|
AsyncImageDownload.Instance.SetAsyncImage(imgUrl, m_HeadIcon);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a6e89f00f25b10c4da1a404c4c5f2955
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
x
Reference in New Issue
Block a user