mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
GameUI refactor (part 5/X): Move Game::guitext_chat to GameUI class
Other enhancements: * Move update_profiler_gui to Game class * Move updateChat to Game class
This commit is contained in:
parent
fe510d90c1
commit
326b0faa5e
5 changed files with 118 additions and 126 deletions
|
@ -708,11 +708,10 @@ ChatBuffer& ChatBackend::getRecentBuffer()
|
|||
return m_recent_buffer;
|
||||
}
|
||||
|
||||
EnrichedString ChatBackend::getRecentChat()
|
||||
EnrichedString ChatBackend::getRecentChat() const
|
||||
{
|
||||
EnrichedString result;
|
||||
for (u32 i = 0; i < m_recent_buffer.getLineCount(); ++i)
|
||||
{
|
||||
for (u32 i = 0; i < m_recent_buffer.getLineCount(); ++i) {
|
||||
const ChatLine& line = m_recent_buffer.getLine(i);
|
||||
if (i != 0)
|
||||
result += L"\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue