#include <guiChatConsole.h>
◆ GUIChatConsole()
GUIChatConsole::GUIChatConsole |
( |
gui::IGUIEnvironment * | env, |
|
|
gui::IGUIElement * | parent, |
|
|
s32 | id, |
|
|
ChatBackend * | backend, |
|
|
Client * | client, |
|
|
IMenuManager * | menumgr ) |
References clamp_u8(), errorstream, FM_Mono, FONT_SIZE_UNSPECIFIED, g_fontengine, g_settings, Settings::getBool(), FontEngine::getFont(), Settings::getS32(), ITextureSource::getTexture(), Settings::getU16(), Settings::getV3F(), ITextureSource::isKnownSourceImage(), m_background, m_background_color, m_cache_clickable_chat_weblinks, m_font, m_fontsize, m_is_ctrl_down, MYMAX, myround(), rangelim, and setCursor().
◆ ~GUIChatConsole()
GUIChatConsole::~GUIChatConsole |
( |
| ) |
|
|
virtual |
◆ acceptsIME()
virtual bool GUIChatConsole::acceptsIME |
( |
| ) |
|
|
inlinevirtual |
◆ animate()
void GUIChatConsole::animate |
( |
u32 | msec | ) |
|
|
private |
◆ closeConsole()
void GUIChatConsole::closeConsole |
( |
| ) |
|
◆ closeConsoleAtOnce()
void GUIChatConsole::closeConsoleAtOnce |
( |
| ) |
|
◆ draw()
void GUIChatConsole::draw |
( |
| ) |
|
|
virtual |
References animate(), drawBackground(), drawPrompt(), drawText(), porting::getTimeMs(), m_animate_time_old, m_desired_height, m_desired_height_fraction, m_height, m_screensize, and reformatConsole().
◆ drawBackground()
void GUIChatConsole::drawBackground |
( |
| ) |
|
|
private |
◆ drawPrompt()
void GUIChatConsole::drawPrompt |
( |
| ) |
|
|
private |
References ChatBackend::getConsoleBuffer(), ChatPrompt::getCursorLength(), ChatBackend::getPrompt(), ChatBuffer::getRows(), ChatPrompt::getVisibleCursorPosition(), ChatPrompt::getVisiblePortion(), m_chat_backend, m_cursor_blink, m_cursor_height, m_desired_height, m_font, m_fontsize, m_height, and MYMAX.
Referenced by draw().
◆ drawText()
void GUIChatConsole::drawText |
( |
| ) |
|
|
private |
◆ isOpen()
bool GUIChatConsole::isOpen |
( |
| ) |
const |
◆ isOpenInhibited()
bool GUIChatConsole::isOpenInhibited |
( |
| ) |
const |
◆ OnEvent()
bool GUIChatConsole::OnEvent |
( |
const SEvent & | event | ) |
|
|
virtual |
References ChatPrompt::addToHistory(), closeConsole(), closeConsoleAtOnce(), ChatPrompt::CURSOROP_DELETE, ChatPrompt::CURSOROP_DIR_LEFT, ChatPrompt::CURSOROP_DIR_RIGHT, ChatPrompt::CURSOROP_MOVE, ChatPrompt::CURSOROP_SCOPE_CHARACTER, ChatPrompt::CURSOROP_SCOPE_LINE, ChatPrompt::CURSOROP_SCOPE_SELECTION, ChatPrompt::CURSOROP_SCOPE_WORD, ChatPrompt::CURSOROP_SELECT, ChatPrompt::cursorOperation(), dir(), Client::getConnectedPlayerNames(), ChatPrompt::getCursorLength(), getKeySetting(), ChatPrompt::getLine(), ChatBackend::getPrompt(), ChatPrompt::getSelection(), ChatPrompt::historyNext(), ChatPrompt::historyPrev(), ChatPrompt::input(), IS_PRIVATE_USE_CHAR, isInCtrlKeys(), m_cache_clickable_chat_weblinks, m_chat_backend, m_client, m_close_on_enter, m_fontsize, m_height, m_is_ctrl_down, m_open_inhibited, myround(), ChatPrompt::nickCompletion(), ChatPrompt::replace(), ChatBackend::scroll(), ChatBackend::scrollPageDown(), ChatBackend::scrollPageUp(), Client::typeChatMessage(), updatePrimarySelection(), utf8_to_wide(), weblinkClick(), and wide_to_utf8().
◆ openConsole()
void GUIChatConsole::openConsole |
( |
f32 | scale | ) |
|
◆ recalculateConsolePosition()
void GUIChatConsole::recalculateConsolePosition |
( |
| ) |
|
|
private |
◆ reformatConsole()
void GUIChatConsole::reformatConsole |
( |
| ) |
|
|
private |
◆ replaceAndAddToHistory()
void GUIChatConsole::replaceAndAddToHistory |
( |
const std::wstring & | line | ) |
|
◆ setCloseOnEnter()
void GUIChatConsole::setCloseOnEnter |
( |
bool | close | ) |
|
|
inline |
◆ setCursor()
void GUIChatConsole::setCursor |
( |
bool | visible, |
|
|
bool | blinking = false, |
|
|
f32 | blink_speed = 1.0, |
|
|
f32 | relative_height = 1.0 ) |
◆ setVisible()
void GUIChatConsole::setVisible |
( |
bool | visible | ) |
|
|
virtual |
◆ updatePrimarySelection()
void GUIChatConsole::updatePrimarySelection |
( |
| ) |
|
|
private |
◆ weblinkClick()
bool GUIChatConsole::weblinkClick |
( |
s32 | col, |
|
|
s32 | row ) |
|
private |
◆ m_animate_time_old
u64 GUIChatConsole::m_animate_time_old |
|
private |
◆ m_background
video::ITexture* GUIChatConsole::m_background = nullptr |
|
private |
◆ m_background_color
video::SColor GUIChatConsole::m_background_color = video::SColor(255, 0, 0, 0) |
|
private |
◆ m_cache_clickable_chat_weblinks
bool GUIChatConsole::m_cache_clickable_chat_weblinks |
|
private |
◆ m_chat_backend
◆ m_client
Client* GUIChatConsole::m_client |
|
private |
◆ m_close_on_enter
bool GUIChatConsole::m_close_on_enter = false |
|
private |
◆ m_cursor_blink
u32 GUIChatConsole::m_cursor_blink = 0 |
|
private |
◆ m_cursor_blink_speed
f32 GUIChatConsole::m_cursor_blink_speed = 0.0f |
|
private |
◆ m_cursor_height
f32 GUIChatConsole::m_cursor_height = 0.0f |
|
private |
◆ m_desired_height
f32 GUIChatConsole::m_desired_height = 0.0f |
|
private |
◆ m_desired_height_fraction
f32 GUIChatConsole::m_desired_height_fraction = 0.0f |
|
private |
◆ m_font
gui::IGUIFont* GUIChatConsole::m_font = nullptr |
|
private |
◆ m_fontsize
v2u32 GUIChatConsole::m_fontsize |
|
private |
◆ m_height
s32 GUIChatConsole::m_height = 0 |
|
private |
◆ m_height_speed
f32 GUIChatConsole::m_height_speed = 5.0f |
|
private |
◆ m_is_ctrl_down
bool GUIChatConsole::m_is_ctrl_down |
|
private |
◆ m_menumgr
◆ m_open
bool GUIChatConsole::m_open = false |
|
private |
◆ m_open_inhibited
u32 GUIChatConsole::m_open_inhibited = 0 |
|
private |
◆ m_screensize
v2u32 GUIChatConsole::m_screensize |
|
private |
The documentation for this class was generated from the following files: