玩家名字修改

This commit is contained in:
wulongxiao 2024-12-18 21:04:28 +08:00
parent 4a7ba77ae7
commit 585a77b1b9
3 changed files with 100 additions and 91 deletions

View File

@ -373,7 +373,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 222.5, y: -17.5}
m_SizeDelta: {x: 445, y: 35}
m_SizeDelta: {x: 445, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &5320817
MonoBehaviour:
@ -12041,6 +12041,11 @@ RectTransform:
m_AnchoredPosition: {x: 565.9963, y: -50}
m_SizeDelta: {x: 346.5818, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &136090572 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 3011360593152576138, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3}
m_PrefabInstance: {fileID: 366819986}
m_PrefabAsset: {fileID: 0}
--- !u!1 &141027671
GameObject:
m_ObjectHideFlags: 0
@ -15344,7 +15349,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 545, y: -107}
m_SizeDelta: {x: 454, y: 102}
m_SizeDelta: {x: 454, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &199068414
MonoBehaviour:
@ -15419,9 +15424,9 @@ RectTransform:
m_Father: {fileID: 630215703}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 80, y: -17.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 160, y: 35}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &200446359
@ -16915,9 +16920,9 @@ RectTransform:
m_Father: {fileID: 352267109}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 227, y: -37}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 454, y: 4}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &221454626
@ -25896,7 +25901,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 450.81, y: -1063.9}
m_SizeDelta: {x: 795.62, y: 104}
m_SizeDelta: {x: 795.62, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &345780129
MonoBehaviour:
@ -26469,7 +26474,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 227, y: -82.5}
m_SizeDelta: {x: 454, y: 39}
m_SizeDelta: {x: 454, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &352267110
MonoBehaviour:
@ -40756,9 +40761,9 @@ RectTransform:
m_Father: {fileID: 345780128}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 502.81, y: -64}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 180, y: 80}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &541665290
@ -46030,9 +46035,9 @@ RectTransform:
m_Father: {fileID: 838259352}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 80, y: -67.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 160, y: 42.3}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &611049085
@ -48208,9 +48213,9 @@ RectTransform:
m_Father: {fileID: 2001838520}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 694.16675, y: -72}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &630215704
@ -51321,7 +51326,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 469.5, y: -349.5}
m_SizeDelta: {x: 833, y: 367}
m_SizeDelta: {x: 833, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &671603871
MonoBehaviour:
@ -54891,9 +54896,9 @@ RectTransform:
m_Father: {fileID: 1340745207}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 128.5, y: -107}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 135, y: 135}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &729618845
@ -62093,9 +62098,9 @@ RectTransform:
m_Father: {fileID: 2001838520}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 138.83334, y: -72}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &838259353
@ -62670,9 +62675,9 @@ RectTransform:
m_Father: {fileID: 1595781734}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 104, y: -17.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 208, y: 35}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &852761426
@ -71954,9 +71959,9 @@ RectTransform:
m_Father: {fileID: 1595781734}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 428, y: -16}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 34, y: 32}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &999265800
@ -91535,9 +91540,9 @@ RectTransform:
m_Father: {fileID: 1816482971}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 50, y: -17.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 160, y: 35}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1272092948
@ -91814,7 +91819,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 227, y: -19.5}
m_SizeDelta: {x: 454, y: 39}
m_SizeDelta: {x: 454, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1277500122
MonoBehaviour:
@ -96548,9 +96553,9 @@ RectTransform:
m_Father: {fileID: 671603870}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 416.5, y: -107}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 833, y: 214}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1340745208
@ -101582,9 +101587,9 @@ RectTransform:
m_Father: {fileID: 1816482971}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 50, y: -70}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 266.4, y: 70}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1421067306
@ -113401,9 +113406,9 @@ RectTransform:
m_Father: {fileID: 1686945017}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 53, y: -556}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1558592225
@ -115669,9 +115674,9 @@ RectTransform:
m_Father: {fileID: 345780128}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 705.62, y: -64}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 180, y: 80}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1582828384
@ -116533,7 +116538,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 222.5, y: -17.5}
m_SizeDelta: {x: 445, y: 35}
m_SizeDelta: {x: 445, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1595781735
MonoBehaviour:
@ -123350,7 +123355,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -15, y: -12}
m_SizeDelta: {x: 908, y: 1208.3}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1686945018
MonoBehaviour:
@ -126828,7 +126833,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &1743557965
RectTransform:
m_ObjectHideFlags: 0
@ -126864,8 +126869,9 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
ReviseBtn: {fileID: 999265802}
NameText: {fileID: 0}
IdText: {fileID: 0}
NameText: {fileID: 852761426}
IdText: {fileID: 2054650513}
headTanchuang: {fileID: 136090572}
--- !u!1 &1744588682
GameObject:
m_ObjectHideFlags: 0
@ -131821,9 +131827,9 @@ RectTransform:
m_Father: {fileID: 2001838520}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 416.50003, y: -72}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1816482972
@ -133629,9 +133635,9 @@ RectTransform:
m_Father: {fileID: 1686945017}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 144.75, y: -1156.4}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 183.5, y: 35}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1842368209
@ -134776,9 +134782,9 @@ RectTransform:
m_Father: {fileID: 838259352}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 80, y: -17.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 160, y: 35}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1857281116
@ -146496,9 +146502,9 @@ RectTransform:
m_Father: {fileID: 1686945017}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 469.5, y: -783.95}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 833, y: 409.9}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2001416423
@ -146606,9 +146612,9 @@ RectTransform:
m_Father: {fileID: 671603870}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 416.5, y: -295}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 833, y: 144}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2001838521
@ -147947,9 +147953,9 @@ RectTransform:
m_Father: {fileID: 345780128}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 300, y: -64}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 180, y: 80}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2016967817
@ -150035,9 +150041,9 @@ RectTransform:
m_Father: {fileID: 5320816}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 104, y: -17.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 208, y: 35}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2054650513
@ -150574,9 +150580,9 @@ RectTransform:
m_Father: {fileID: 1686945017}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 211.025, y: -71.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 316.05, y: 143}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &2061474728
@ -150707,9 +150713,9 @@ RectTransform:
m_Father: {fileID: 1277500121}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 227, y: -37}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 454, y: 4}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2062366936
@ -153320,9 +153326,9 @@ RectTransform:
m_Father: {fileID: 1686945017}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 103, y: -1202.6}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 100, y: 11.4}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &2095634642
@ -153641,9 +153647,9 @@ RectTransform:
m_Father: {fileID: 5320816}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 428, y: -16}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 34, y: 32}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2098363858

