fix(stat_editor):

This commit is contained in:
maybegreat48 committed 2025-04-03 15:07:28 -04:00
1 parent f795a63f0d
commit 56de77b624
1 file changed
+2 -2
@@ -205,11 +205,11 @@ namespace YimMenu::Submenus
ImGui::BeginDisabled(!can_edit);
if (ImGui::Button("Write"))
FiberPool::Push([] {
WriteStat(Joaat(stat_buf), value, current_info.m_Data);
WriteStat(current_info.m_NameHash, value, current_info.m_Data);
});
if (ImGui::IsMouseClicked(ImGuiMouseButton_Right) && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled))
FiberPool::Push([] {
WriteStat(Joaat(stat_buf), value, current_info.m_Data);
WriteStat(current_info.m_NameHash, value, current_info.m_Data);
});
if (!can_edit && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled))
ImGui::SetTooltip("This stat should not be edited by the client. Right-click to force the write anyway");