每日自动提交 2026-04-16 18:30

This commit is contained in:
2026-04-16 18:31:04 +08:00
parent 0f4e2716d9
commit a4a716b742
13 changed files with 4110 additions and 1675 deletions
+4 -397
View File
@@ -1463,6 +1463,10 @@ PrefabInstance:
propertyPath: m_Name
value: IngameDebugConsole
objectReference: {fileID: 0}
- target: {fileID: 22400762, guid: 67117722a812a2e46ab8cb8eafbf5f5e, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 22426080, guid: 67117722a812a2e46ab8cb8eafbf5f5e, type: 3}
propertyPath: m_AnchorMax.x
value: 0
@@ -3690,12 +3694,6 @@ Transform:
type: 3}
m_PrefabInstance: {fileID: 455012351}
m_PrefabAsset: {fileID: 0}
--- !u!1 &468024347 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 2866510931230491131, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
m_PrefabInstance: {fileID: 1483892346}
m_PrefabAsset: {fileID: 0}
--- !u!1 &492562954
GameObject:
m_ObjectHideFlags: 0
@@ -7220,7 +7218,6 @@ RectTransform:
- {fileID: 1215410152}
- {fileID: 1767508023}
- {fileID: 144093542}
- {fileID: 1270490501}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
@@ -9669,12 +9666,6 @@ Transform:
type: 3}
m_PrefabInstance: {fileID: 1259351769}
m_PrefabAsset: {fileID: 0}
--- !u!224 &1270490501 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
m_PrefabInstance: {fileID: 1483892346}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1409594558
PrefabInstance:
m_ObjectHideFlags: 0
@@ -12047,389 +12038,6 @@ BoxCollider2D:
serializedVersion: 2
m_Size: {x: 18.704224, y: 70.2}
m_EdgeRadius: 0
--- !u!1001 &1483892346
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1096182889}
m_Modifications:
- target: {fileID: 1059335368886179975, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1059335368886179975, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1059335368886179975, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -65
objectReference: {fileID: 0}
- target: {fileID: 1206825891143228172, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1206825891143228172, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1206825891143228172, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.x
value: 535.13
objectReference: {fileID: 0}
- target: {fileID: 1206825891143228172, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1206825891143228172, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 267.565
objectReference: {fileID: 0}
- target: {fileID: 1206825891143228172, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -114.26
objectReference: {fileID: 0}
- target: {fileID: 1683537726863722989, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1683537726863722989, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1683537726863722989, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.x
value: 321.35
objectReference: {fileID: 0}
- target: {fileID: 1683537726863722989, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1683537726863722989, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 160.675
objectReference: {fileID: 0}
- target: {fileID: 1683537726863722989, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -26.065
objectReference: {fileID: 0}
- target: {fileID: 2677599752264184905, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2677599752264184905, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2677599752264184905, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2677599752264184905, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 134.465
objectReference: {fileID: 0}
- target: {fileID: 2677599752264184905, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -48.565
objectReference: {fileID: 0}
- target: {fileID: 2689395902196334413, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2689395902196334413, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2689395902196334413, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2689395902196334413, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 134.465
objectReference: {fileID: 0}
- target: {fileID: 2689395902196334413, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -48.565
objectReference: {fileID: 0}
- target: {fileID: 2858043246495473412, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: dialogOrangePrefab
value:
objectReference: {fileID: 468024347}
- target: {fileID: 2966041587726500598, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2966041587726500598, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2966041587726500598, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4882048512898148067, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4882048512898148067, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4882048512898148067, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4882048512898148067, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 450
objectReference: {fileID: 0}
- target: {fileID: 4882048512898148067, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -218.195
objectReference: {fileID: 0}
- target: {fileID: 6717804159278779182, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6717804159278779182, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6717804159278779182, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6717804159278779182, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 450
objectReference: {fileID: 0}
- target: {fileID: 6717804159278779182, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -65
objectReference: {fileID: 0}
- target: {fileID: 7470759479811999074, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7484987072870957332, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7554651951496674089, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7554651951496674089, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7554651951496674089, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.x
value: 127
objectReference: {fileID: 0}
- target: {fileID: 7554651951496674089, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7554651951496674089, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 836.5
objectReference: {fileID: 0}
- target: {fileID: 7554651951496674089, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -65
objectReference: {fileID: 0}
- target: {fileID: 7891003980585846251, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7891003980585846251, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7891003980585846251, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.x
value: 535.13
objectReference: {fileID: 0}
- target: {fileID: 7891003980585846251, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7891003980585846251, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 267.565
objectReference: {fileID: 0}
- target: {fileID: 7891003980585846251, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -88.195
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7913458185175567809, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8341679339909863206, guid: 2ae29ff90f8f1ba42aafd95293932c59,
type: 3}
propertyPath: m_Name
value: ServicePanel
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2ae29ff90f8f1ba42aafd95293932c59, type: 3}
--- !u!1001 &1566995047
PrefabInstance:
m_ObjectHideFlags: 0
@@ -16964,7 +16572,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 8b6274f58a6279d48ad7b7045f1d80e5, type: 3}
m_Name:
m_EditorClassIdentifier:
nan: 0
audioMixer: {fileID: 24100000, guid: ca43f9a7549657a49a2978e97c7a621a, type: 2}
--- !u!1001 &5452291198170655483
PrefabInstance:
+47 -1
View File
@@ -2312,6 +2312,7 @@ MonoBehaviour:
SubPanelParent: {fileID: 2598784230285573744}
tMP_GoldCoinNum: {fileID: 1330864841708033395}
tMP_DiamondNum: {fileID: 6733070567402786631}
btn_UserInfo: {fileID: 7297753037684962080}
FXYButton: {fileID: 5660061971336108277}
XJMHButton: {fileID: 675111198059572776}
TGXXButton: {fileID: 9215424427851389888}
@@ -3596,6 +3597,7 @@ GameObject:
- component: {fileID: 7354496997835405047}
- component: {fileID: 1073481573181667900}
- component: {fileID: 5151795233655135278}
- component: {fileID: 7297753037684962080}
m_Layer: 0
m_Name: "-h-\u7EC4 47"
m_TagString: Untagged
@@ -3644,7 +3646,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
@@ -3660,6 +3662,50 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &7297753037684962080
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3187534958298514657}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 5151795233655135278}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!1 &3189426300744545147
GameObject:
m_ObjectHideFlags: 0
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,141 @@
using Assets.MyGame.Scripts.Net;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class UserInfoPanel : SubUIBase
{
[Header("信息")]
public TextMeshProUGUI tMPText_Name;
public TextMeshProUGUI tMPText_ID;
public TextMeshProUGUI tMPText_UserNumber;
public Button btn_ForgetPassWord;
public TextMeshProUGUI tMPText_LabelQM;
public TextMeshProUGUI tMPText_IP;
public TextMeshProUGUI tMPText_VIPLeave;
public TextMeshProUGUI tMPText_PhoneNumber;
public Button btn_ChangePhone;
public Button btn_ChangUser;
[Header("设置")]
public Toggle toggle_MusicEffect;
public Toggle toggle_Music;
public Toggle toggle_BroadCast;
public Toggle toggle_PlayTrumpet;
public Toggle toggle_SystemHint;
public TextMeshProUGUI tMPText_CurrVision;
public TextMeshProUGUI tMPText_NewVision;
GameManager gameManager => GameManager.Instance;
public override void Awake()
{
base.Awake();
btn_ForgetPassWord.onClick.AddListener(() =>
{
});
toggle_MusicEffect.onValueChanged.AddListener((a) =>
{
PlayerPrefs.SetInt("YX",a?1:0);
});
toggle_Music.onValueChanged.AddListener((a) =>
{
PlayerPrefs.SetInt("YY", a ? 1 : 0);
});
toggle_BroadCast.onValueChanged.AddListener((a) =>
{
PlayerPrefs.SetInt("XTGB", a ? 1 : 0);
});
toggle_PlayTrumpet.onValueChanged.AddListener((a) =>
{
PlayerPrefs.SetInt("WJLB", a ? 1 : 0);
});
toggle_SystemHint.onValueChanged.AddListener((a) =>
{
PlayerPrefs.SetInt("XTTS", a ? 1 : 0);
});
}
protected override void OnShow(object args = null)
{
base.OnShow(args);
InitInformation();
InitSetting();
}
private void InitInformation()
{
if (gameManager.user.BaseInfo.isRedName)
{
tMPText_Name.color = Color.red;
}
tMPText_Name.text = gameManager.user.BaseInfo.userName;
tMPText_ID.text = gameManager.user.BaseInfo.number;
tMPText_UserNumber.text = gameManager.user.BaseInfo.mobile;
string str = PlayerPrefs.GetString("QM", "我比较懒,什么都没写");
tMPText_LabelQM.text = str;
tMPText_IP.text = gameManager.user.@static.lastLoginIp;
tMPText_VIPLeave.text = gameManager.user.assets.vipLevel.ToString();
tMPText_PhoneNumber.text = MaskPhone(gameManager.user.BaseInfo.mobile);
}
public void InitSetting()
{
int temp = PlayerPrefs.GetInt("YX",1);
if (temp == 0)
{
toggle_MusicEffect.isOn = false;
}
else if (temp == 1)
{
toggle_MusicEffect.isOn = true;
}
temp = PlayerPrefs.GetInt("YY",1);
if (temp == 0)
{
toggle_Music.isOn = false;
}
else if (temp == 1)
{
toggle_Music.isOn = true;
}
temp = PlayerPrefs.GetInt("XTGB",1);
if (temp == 0)
{
toggle_BroadCast.isOn = false;
}
else if (temp == 1)
{
toggle_BroadCast.isOn = true;
}
temp = PlayerPrefs.GetInt("WJLB",1);
if (temp == 0)
{
toggle_PlayTrumpet.isOn = false;
}
else if (temp == 1)
{
toggle_PlayTrumpet.isOn = true;
}
temp = PlayerPrefs.GetInt("XTTS",1);
if (temp == 0)
{
toggle_SystemHint.isOn = false;
}
else if (temp == 1)
{
toggle_SystemHint.isOn = true;
}
}
public static string MaskPhone(string phone)
{
if (string.IsNullOrEmpty(phone) || phone.Length <= 6)
return phone;
int prefix = 3;
int suffix = 3;
int maskCount = phone.Length - prefix - suffix;
return phone.Substring(0, prefix) + new string('*', maskCount) + phone.Substring(phone.Length - suffix);
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 81e6a95934deec94db8b9262e15d8569
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+3 -1
View File
@@ -15,6 +15,8 @@ public class UIHomeMain : UIBase
public Transform SubPanelParent;
public TextMeshProUGUI tMP_GoldCoinNum;
public TextMeshProUGUI tMP_DiamondNum;
public Button btn_UserInfo;
#region 中间
[Header("风雷之渊")]
public Button FXYButton;
@@ -169,7 +171,7 @@ public class UIHomeMain : UIBase
});
#endregion
btn_UserInfo.onClick.AddListener(()=>subUIManager.ShowAsync(UIPanel.UserInfo));
}
protected override void OnShow(object args = null)
{
+3
View File
@@ -55,3 +55,6 @@ MonoBehaviour:
- name: "\u6218\u795E"
type: 182
address: Assets/MyGame/aa/UI/Home/Sub/ZSPanel.prefab
- name: "\u7528\u6237\u4FE1\u606F"
type: 141
address: Assets/MyGame/aa/UI/Home/Sub/UserInfo.prefab