xyh2000 1 month ago
parent
commit
a815bb52a4

+ 2 - 2
Unity/Assets/Scripts/Codes/HotfixView/Client/Demo/UI/UILogin/UILoginComponentSystem.cs

@@ -117,8 +117,8 @@ namespace ET.Client
                 self.DomainScene(),
                 self.account.GetComponent<InputField>().text,
                 self.password.GetComponent<InputField>().text,
-                self.inputIPObj.GetComponent<InputField>().text,
-                int.Parse(self.inputPortObj.GetComponent<InputField>().text)).Coroutine();
+                "192.168.50.147",
+                30300).Coroutine();
         }
 
         public static async void IDSureBtn(this UILoginComponent self)

+ 1 - 1
Unity/Assets/Scripts/Codes/HotfixView/Client/Demo/UI/UIMain/UIMainComponentSystem.cs

@@ -83,7 +83,7 @@ namespace ET.Client
                     self.createRoomType = (int)dic["result"];
                     self.roomId = dic["roomId"] as string;
                 }
-                self.createRoomTxt.GetComponent<Text>().text = self.createRoomType == 0 ? "创建房间" : "返回房间";
+                //self.createRoomTxt.GetComponent<Text>().text = self.createRoomType == 0 ? "创建房间" : "返回房间";
 
                 await SoundManager.Instance.PlaySound("common_playBg",true);
             }

+ 1 - 1
Unity/Assets/Scripts/Codes/HotfixView/Client/Demo/UI/UIStartFightRoom/StartFightCardItem.cs

@@ -21,7 +21,7 @@ namespace ET.Client
             this.cb = cb;
             var sprite = await GameObjectPool.Instance.AcquireSprite(string.Concat(GameSetting.Instance.selfPlayCardCenterSpiteName, this.val));
             this.icon.sprite = sprite;
-
+            this.icon.gameObject.GetComponent<RectTransform>().sizeDelta = GameUtil.Instance.myHandCardSize;
             this.icon.gameObject.OnClick(() =>
             {
                 if (isSelect)

+ 2 - 0
Unity/Assets/Scripts/Codes/HotfixView/Client/Demo/UI/UIStartFightRoom/UIStartFightRoomComponentSystem.cs

@@ -874,6 +874,7 @@ namespace ET.Client
                                 uiDisItem.gameObject.SetActive(true);
                                 uiDisItem.transform.SetParent(disCardParentNode.transform, false);
                                 string spiring = "";
+                                Vector2 sizeDelta = Vector2.zero;
                                 if (roleInfo.roleId == playInfo.id)
                                 {
                                     spiring = string.Concat(GameSetting.Instance.selfPlayCardShowSpiteName, value);
@@ -906,6 +907,7 @@ namespace ET.Client
                                 var sprite = await GameObjectPool.Instance.AcquireSprite(spiring);
                                 UnityEngine.UI.Image icon = uiDisItem.GetComponentInChildren<UnityEngine.UI.Image>();
                                 icon.sprite = sprite;
+                                //this.icon.gameObject.GetComponent<RectTransform>().sizeDelta = GameUtil.Instance.myHandCardSize;
                             }
                             else
                             {

+ 4 - 0
Unity/Assets/Scripts/Codes/Model/Client/GameUtil.cs

@@ -1,4 +1,5 @@
 using System.Collections.Generic;
+using UnityEditor;
 using UnityEngine;
 
 namespace ET
@@ -20,6 +21,9 @@ namespace ET
         public int curRequestCardVal = -1;
         public int curCardVal = -1;
 
+        public Vector2 myHandCardSize = new Vector2(89,135);
+        public Vector2 myShowCard = new Vector2(69,90);
+
         public void SetSceneComponent(Scene scene)
         {
             this.scene = scene;