View File

@ -20,7 +20,6 @@ public class HeadTanchuang : MonoBehaviour
public Text Name;
public Text Id;
public AssetsPanel _AssetsPanel;
void Start()
{
@ -32,7 +31,7 @@ public class HeadTanchuang : MonoBehaviour
private void Display_pop_up_window()
{
AvatarPanel.gameObject.SetActive(true);
AvatarPanel.gameObject.GetComponent<ReviseName>().UpdateShow();
}
@ -42,7 +41,7 @@ public class HeadTanchuang : MonoBehaviour
AvatarPanel.gameObject.SetActive(false);
}
async void UpdateShow()
public async void UpdateShow()
{
PlayerInfoData _PlayerInfoData = await Scene_main_jiekou.instance.PlayerInfos();
this.Name.text =_PlayerInfoData.nickname.ToString();

View File

@ -9,6 +9,8 @@ public class ReviseName : mount
public Button ReviseBtn;
public Text NameText;
public Text IdText;
public GameObject headTanchuang;
// Start is called before the first frame update
void Start()
{
@ -41,6 +43,7 @@ public class ReviseName : mount
Promptmgr.Instance.PromptBubble("ÐÞ¸ÄêdzƳɹ¦");
NameText.text = issuccefful.data.nickname;
//IdText.text = issuccefful.data.nickname;
headTanchuang.GetComponent<HeadTanchuang>().UpdateShow();
gameObject.GetComponent<input_box_pop_up_window>().destroy();
}
else
@ -59,5 +62,6 @@ public class ReviseName : mount
PlayerInfoData info = await Scene_main_jiekou.instance.PlayerInfos();
this.NameText.text = info.nickname.ToString();
this.IdText.text = info.uid.ToString();
this.gameObject.SetActive(true);
}
}