forked from Flare-Client/Flare-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coordinate UI (Only ticks on key press - WTF ASM)
- Loading branch information
1 parent
5c6f598
commit 9867f2e
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
Flare Sharp/ClientBase/Modules/Modules/CoordinatesDisplay.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Flare_Sharp.ClientBase.Categories; | ||
using Flare_Sharp.Memory; | ||
using Flare_Sharp.Memory.FlameSDK; | ||
using System; | ||
using System.Drawing; | ||
|
||
namespace Flare_Sharp.ClientBase.Modules.Modules | ||
{ | ||
public class CoordinatesDisplay : VisualModule | ||
{ | ||
|
||
public CoordinatesDisplay() : base("Coordinate UI", CategoryHandler.registry.categories[3], (char)0x07, true) | ||
{ | ||
} | ||
|
||
public override void onDraw(System.Drawing.Graphics graphics) | ||
{ | ||
base.onDraw(graphics); | ||
if(MCM.readInt64(Minecraft.clientInstance.localPlayer.addr) > 0) | ||
{ | ||
MCM.RECT mcRect = MCM.getMinecraftRect(); | ||
float playerX = Minecraft.clientInstance.localPlayer.currentX3, playerY = Minecraft.clientInstance.localPlayer.currentY3, playerZ = Minecraft.clientInstance.localPlayer.currentZ3; | ||
string formatText = Math.Floor(playerX).ToString() + ":" + Math.Floor(playerY - 1).ToString() + ":" + Math.Floor(playerZ).ToString(); | ||
graphics.DrawString(formatText, textFont, primary, 0, mcRect.Top * 130); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters