Release checklist: no cheat console for players, Steam required, Steam's language wins when changed, menu links, head bob toggle
- The cheat console opens only in the editor, a development build, or with -gcdev - Without steam_appid.txt next to the exe, a failed Steam start says so and quits instead of running offline; -nosteam only works in our own builds - A language picked in the game's Steam properties overrides the one saved in the game, if it changed since - Main menu: language button, Steam page (overlay, else browser), feedback (Steam discussions); "early build" and the AppID gone from the footer - Settings > Game: head bob on/off - The cursor stays inside the window while it's free - -resetsettings puts every setting back as it comes out of the box Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -36,7 +36,7 @@ namespace GrassCutter
|
||||
public void ToggleConsole()
|
||||
{
|
||||
if (_consoleLayer != null) { CloseModal(_consoleLayer); return; }
|
||||
if (!_inGame) return;
|
||||
if (!_inGame || !Cheats.Allowed) return;
|
||||
_consoleLayer = OpenModal(layer => { Console = new CheatConsole(layer); return null; }, dim: false);
|
||||
UIK.SlideIn(Console.Panel, new Vector2(0f, -400f), 0f, 0.25f);
|
||||
}
|
||||
@ -154,6 +154,15 @@ namespace GrassCutter
|
||||
};
|
||||
var hint = UIK.Text(Loc.T(SteamManager.Initialized ? Loc.N("PLAY alone, on your LAN, or in a Steam lobby: invite friends with Shift+Tab.") : Loc.N("Steam not running: play alone or on your LAN.")), "t-small t-outline", side, false);
|
||||
hint.style.marginTop = 14;
|
||||
// the language in a click (Chinese above all), the store page and where to tell us what's wrong
|
||||
var links = UIK.El("menu-links", side);
|
||||
links.style.flexDirection = FlexDirection.Row;
|
||||
links.style.flexWrap = Wrap.Wrap;
|
||||
links.style.marginTop = 18;
|
||||
var langBtn = UIK.Btn(Loc.T("Language") + ": " + Loc.Current.native, OpenLanguages, "btn btn-white btn-small", links);
|
||||
SetLangFont(langBtn, Loc.Current);
|
||||
UIK.Btn(Loc.T("STEAM PAGE"), () => SteamManager.OpenStore(), "btn btn-blue btn-small", links).style.marginLeft = 10;
|
||||
UIK.Btn(Loc.T("FEEDBACK"), () => SteamManager.OpenWeb(SteamManager.FeedbackUrl), "btn btn-green btn-small", links).style.marginLeft = 10;
|
||||
|
||||
var footer = UIK.El("menu-footer", _menu);
|
||||
var pill = UIK.El("pill", footer);
|
||||
@ -163,8 +172,8 @@ namespace GrassCutter
|
||||
UIK.Text(SteamManager.MyName, "t-body", pill);
|
||||
var dot = UIK.El("status-dot", pill);
|
||||
dot.style.backgroundColor = SteamManager.Initialized ? new Color(0.22f, 0.85f, 0.54f) : new Color(1f, 0.55f, 0.24f);
|
||||
UIK.Text(SteamManager.Initialized ? $"Steam · AppID {SteamManager.AppId}" : Loc.T("Offline"), "t-small t-muted", pill, false);
|
||||
UIK.Text(Loc.F("v{0} · early build", NetSession.Version), "version", _menu, false);
|
||||
UIK.Text(SteamManager.Initialized ? "Steam" : Loc.T("Offline"), "t-small t-muted", pill, false);
|
||||
UIK.Text("v" + NetSession.Version, "version", _menu, false);
|
||||
|
||||
// entrance animation + idle logo bob
|
||||
UIK.PopIn(logo, 0.25f, 0.7f);
|
||||
|
||||
Reference in New Issue
Block a user