From 5d8912ae7cfb9428a94890ccd3a120294ee67ea0 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Tue, 29 Mar 2022 19:25:53 +0530 Subject: [PATCH] Added fullscreen indication --- stardew-access/ModConfig.cs | 3 +++ stardew-access/Patches/TitleMenuPatches.cs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/stardew-access/ModConfig.cs b/stardew-access/ModConfig.cs index 24dd743..98c19df 100644 --- a/stardew-access/ModConfig.cs +++ b/stardew-access/ModConfig.cs @@ -27,5 +27,8 @@ namespace stardew_access public KeybindList ReadStandingTileKey { get; set; } = KeybindList.Parse("LeftAlt + J"); #endregion + + // TODO Add the exclusion and focus list too + // public String ExclusionList { get; set; } = "test"; } } diff --git a/stardew-access/Patches/TitleMenuPatches.cs b/stardew-access/Patches/TitleMenuPatches.cs index b66a841..6324855 100644 --- a/stardew-access/Patches/TitleMenuPatches.cs +++ b/stardew-access/Patches/TitleMenuPatches.cs @@ -87,7 +87,8 @@ namespace stardew_access.Patches if (__instance.windowedButton.containsPoint(Game1.getMouseX(true), Game1.getMouseY(true))) { - toSpeak = "Fullscreen toggle Button"; + bool isFullscreen = Game1.options.isCurrentlyFullscreen(); + toSpeak = "Fullscreen: " + ((isFullscreen) ? "on" : "off"); } if (TitleMenu.subMenu != null && __instance.backButton.containsPoint(Game1.getMouseX(true), Game1.getMouseY(true)))