Merge more changes

This commit is contained in:
GabsPuNs
2026-05-11 00:10:52 -04:00
parent 6b1e4d9b86
commit 6829fc2e4a
12 changed files with 253 additions and 46 deletions

View File

@@ -22,6 +22,8 @@ ChatScreen::ChatScreen()
frame = 0;
cursorIndex = 0;
s_historyIndex = -1;
ChatScreen::s_chatIndex = 0;
}
void ChatScreen::init()
@@ -83,6 +85,23 @@ void ChatScreen::handleHistoryDown()
applyHistoryMessage();
}
int ChatScreen::getChatIndex()
{
return ChatScreen::s_chatIndex;
}
void ChatScreen::correctChatIndex(int newChatIndex)
{
ChatScreen::s_chatIndex = newChatIndex;
}
void ChatScreen::setWheelValue(int wheel)
{
ChatScreen::s_chatIndex += wheel;
if (ChatScreen::s_chatIndex < 0)
ChatScreen::s_chatIndex = 0;
}
void ChatScreen::keyPressed(wchar_t ch, int eventKey)
{
if (eventKey == Keyboard::KEY_ESCAPE)