summaryrefslogtreecommitdiff
path: root/src/chat.h
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2021-03-27 13:28:36 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2021-03-27 13:28:36 +0100
commit399194ce3b1d01c1492d0d9763525950c61b6054 (patch)
tree91108d773b0a51326e803d04f81f5d6e1c2ca8f7 /src/chat.h
parent98021002253fd1646230c889bc0c8ff4dd1a48e8 (diff)
parent7e8e3153e5227eb9b35ed2379efb54d17ba9aeae (diff)
downloadminetest-399194ce3b1d01c1492d0d9763525950c61b6054.tar.gz
minetest-399194ce3b1d01c1492d0d9763525950c61b6054.tar.bz2
minetest-399194ce3b1d01c1492d0d9763525950c61b6054.zip
Merge remote-tracking branch 'pexin/clickablechatweblinks' into gpcfgpcf
Diffstat (limited to 'src/chat.h')
-rw-r--r--src/chat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/chat.h b/src/chat.h
index 0b98e4d3c..d7d27646f 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<ChatFormattedLine>& destination) const;
void resize(u32 scrollback);
+
protected:
s32 getTopScrollPos() const;
s32 getBottomScrollPos() const;
@@ -138,6 +141,11 @@ private:
std::vector<ChatFormattedLine> 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