创建房间界面迭代
This commit is contained in:
parent
e6fb65d087
commit
d1c226e717
@ -205,11 +205,13 @@ namespace TH1_UI.View.Outside
|
||||
EnsureRoomNameHint();
|
||||
if (RoomNameHintText != null) RoomNameHintText.text = hint;
|
||||
if (RoomNameHintObject != null) RoomNameHintObject.SetActive(true);
|
||||
RebuildPanelLayout();
|
||||
}
|
||||
|
||||
private void HideRoomNameHint()
|
||||
{
|
||||
if (RoomNameHintObject != null) RoomNameHintObject.SetActive(false);
|
||||
RebuildPanelLayout();
|
||||
}
|
||||
|
||||
private void ShowPasswordHint()
|
||||
@ -217,11 +219,13 @@ namespace TH1_UI.View.Outside
|
||||
EnsurePasswordHint();
|
||||
if (PasswordHintText != null) PasswordHintText.text = "请输入4位数字密码";
|
||||
if (PasswordHintObject != null) PasswordHintObject.SetActive(true);
|
||||
RebuildPanelLayout();
|
||||
}
|
||||
|
||||
private void HidePasswordHint()
|
||||
{
|
||||
if (PasswordHintObject != null) PasswordHintObject.SetActive(false);
|
||||
RebuildPanelLayout();
|
||||
}
|
||||
|
||||
private RoomKind GetRoomKind()
|
||||
@ -288,6 +292,15 @@ namespace TH1_UI.View.Outside
|
||||
if (target == null) return;
|
||||
Canvas.ForceUpdateCanvases();
|
||||
LayoutRebuilder.ForceRebuildLayoutImmediate(target);
|
||||
RebuildPanelLayout();
|
||||
}
|
||||
|
||||
private void RebuildPanelLayout()
|
||||
{
|
||||
var target = GetRoot().transform as RectTransform;
|
||||
if (target == null || !target.gameObject.activeInHierarchy) return;
|
||||
Canvas.ForceUpdateCanvases();
|
||||
LayoutRebuilder.ForceRebuildLayoutImmediate(target);
|
||||
}
|
||||
|
||||
private void EnsurePasswordHint()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user