From b6c8761e108eade0d1451580fbacf1e3d3f6a957 Mon Sep 17 00:00:00 2001 From: pecksin Date: Thu, 18 Mar 2021 16:47:36 -0400 Subject: re-apply everything manually because git --- src/chat.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/chat.h') diff --git a/src/chat.h b/src/chat.h index 0b98e4d3c..bb40af048 100644 --- a/src/chat.h +++ b/src/chat.h @@ -57,6 +57,8 @@ struct ChatFormattedFragment EnrichedString text; // starting column u32 column; + // web link for now. maybe future use? + std::string meta; // formatting //u8 bold:1; }; @@ -118,6 +120,7 @@ public: std::vector& destination) const; void resize(u32 scrollback); + protected: s32 getTopScrollPos() const; s32 getBottomScrollPos() const; @@ -138,6 +141,11 @@ private: std::vector m_formatted; // Empty formatted line, for error returns ChatFormattedLine m_empty_formatted_line; + + // Enable clickable chat weblinks + bool m_cache_clickable_chat_weblinks; + // Color of clickable chat weblinks + irr::video::SColor m_cache_chat_weblink_color; }; class ChatPrompt @@ -281,6 +289,10 @@ public: void scrollPageDown(); void scrollPageUp(); + // Handle middle click at this font position + // If clicked fragment has a web url, send it to the system default web browser + void middleClick(s32 col, s32 row); + // Resize recent buffer based on settings void applySettings(); -- cgit v1.2.3 From 7e8e3153e5227eb9b35ed2379efb54d17ba9aeae Mon Sep 17 00:00:00 2001 From: pecksin Date: Tue, 23 Mar 2021 18:18:44 -0400 Subject: move middleClick() into guiChatConsole.cpp where it belongs --- src/chat.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/chat.h') diff --git a/src/chat.h b/src/chat.h index bb40af048..d7d27646f 100644 --- a/src/chat.h +++ b/src/chat.h @@ -289,10 +289,6 @@ public: void scrollPageDown(); void scrollPageUp(); - // Handle middle click at this font position - // If clicked fragment has a web url, send it to the system default web browser - void middleClick(s32 col, s32 row); - // Resize recent buffer based on settings void applySettings(); -- cgit v1.2.3