the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "TrapScreen.h"
3#include "LocalPlayer.h"
4#include "Textures.h"
5#include "..\Minecraft.World\net.minecraft.world.inventory.h"
6#include "..\Minecraft.World\DispenserTileEntity.h"
7#include "..\Minecraft.World\net.minecraft.world.h"
8
9TrapScreen::TrapScreen(shared_ptr<Inventory> inventory, shared_ptr<DispenserTileEntity> trap) : AbstractContainerScreen(new TrapMenu(inventory, trap))
10{
11
12}
13
14void TrapScreen::renderLabels()
15{
16 font->draw(L"Dispenser", 16 + 4 + 40, 2 + 2 + 2, 0x404040);
17 font->draw(L"Inventory", 8, imageHeight - 96 + 2, 0x404040);
18}
19
20void TrapScreen::renderBg(float a)
21{
22 // 4J Unused
23#if 0
24 int tex = minecraft->textures->loadTexture(L"/gui/trap.png");
25 glColor4f(1, 1, 1, 1);
26 minecraft->textures->bind(tex);
27 int xo = (width - imageWidth) / 2;
28 int yo = (height - imageHeight) / 2;
29 this->blit(xo, yo, 0, 0, imageWidth, imageHeight);
30#endif
31}