mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-11 09:48:08 +08:00
feat: some fixes
This commit is contained in:
1 parent
186e196bca
commit
7b4f56fc28
3 files changed
+16
-15
No files matched your search
@@ -32,10 +32,7 @@ namespace YimMenu
|
||||
if (scanSuccess)
|
||||
scanSuccess = job.get();
|
||||
}
|
||||
if (!scanSuccess)
|
||||
{
|
||||
LOG(FATAL) << "Some patterns have not been found, continuing would be foolish.";
|
||||
}
|
||||
|
||||
return scanSuccess;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,22 +42,25 @@ namespace YimMenu
|
||||
|
||||
ImGui::SetNextWindowSize(ImVec2(*Pointers.ScreenResX - x_pos - 10, *Pointers.ScreenResY - y_pos), ImGuiCond_Always);
|
||||
ImGui::SetNextWindowPos(ImVec2(x_pos, y_pos), ImGuiCond_Always);
|
||||
ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
ImGui::PushFont(Menu::Font::g_ChatFont);
|
||||
|
||||
ImGui::Begin("##chatwin", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoInputs);
|
||||
|
||||
for (auto& message : m_Messages)
|
||||
if (ImGui::Begin("##chatwin", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoInputs))
|
||||
{
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(message.m_Color));
|
||||
ImGui::TextWrapped("%s:", message.m_Sender.data());
|
||||
ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
ImGui::PushFont(Menu::Font::g_ChatFont);
|
||||
|
||||
for (auto& message : m_Messages)
|
||||
{
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(message.m_Color));
|
||||
ImGui::TextWrapped("%s:", message.m_Sender.data());
|
||||
ImGui::PopStyleColor();
|
||||
ImGui::SameLine();
|
||||
ImGui::TextWrapped("%s", message.m_Message.data());
|
||||
}
|
||||
|
||||
ImGui::PopFont();
|
||||
ImGui::PopStyleColor();
|
||||
ImGui::SameLine();
|
||||
ImGui::TextWrapped("%s", message.m_Message.data());
|
||||
}
|
||||
|
||||
ImGui::PopFont();
|
||||
ImGui::PopStyleColor();
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -373,6 +373,7 @@ namespace YimMenu
|
||||
|
||||
if (IsSocialClubNeverGoingToLoad())
|
||||
{
|
||||
LOG(WARNING) << "Timed out checking for socialclub.dll";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user