个人信息界面调整
parent
3d7ca279ca
commit
ea2f308087
|
|
@ -26,7 +26,7 @@ RectTransform:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1377101628395592856}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
|
|
@ -37,7 +37,7 @@ RectTransform:
|
|||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 400, y: 60}
|
||||
m_SizeDelta: {x: 888, y: 88}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1272940311679070089
|
||||
CanvasRenderer:
|
||||
|
|
@ -465,8 +465,8 @@ MonoBehaviour:
|
|||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4281479730
|
||||
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||
rgba: 4278387459
|
||||
m_fontColor: {r: 0.012578547, g: 0.012578547, b: 0.012578547, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
|
|
@ -483,15 +483,15 @@ MonoBehaviour:
|
|||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 45
|
||||
m_fontSizeBase: 45
|
||||
m_fontSize: 50
|
||||
m_fontSizeBase: 50
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 256
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
|
|
@ -835,7 +835,7 @@ MonoBehaviour:
|
|||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "\u8BF7\u8F93\u5165\u540D\u5B57"
|
||||
m_text: "\u8BF7\u8F93\u5165\u6635\u79F0..."
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: d996718f19de68245bc356be2938e063, type: 2}
|
||||
m_sharedMaterial: {fileID: -8559898196655864114, guid: d996718f19de68245bc356be2938e063,
|
||||
|
|
@ -863,15 +863,15 @@ MonoBehaviour:
|
|||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 45
|
||||
m_fontSizeBase: 45
|
||||
m_fontSize: 50
|
||||
m_fontSizeBase: 50
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 2
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 256
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public class UI_PlayerInfoBinder
|
|||
window.Image_Head = window.GetComponent<Image>("Image_InfoBg/Image_Head");
|
||||
window.Text_Level = window.GetComponent<TMP_Text>("Image_InfoBg/Image_Head/Text_Level");
|
||||
window.Image_ExpCircle = window.GetComponent<Image>("Image_InfoBg/Image_Head/Image_ExpCircle");
|
||||
window.InputField_Name = window.GetComponent<TMP_InputField>("Image_InfoBg/InputField_Name");
|
||||
window.Text_PlayerName = window.GetComponent<TMP_Text>("Image_InfoBg/Image_Head/Text_PlayerName");
|
||||
window.Button_EditName = window.GetComponent<Button>("Image_InfoBg/Button_EditName");
|
||||
window.Image_UidBg = window.GetComponent<Image>("Image_InfoBg/Image_UidBg");
|
||||
window.Image_UidBg1 = window.GetComponent<Image>("Image_InfoBg/Image_UidBg/Image_UidBg1");
|
||||
|
|
@ -38,11 +38,10 @@ public class UI_PlayerInfoBinder
|
|||
window.Text_UserIdText = window.GetComponent<TMP_Text>("Image_InfoBg/Image_UidBg/Text_UserIdText");
|
||||
window.Button_HeadChangeGame = window.GetComponent<Button>("Image_InfoBg/Button_HeadChangeGame");
|
||||
window.Text_BirthdayCh = window.GetComponent<TMP_Text>("Image_InfoBg/Text_BirthdayCh");
|
||||
window.InputField_Birthday = window.GetComponent<TMP_InputField>("Image_InfoBg/InputField_Birthday");
|
||||
window.Text_Birthday = window.GetComponent<TMP_Text>("Image_InfoBg/Text_Birthday");
|
||||
window.Button_EditBirthday = window.GetComponent<Button>("Image_InfoBg/Button_EditBirthday");
|
||||
window.Text_Sign = window.GetComponent<TMP_Text>("Image_InfoBg/Text_Sign");
|
||||
window.Button_EditIntroduction = window.GetComponent<Button>("Image_InfoBg/Button_EditIntroduction");
|
||||
window.InputField_Introduction = window.GetComponent<TMP_InputField>("Image_InfoBg/InputField_Introduction");
|
||||
window.Image_Medal0_up = window.GetComponent<Image>("Image_InfoBg/UI_Medal_up/Image_Medal0_up");
|
||||
window.Image_Medal1_up = window.GetComponent<Image>("Image_InfoBg/UI_Medal_up/Image_Medal1_up");
|
||||
window.Image_Medal2_up = window.GetComponent<Image>("Image_InfoBg/UI_Medal_up/Image_Medal2_up");
|
||||
|
|
@ -75,7 +74,7 @@ public class UI_PlayerInfoBinder
|
|||
public Image Image_Head;
|
||||
public TMP_Text Text_Level;
|
||||
public Image Image_ExpCircle;
|
||||
public TMP_InputField InputField_Name;
|
||||
public TMP_Text Text_PlayerName;
|
||||
public Button Button_EditName;
|
||||
public Image Image_UidBg;
|
||||
public Image Image_UidBg1;
|
||||
|
|
@ -83,11 +82,10 @@ public class UI_PlayerInfoBinder
|
|||
public TMP_Text Text_UserIdText;
|
||||
public Button Button_HeadChangeGame;
|
||||
public TMP_Text Text_BirthdayCh;
|
||||
public TMP_InputField InputField_Birthday;
|
||||
public TMP_Text Text_Birthday;
|
||||
public Button Button_EditBirthday;
|
||||
public TMP_Text Text_Sign;
|
||||
public Button Button_EditIntroduction;
|
||||
public TMP_InputField InputField_Introduction;
|
||||
public Image Image_Medal0_up;
|
||||
public Image Image_Medal1_up;
|
||||
public Image Image_Medal2_up;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public class UI_PlayerInfoController : UIWindow
|
|||
public Image Image_Head;
|
||||
public TMP_Text Text_Level;
|
||||
public Image Image_ExpCircle;
|
||||
public TMP_InputField InputField_Name;
|
||||
public TMP_Text Text_PlayerName;
|
||||
public Button Button_EditName;
|
||||
public Image Image_UidBg;
|
||||
public Image Image_UidBg1;
|
||||
|
|
@ -34,11 +34,10 @@ public class UI_PlayerInfoController : UIWindow
|
|||
public TMP_Text Text_UserIdText;
|
||||
public Button Button_HeadChangeGame;
|
||||
public TMP_Text Text_BirthdayCh;
|
||||
public TMP_InputField InputField_Birthday;
|
||||
public TMP_Text Text_Birthday;
|
||||
public Button Button_EditBirthday;
|
||||
public TMP_Text Text_Sign;
|
||||
public Button Button_EditIntroduction;
|
||||
public TMP_InputField InputField_Introduction;
|
||||
public Image Image_Medal0_up;
|
||||
public Image Image_Medal1_up;
|
||||
public Image Image_Medal2_up;
|
||||
|
|
@ -52,6 +51,7 @@ public class UI_PlayerInfoController : UIWindow
|
|||
public Button Button_EditMedal;
|
||||
public Image Image_TopBlackBar;
|
||||
public Image Image_BottomBlackBar;
|
||||
|
||||
///Auto Gen End///
|
||||
|
||||
// deal with input data
|
||||
|
|
@ -75,7 +75,7 @@ public class UI_PlayerInfoController : UIWindow
|
|||
BindButton(Button_Home, OnHomeClick);
|
||||
BindButton(Button_EditName, SetName);
|
||||
|
||||
#region 待开发
|
||||
#region 待开发
|
||||
BindButton(Button_EditBirthday, LockFunction);
|
||||
BindButton(Button_HeadChangeGame, LockFunction);
|
||||
BindButton(Button_EditBirthday,LockFunction);
|
||||
|
|
@ -86,14 +86,10 @@ public class UI_PlayerInfoController : UIWindow
|
|||
DataActorLevel levelInfo = ActorLevelTableHelper.Instance.Get((int)Actor.Instance.Base.GetProp(ActorProp.Level));
|
||||
var level = levelInfo.Level;
|
||||
Text_Level.text = level.ToString("D3");
|
||||
InputField_Name.text = Actor.Instance.Base.Nickname;
|
||||
Text_PlayerName.text = Actor.Instance.Base.Nickname;
|
||||
Text_Uid.text = Actor.Instance.Base.GetProp(ActorProp.ActorId).ToString();
|
||||
|
||||
InputField_Name.interactable = false;
|
||||
InputField_Birthday.interactable = false;
|
||||
InputField_Introduction.interactable = false;
|
||||
|
||||
InputField_Name.onEndEdit.AddListener(OnNameEditEnd);
|
||||
//InputField_Name.onEndEdit.AddListener(OnNameEditEnd);
|
||||
|
||||
EventManager.Instance.Register(EventManager.EventName.PlayerInfoUpdate, OnChangeName);
|
||||
|
||||
|
|
@ -140,7 +136,7 @@ public class UI_PlayerInfoController : UIWindow
|
|||
|
||||
void LockFunction()
|
||||
{
|
||||
CommonUtils.ShowMessageTips("功能暂未开放,敬请期待");
|
||||
CommonUtils.ShowMessageTips("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
@ -150,14 +146,8 @@ public class UI_PlayerInfoController : UIWindow
|
|||
UI_WriteNameController.Open().Forget();
|
||||
}
|
||||
|
||||
public void OnNameEditEnd(string name)
|
||||
{
|
||||
InputField_Name.interactable = false;
|
||||
NetHelper.SetPlayerName(name);
|
||||
}
|
||||
|
||||
void OnChangeName()
|
||||
{
|
||||
InputField_Name.text = Actor.Instance.Base.Nickname;
|
||||
Text_PlayerName.text = Actor.Instance.Base.Nickname;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d3b4389ee7b4af44fbc4d7d4496be6c0
|
||||
guid: cacc1fb9d474c0f4e9b641d44327ad95
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
|
|
|||
Loading…
Reference in New Issue