Skip to content

Commit 364d455

Browse files
committed
Update version num && Remove UI
1 parent 2ffb608 commit 364d455

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
cmake_minimum_required(VERSION 3.12)
22
project(ItemInformation)
3-
set(MOD_VERSION "@1.1.0")
3+
set(MOD_VERSION "1.2.0")
44

55
# Define only RelWithDebInfo as the available build configuration
66
set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo" CACHE STRING "Build configurations" FORCE)
77
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
88

99
# Project Configuration
1010
set(AmethystFolder "$ENV{appdata}/Amethyst")
11-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${AmethystFolder}/mods/${PROJECT_NAME}${MOD_VERSION}")
11+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${AmethystFolder}/mods/${PROJECT_NAME}@${MOD_VERSION}")
1212

1313
find_library(AMETHYST_API AmethystAPI PATHS "${AmethystFolder}/lib")
1414
include_directories(${AmethystFolder}/include)

src/dllmain.cpp

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,32 +53,32 @@ extern "C" __declspec(dllexport) void OnStartJoinGame(ClientInstance* ci) {
5353
g_client = ci;
5454
}
5555

56-
extern "C" __declspec(dllexport) void OnRenderUI(ScreenView* screenView, MinecraftUIRenderContext* ctx) {
57-
if (g_client == nullptr) return;
58-
59-
LocalPlayer* player = g_client->getLocalPlayer();
60-
if (player == nullptr) return;
61-
62-
std::string text = "Minecraft 1.20.30.02 (AmethystAPI)";
63-
64-
Vec3* pos = player->getPosition();
65-
Vec3* rot = player->getHeadLookVector(1.0f);
66-
text.append(fmt::format("\n\nXYZ: {:.3f} / {:.3f} / {:.3f}", pos->x, pos->y, pos->z));
67-
text.append(fmt::format("\nRot: {} {} {}", rot->x, rot->y, rot->z));
68-
69-
// Render text on screen
70-
RectangleArea rect = { 0.0f, 0.0f, 0.0f, 0.0f };
71-
mce::Color white(1.0f, 1.0f, 1.0f, 1.0f);
72-
73-
TextMeasureData textData;
74-
memset(&textData, 0, sizeof(TextMeasureData));
75-
textData.fontSize = 1.0f;
76-
77-
CaretMeasureData caretData;
78-
memset(&caretData, 1, sizeof(CaretMeasureData));
79-
80-
ctx->drawDebugText(&rect, &text, &white, 1.0f, ui::Left, &textData, &caretData);
81-
}
56+
//extern "C" __declspec(dllexport) void OnRenderUI(ScreenView* screenView, MinecraftUIRenderContext* ctx) {
57+
// if (g_client == nullptr) return;
58+
//
59+
// LocalPlayer* player = g_client->getLocalPlayer();
60+
// if (player == nullptr) return;
61+
//
62+
// std::string text = "Minecraft 1.20.30.02 (AmethystAPI)";
63+
//
64+
// Vec3* pos = player->getPosition();
65+
// Vec3* rot = player->getHeadLookVector(1.0f);
66+
// text.append(fmt::format("\n\nXYZ: {:.3f} / {:.3f} / {:.3f}", pos->x, pos->y, pos->z));
67+
// text.append(fmt::format("\nRot: {} {} {}", rot->x, rot->y, rot->z));
68+
//
69+
// // Render text on screen
70+
// RectangleArea rect = { 0.0f, 0.0f, 0.0f, 0.0f };
71+
// mce::Color white(1.0f, 1.0f, 1.0f, 1.0f);
72+
//
73+
// TextMeasureData textData;
74+
// memset(&textData, 0, sizeof(TextMeasureData));
75+
// textData.fontSize = 1.0f;
76+
//
77+
// CaretMeasureData caretData;
78+
// memset(&caretData, 1, sizeof(CaretMeasureData));
79+
//
80+
// ctx->drawDebugText(&rect, &text, &white, 1.0f, ui::Left, &textData, &caretData);
81+
//}
8282

8383
extern "C" __declspec(dllexport) void Shutdown() {
8484
hookManager.Shutdown();

0 commit comments

Comments
 (0)