Rename MouseHandler to TileViewer for accuracy

master
bradjrenshaw 2022-05-10 16:36:23 -04:00
parent 7a1b768bdb
commit 8446049c55
2 changed files with 9 additions and 8 deletions

View File

@ -8,7 +8,7 @@ using stardew_access.Features;
namespace stardew_access.Features namespace stardew_access.Features
{ {
public class MouseHandler public class TileViewer
{ {
private Vector2 ViewingOffset = Vector2.Zero; private Vector2 ViewingOffset = Vector2.Zero;

View File

@ -20,7 +20,7 @@ namespace stardew_access
private static StaticTiles? sTiles; private static StaticTiles? sTiles;
private static IScreenReader? screenReader; private static IScreenReader? screenReader;
private static IModHelper? modHelper; private static IModHelper? modHelper;
private static MouseHandler? mouse; private static TileViewer? tileViewer;
internal static ModConfig Config { get => config; set => config = value; } internal static ModConfig Config { get => config; set => config = value; }
public static IModHelper? ModHelper { get => modHelper; } public static IModHelper? ModHelper { get => modHelper; }
@ -64,13 +64,13 @@ namespace stardew_access
set => screenReader = value; set => screenReader = value;
} }
public static MouseHandler Mouse public static TileViewer TileViewer
{ {
get get
{ {
if (mouse == null) if (tileViewer == null)
mouse = new MouseHandler(); tileViewer = new TileViewer();
return mouse; return tileViewer;
} }
} }
@ -142,7 +142,8 @@ get
// Narrate current location's name // Narrate current location's name
Other.narrateCurrentLocation(); Other.narrateCurrentLocation();
Mouse.update(); //handle TileCursor update logic
TileViewer.update();
if (!ReadTile.isReadingTile && Config.ReadTile) if (!ReadTile.isReadingTile && Config.ReadTile)
{ {
@ -269,7 +270,7 @@ get
} }
// Tile viewing cursor keys // Tile viewing cursor keys
Mouse.HandleInput(); TileViewer.HandleInput();
} }
public static void ErrorLog(string message) public static void ErrorLog(string message)