diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2021-03-27 13:28:36 +0100 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2021-03-27 13:28:36 +0100 |
commit | 399194ce3b1d01c1492d0d9763525950c61b6054 (patch) | |
tree | 91108d773b0a51326e803d04f81f5d6e1c2ca8f7 /src/gui/guiChatConsole.h | |
parent | 98021002253fd1646230c889bc0c8ff4dd1a48e8 (diff) | |
parent | 7e8e3153e5227eb9b35ed2379efb54d17ba9aeae (diff) | |
download | minetest-gpcf.tar.gz minetest-gpcf.tar.bz2 minetest-gpcf.zip |
Merge remote-tracking branch 'pexin/clickablechatweblinks' into gpcfgpcf
Diffstat (limited to 'src/gui/guiChatConsole.h')
-rw-r--r-- | src/gui/guiChatConsole.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/guiChatConsole.h b/src/gui/guiChatConsole.h index 896342ab0..169fb7eb7 100644 --- a/src/gui/guiChatConsole.h +++ b/src/gui/guiChatConsole.h @@ -82,6 +82,12 @@ private: void drawText(); void drawPrompt(); + // Clickable weblink stuff + int setupChatClickCtrlKeys(std::string inputline); + bool isInCtrlKeys(const irr::EKEY_CODE& kc); + // If clicked fragment has a web url, send it to the system default web browser + void middleClick(s32 col, s32 row); + private: ChatBackend* m_chat_backend; Client* m_client; @@ -124,4 +130,9 @@ private: // font gui::IGUIFont *m_font = nullptr; v2u32 m_fontsize; + + // Enable clickable chat weblinks + bool m_cache_clickable_chat_weblinks; + // Set of "control" keys for weblink mouseclicks + std::vector<irr::EKEY_CODE> m_cache_chat_weblink_ctrl_keys; }; |