Polishes
This commit is contained in:
@@ -80,6 +80,17 @@ namespace ProjectM.Client
|
||||
_mainPanel = MenuUi.FullScreenRoot(true);
|
||||
var card = MenuUi.Card("PROJECT M");
|
||||
card.Add(MenuUi.Caption("Frontier colony — co-op"));
|
||||
// Why the last session ended (connection watchdog / bad join address) — shown once, then cleared.
|
||||
if (!string.IsNullOrEmpty(SessionEnd.Reason))
|
||||
{
|
||||
var reason = MenuUi.Caption(SessionEnd.Reason);
|
||||
reason.style.color = new Color(1f, 0.55f, 0.35f);
|
||||
reason.style.whiteSpace = WhiteSpace.Normal;
|
||||
reason.style.maxWidth = 340;
|
||||
SessionEnd.Reason = null;
|
||||
card.Add(reason);
|
||||
}
|
||||
|
||||
// Slice 2: class picker -> sets WorldLauncher.SelectedClass for the next session (Warrior melee / Ranger ranged).
|
||||
_classLabel = new Label(ClassName(WorldLauncher.SelectedClass));
|
||||
_classLabel.style.unityTextAlign = TextAnchor.MiddleCenter;
|
||||
|
||||
Reference in New Issue
Block a user