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:
NiemandKG
2026-11-20 19:07:43 +06:00
parent ad2154b38c
commit ae558b8e77
66 changed files with 917 additions and 83 deletions

View File

@ -8,7 +8,7 @@ namespace GrassCutter
[DefaultExecutionOrder(-1000)]
public class SteamManager : MonoBehaviour
{
public const uint AppId = 5551720;
public const uint AppId = Demo.On ? Demo.DemoAppId : Demo.FullAppId;
public static SteamManager Instance { get; private set; }
public static bool Initialized { get; private set; }
@ -106,15 +106,16 @@ namespace GrassCutter
if (Initialized) SteamAPI.RunCallbacks();
}
public static string StoreUrl => $"https://store.steampowered.com/app/{AppId}/";
public static string FeedbackUrl => $"https://steamcommunity.com/app/{AppId}/discussions/";
// always the full game: the demo has no hub of its own, and its wishlist button is for the game
public static string StoreUrl => $"https://store.steampowered.com/app/{Demo.FullAppId}/";
public static string FeedbackUrl => $"https://steamcommunity.com/app/{Demo.FullAppId}/discussions/";
/// <summary>The game's store page (wishlist, follow, review): in the Steam overlay, else the browser.</summary>
public static void OpenStore()
{
try
{
if (Initialized && SteamUtils.IsOverlayEnabled()) { SteamFriends.ActivateGameOverlayToStore(new AppId_t(AppId), EOverlayToStoreFlag.k_EOverlayToStoreFlag_None); return; }
if (Initialized && SteamUtils.IsOverlayEnabled()) { SteamFriends.ActivateGameOverlayToStore(new AppId_t(Demo.FullAppId), EOverlayToStoreFlag.k_EOverlayToStoreFlag_None); return; }
}
catch (Exception) { }
Application.OpenURL(StoreUrl);