Demo build: 150 kg goal, end screen, separate AppId and store assets
GC_DEMO define (ProjectBuilder GC_DEMO=1 / -demo) builds GrassCutterDemo.exe for app 5668050 with its own product name, version 0.1-demo and no achievements. Purchases lock after shipping 150 kg; a goal label and a thanks/wishlist card follow. Menu gets a DEMO badge and wishlist button. Store texts (12 languages) and DEMO-badged capsules for the demo page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -120,6 +120,7 @@ namespace GrassCutter
|
||||
Ctl.UIOpen = _modalStack.Count > 0 || !_inGame;
|
||||
if (_inGame) Ctl.SetCursor(!AnyModal && !Phone.Focused && !SteamManager.OverlayActive);
|
||||
Hud?.Tick(_inGame && !AnyModal);
|
||||
TickDemo();
|
||||
Hud?.SetTabList(_inGame && !AnyModal && Ctl.TabHeld);
|
||||
_spinAngle += Time.unscaledDeltaTime * 360f;
|
||||
var sp = _connecting?.Q(className: "spinner");
|
||||
@ -152,6 +153,17 @@ namespace GrassCutter
|
||||
UIK.Btn(Loc.T("SETTINGS"), OpenSettings, "btn btn-white btn-wide", side),
|
||||
UIK.Btn(Loc.T("QUIT"), Quit, "btn btn-red btn-wide", side),
|
||||
};
|
||||
if (Demo.On)
|
||||
{
|
||||
// the demo says so under the logo, and the wishlist sits with the big buttons
|
||||
var badge = UIK.Text(Loc.T("DEMO"), "menu-tagline t-outline", _menu);
|
||||
badge.style.top = Length.Percent(63);
|
||||
badge.style.fontSize = 44;
|
||||
badge.style.color = new Color(1f, 0.83f, 0.25f);
|
||||
var wish = UIK.Btn(Loc.T("WISHLIST THE FULL GAME"), () => SteamManager.OpenStore(), "btn btn-green btn-wide", side);
|
||||
wish.PlaceBehind(buttons[buttons.Count - 1]);
|
||||
buttons.Insert(buttons.Count - 1, wish);
|
||||
}
|
||||
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
|
||||
@ -161,7 +173,7 @@ namespace GrassCutter
|
||||
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;
|
||||
if (!Demo.On) 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);
|
||||
|
||||
Reference in New Issue
Block a user