Fix windows build

This commit is contained in:
aMannus
2025-05-30 19:14:01 +02:00
parent bbfcf8789c
commit 11d055c3f1
3 changed files with 4 additions and 4 deletions

View File

@@ -342,7 +342,7 @@ void ArchipelagoClient::SendGameWon() {
}
}
void ArchipelagoClient::SendMessage(const std::string message) {
void ArchipelagoClient::SendMessageToConsole(const std::string message) {
// local commands not implemented yet
if(message.starts_with("/")) {
ArchipelagoConsole_SendMessage("Ship of Harkinian does not have any local commands yet.\nUse !help\" to see server commands instead", false);

View File

@@ -58,7 +58,7 @@ class ArchipelagoClient{
void QueueExternalCheck(int64_t apLocation);
void SendGameWon();
void SendMessage(const std::string message);
void SendMessageToConsole(const std::string message);
void Poll();
std::unique_ptr<APClient> apClient;

View File

@@ -75,14 +75,14 @@ void ArchipelagoConsoleWindow::DrawElement() {
keepFocus = false;
}
if(ImGui::InputText("##AP_MessageField", textEntryBuf, 1023, ImGuiInputTextFlags_EnterReturnsTrue)) {
ArchipelagoClient::GetInstance().SendMessage(std::string(textEntryBuf));
ArchipelagoClient::GetInstance().SendMessageToConsole(std::string(textEntryBuf));
textEntryBuf[0] = '\0';
keepFocus = true;
}
//keepFocus = ImGui::IsItemActive();
ImGui::SameLine();
if(ImGui::Button("Send")) {
ArchipelagoClient::GetInstance().SendMessage(std::string(textEntryBuf));
ArchipelagoClient::GetInstance().SendMessageToConsole(std::string(textEntryBuf));
textEntryBuf[0] = '\0';
keepFocus = true;
}