diff --git a/.gitignore b/.gitignore index c991e79..86e8f97 100644 --- a/.gitignore +++ b/.gitignore @@ -498,3 +498,6 @@ MigrationBackup/ .vscode/ # End of https://www.toptal.com/developers/gitignore/api/cmake,clion+all,visualstudio,c++ + +# Extra +*.mcpack diff --git a/Memory/Hooks.cpp b/Memory/Hooks.cpp index 5d8d3c7..9afc43c 100644 --- a/Memory/Hooks.cpp +++ b/Memory/Hooks.cpp @@ -418,15 +418,27 @@ __int64 Hooks::RenderText(__int64 a1, MinecraftUIRenderContext* renderCtx) { // Main Menu std::string screenName(g_Hooks.currentScreenName); if (strcmp(screenName.c_str(), "start_screen") == 0) { + int imgX = 866 / 2.6f, imgY = 373 / 2.6f; + + Vec2 imgPos = Vec2(wid.x / 2.f - imgX / 2.f, wid.y / 9.5f - imgY / 4.25f); + Vec2 imgSize = Vec2(imgX, imgY); + + Vec4 rectPos = Vec4(imgPos.x - 55.f, imgPos.y - 3.f, imgPos.x + imgSize.x + 55.f, imgPos.y + imgSize.y + 3.f); + DrawUtils::fillRectangle(rectPos, ClientColors::menuBackgroundColor, 1.f); + DrawUtils::drawRectangle(rectPos, color, 1.f, 2.f); + + DrawUtils::drawImage("textures/horion/banner", imgPos, imgSize); + DrawUtils::flushImage(); + // Draw BIG epic horion watermark - { + /*{ std::string text = "H O R I O N"; Vec2 textPos = Vec2(wid.x / 2.f - DrawUtils::getTextWidth(&text, 8.f) / 2.f, wid.y / 9.5f); Vec4 rectPos = Vec4(textPos.x - 55.f, textPos.y - 15.f, textPos.x + DrawUtils::getTextWidth(&text, 8.f) + 55.f, textPos.y + 75.f); DrawUtils::fillRectangle(rectPos, ClientColors::menuBackgroundColor, 1.f); DrawUtils::drawRectangle(rectPos, color, 1.f, 2.f); DrawUtils::drawText(textPos, &text, MC_Color(255, 255, 255, 1), 8.f); - } + }*/ } else { shouldRenderTabGui = hudModule->tabgui && hudModule->isEnabled(); shouldRenderArrayList = hudModule->arraylist && hudModule->isEnabled(); diff --git a/ResourcePack/manifest.json b/ResourcePack/manifest.json new file mode 100644 index 0000000..514a047 --- /dev/null +++ b/ResourcePack/manifest.json @@ -0,0 +1,18 @@ +{ + "format_version": 2, + "header": { + "description": "Horion pack", + "name": "Horion 1.18.12 textures (marioCST fork)", + "uuid": "2a8be14a-3dc1-431d-87fe-c370b83fb939", + "version": [0, 0, 1], + "min_engine_version": [ 1, 18, 10 ] + }, + "modules": [ + { + "description": "Horion pack", + "type": "resources", + "uuid": "3b5814b2-7d2e-45fb-82b8-7415de86dd51", + "version": [0, 0, 1] + } + ] +} \ No newline at end of file diff --git a/ResourcePack/pack_icon.png b/ResourcePack/pack_icon.png new file mode 100644 index 0000000..b2c6c37 Binary files /dev/null and b/ResourcePack/pack_icon.png differ diff --git a/ResourcePack/textures/horion/banner.png b/ResourcePack/textures/horion/banner.png new file mode 100644 index 0000000..4665b54 Binary files /dev/null and b/ResourcePack/textures/horion/banner.png differ