Skip to content

Commit

Permalink
Replace HORION text with banner
Browse files Browse the repository at this point in the history
Idk how they did it in Horion Continued, so there is a resource pack now
  • Loading branch information
marioCST committed Feb 14, 2023
1 parent 8f43446 commit ba0ded8
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -498,3 +498,6 @@ MigrationBackup/
.vscode/

# End of https://www.toptal.com/developers/gitignore/api/cmake,clion+all,visualstudio,c++

# Extra
*.mcpack
16 changes: 14 additions & 2 deletions Memory/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
18 changes: 18 additions & 0 deletions ResourcePack/manifest.json
Original file line number Diff line number Diff line change
@@ -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]
}
]
}
Binary file added ResourcePack/pack_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ResourcePack/textures/horion/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ba0ded8

Please sign in to comment.