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
{
public class MouseHandler
public class TileViewer
{
private Vector2 ViewingOffset = Vector2.Zero;

View File

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