mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
debug: reposition some elements
* The little character when running was overlapping on the debug menu
This commit is contained in:
parent
cabcba6fe6
commit
811818490c
|
|
@ -861,8 +861,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
|
||||||
glTranslatef((float)-debugLeft, (float)-debugTop, 0.f);
|
glTranslatef((float)-debugLeft, (float)-debugTop, 0.f);
|
||||||
if (Minecraft::warezTime > 0) glTranslatef(0, 32, 0);
|
if (Minecraft::warezTime > 0) glTranslatef(0, 32, 0);
|
||||||
|
|
||||||
font->drawShadow(ClientConstants::VERSION_STRING + L" (" + minecraft->fpsString + L")", iSafezoneXHalf+2, 20, 0xffffff);
|
font->drawShadow(ClientConstants::VERSION_STRING + L" (" + minecraft->fpsString + L")", iSafezoneXHalf+2, 15, 0xffffff);
|
||||||
font->drawShadow(L"Seed: " + std::to_wstring(minecraft->level->getLevelData()->getSeed() ), iSafezoneXHalf+2, 32 + 00, 0xffffff);
|
|
||||||
// font->drawShadow(minecraft->gatherStats4(), iSafezoneXHalf+2, 32 + 40, 0xffffff);
|
// font->drawShadow(minecraft->gatherStats4(), iSafezoneXHalf+2, 32 + 40, 0xffffff);
|
||||||
/*
|
/*
|
||||||
long max = Runtime.getRuntime().maxMemory();
|
long max = Runtime.getRuntime().maxMemory();
|
||||||
|
|
@ -877,6 +876,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
|
||||||
|
|
||||||
// 4J Stu - Moved these so that they don't overlap
|
// 4J Stu - Moved these so that they don't overlap
|
||||||
int iYPos = 82;
|
int iYPos = 82;
|
||||||
|
|
||||||
wchar_t buffer[256];
|
wchar_t buffer[256];
|
||||||
|
|
||||||
double xBlockPos = floor(minecraft->player->x);
|
double xBlockPos = floor(minecraft->player->x);
|
||||||
|
|
@ -895,19 +895,20 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
|
||||||
font->drawShadow(buffer, iSafezoneXHalf+2, iYPos + 8 * 2, 0xe0e0e0);
|
font->drawShadow(buffer, iSafezoneXHalf+2, iYPos + 8 * 2, 0xe0e0e0);
|
||||||
|
|
||||||
font->drawShadow(L"f: " + std::to_wstring(Mth::floor(minecraft->player->yRot * 4.0f / 360.0f + 0.5) & 0x3) + L"/ yRot: " + std::to_wstring(minecraft->player->yRot), iSafezoneXHalf+2, iYPos + 8 * 3, 0xe0e0e0);
|
font->drawShadow(L"f: " + std::to_wstring(Mth::floor(minecraft->player->yRot * 4.0f / 360.0f + 0.5) & 0x3) + L"/ yRot: " + std::to_wstring(minecraft->player->yRot), iSafezoneXHalf+2, iYPos + 8 * 3, 0xe0e0e0);
|
||||||
iYPos += 8*4;
|
|
||||||
|
|
||||||
int px = Mth::floor(minecraft->player->x);
|
font->drawShadow(L"Seed: " + std::to_wstring(minecraft->level->getLevelData()->getSeed() ), iSafezoneXHalf+2, iYPos + 8 * 4, 0xe0e0e0);
|
||||||
int py = Mth::floor(minecraft->player->y);
|
|
||||||
int pz = Mth::floor(minecraft->player->z);
|
iYPos += 8*5;
|
||||||
if (minecraft->level != NULL && minecraft->level->hasChunkAt(px, py, pz))
|
|
||||||
{
|
int px = Mth::floor(minecraft->player->x);
|
||||||
LevelChunk *chunkAt = minecraft->level->getChunkAt(px, pz);
|
int py = Mth::floor(minecraft->player->y);
|
||||||
Biome *biome = chunkAt->getBiome(px & 15, pz & 15, minecraft->level->getBiomeSource());
|
int pz = Mth::floor(minecraft->player->z);
|
||||||
drawString(
|
if (minecraft->level != NULL && minecraft->level->hasChunkAt(px, py, pz))
|
||||||
font,
|
{
|
||||||
L"b: " + biome->m_name + L" (" + std::to_wstring(biome->id) + L")", debugLeft, iYPos, 0xe0e0e0);
|
LevelChunk *chunkAt = minecraft->level->getChunkAt(px, pz);
|
||||||
}
|
Biome *biome = chunkAt->getBiome(px & 15, pz & 15, minecraft->level->getBiomeSource());
|
||||||
|
font->drawShadow( L"b: " + biome->m_name + L" (" + std::to_wstring(biome->id) + L")", iSafezoneXHalf+2, iYPos, 0xe0e0e0);
|
||||||
|
}
|
||||||
|
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue