aboutsummaryrefslogtreecommitdiff
path: root/src/guiPauseMenu.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-11-26 09:49:07 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-11-26 09:49:07 +0200
commit197542c7ec19b41e865be1e84c6c6898de8514d1 (patch)
tree79554122d141ca79ec3885492e67a0bc526aadd0 /src/guiPauseMenu.h
parentab507f83e2e0b1f442341724bc47a8480667628e (diff)
downloadminetest-197542c7ec19b41e865be1e84c6c6898de8514d1.tar.gz
minetest-197542c7ec19b41e865be1e84c6c6898de8514d1.tar.bz2
minetest-197542c7ec19b41e865be1e84c6c6898de8514d1.zip
New PROTOCOL_VERSION scheme (allow client to support a range of versions)
Diffstat (limited to 'src/guiPauseMenu.h')
0 files changed, 0 insertions, 0 deletions
='#n119'>119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
/*
Minetest
Copyright (C) 2010-2013 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
Copyright (C) 2017 red-001 <red-001@outlook.ie>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef CLIENT_HUD_HEADER
#define CLIENT_HUD_HEADER

#include <vector>
#include <IGUIFont.h>
#include "irr_aabb3d.h"
#include "../hud.h"

class Client;
class ITextureSource;
class Inventory;
class InventoryList;
class LocalPlayer;
struct ItemStack;

class Hud
{
public:
	video::IVideoDriver *driver;
	scene::ISceneManager *smgr;
	gui::IGUIEnvironment *guienv;
	Client *client;
	LocalPlayer *player;
	Inventory *inventory;
	ITextureSource *tsrc;

	video::SColor crosshair_argb;
	video::SColor selectionbox_argb;
	bool use_crosshair_image = false;
	std::string hotbar_image = "";
	bool use_hotbar_image = false;
	std::string hotbar_selected_image = "";
	bool use_hotbar_selected_image = false;

	Hud(gui::IGUIEnvironment *guienv, Client *client, LocalPlayer *player,
			Inventory *inventory);
	~Hud();

	void drawHotbar(u16 playeritem);
	void resizeHotbar();
	void drawCrosshair();
	void drawSelectionMesh();