the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 34 lines 993 B view raw
1#include "stdafx.h" 2#include "CraftingScreen.h" 3#include "Textures.h" 4#include "MultiplayerLocalPlayer.h" 5#include "..\Minecraft.World\net.minecraft.world.inventory.h" 6 7CraftingScreen::CraftingScreen(shared_ptr<Inventory> inventory, Level *level, int x, int y, int z) : AbstractContainerScreen(new CraftingMenu(inventory, level, x, y, z)) 8{ 9} 10 11void CraftingScreen::removed() 12{ 13 AbstractContainerScreen::removed(); 14 menu->removed(dynamic_pointer_cast<Player>(minecraft->player)); 15} 16 17void CraftingScreen::renderLabels() 18{ 19 font->draw(L"Crafting", 8 + 16 + 4, 2 + 2 + 2, 0x404040); 20 font->draw(L"Inventory", 8, imageHeight - 96 + 2, 0x404040); 21} 22 23void CraftingScreen::renderBg(float a) 24{ 25 // 4J Unused 26#if 0 27 int tex = minecraft->textures->loadTexture(L"/gui/crafting.png"); 28 glColor4f(1, 1, 1, 1); 29 minecraft->textures->bind(tex); 30 int xo = (width - imageWidth) / 2; 31 int yo = (height - imageHeight) / 2; 32 this->blit(xo, yo, 0, 0, imageWidth, imageHeight); 33#endif 34}