aboutsummaryrefslogtreecommitdiff
path: root/src/network/serveropcodes.h
diff options
context:
space:
mode:
authorLars Müller <34514239+appgurueu@users.noreply.github.com>2021-09-19 20:23:22 +0200
committerGitHub <noreply@github.com>2021-09-19 20:23:22 +0200
commit40ea4ddef1fe56dab9a1479302f0b2578b4b0ed5 (patch)
tree22fcd1f90177ac9edcfe968b02fed27ade9a15b1 /src/network/serveropcodes.h
parente0529da5c84f224c380e6d5e063392cb01f85683 (diff)
downloadminetest-40ea4ddef1fe56dab9a1479302f0b2578b4b0ed5.tar.gz
minetest-40ea4ddef1fe56dab9a1479302f0b2578b4b0ed5.tar.bz2
minetest-40ea4ddef1fe56dab9a1479302f0b2578b4b0ed5.zip
Fix HUD multiline text alignment (#10795)
Diffstat (limited to 'src/network/serveropcodes.h')
0 files changed, 0 insertions, 0 deletions
d='n121' href='#n121'>121 122 123 124 125 126 127 128 129 130 131 132 133
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

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.
*/

#pragma once

#include "irrlichttypes_extrabloated.h"
#include "modalMenu.h"
#include "chat.h"
#include "config.h"

class Client;

class GUIChatConsole : public gui::IGUIElement
{
public:
	GUIChatConsole(gui::IGUIEnvironment* env,
			gui::IGUIElement* parent,
			s32 id,
			ChatBackend* backend,
			Client* client,
			IMenuManager* menumgr);
	virtual ~GUIChatConsole();

	// Open the console (height = desired fraction of screen size)
	// This doesn't open immediately but initiates an animation.
	// You should call isOpenInhibited() before this.
	void openConsole(f32 scale);

	bool isOpen() const;

	// Check if the console should not be opened at the moment
	// This is to avoid reopening the console immediately after closing
	bool isOpenInhibited() const;
	// Close the console, equivalent to openConsole(0).
	// This doesn't close immediately but initiates an animation.
	void closeConsole();