diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3c7d831..1eb2c15a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,9 +43,7 @@ jobs: run: | mkdir -p build/linux_release cp build/bspguy build/linux_release/ - cp cfg/bspguy.cfg build/linux_release/ - cp cfg/language.ini build/linux_release/ - cp cfg/language_ru.ini build/linux_release/ + cp cfg/* build/linux_release/ cd build && zip -r newbspguy_ubuntu_release.zip linux_release/ - name: Publish nightly binaries for linux uses: softprops/action-gh-release@v1 @@ -78,8 +76,7 @@ jobs: run: | mkdir -p build/win64_release cp vs-project/Release/bspguy.exe build/win64_release/ - cp cfg/bspguy.cfg build/win64_release/ - cp cfg/language.ini build/win64_release/ + cp cfg/* build/win64_release/ Compress-Archive -Path "build/win64_release/*" -DestinationPath "build/newbspguy_win64_release.zip" - name: Publish nightly binaries for windows uses: softprops/action-gh-release@v1 @@ -95,8 +92,7 @@ jobs: run: | mkdir -p build/win64_debug cp vs-project/Release/bspguy_debug.exe build/win64_debug/ - cp cfg/bspguy.cfg build/win64_debug/ - cp cfg/language.ini build/win64_debug/ + cp cfg/* build/win64_debug/ Compress-Archive -Path "build/win64_debug/*" -DestinationPath "build/newbspguy_win64_dbg.zip" - name: Publish nightly debug binaries for windows uses: softprops/action-gh-release@v1 diff --git a/src/editor/Gui.cpp b/src/editor/Gui.cpp index 4db00305..bdf75683 100644 --- a/src/editor/Gui.cpp +++ b/src/editor/Gui.cpp @@ -4763,6 +4763,14 @@ void Gui::drawKeyvalueEditor_RawEditTab(int entIdx) ImGui::SetNextItemWidth(inputWidth); ImGui::InputText(("##val" + std::to_string(i)).c_str(), &ent->keyvalues[ent->keyOrder[i]], ImGuiInputTextFlags_CallbackEdit, TextChangeCallback::keyValueChanged, &valueIds[i]); + if (ImGui::IsItemHovered() && ent->keyvalues[ent->keyOrder[i]].size()) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(ent->keyvalues[ent->keyOrder[i]].c_str()); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } if (ent->keyOrder[i] == "angles" || ent->keyOrder[i] == "angle") @@ -5626,6 +5634,14 @@ void Gui::drawSettings() ImGui::Text(get_localized_string(LANG_0713).c_str()); ImGui::SetNextItemWidth(pathWidth); ImGui::InputText(get_localized_string(LANG_0714).c_str(), &g_settings.gamedir); + if (ImGui::IsItemHovered() && g.HoveredIdTimer > g_tooltip_delay && g_settings.gamedir.size()) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(g_settings.gamedir.c_str()); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } ImGui::SameLine(); ImGui::SetNextItemWidth(delWidth); if (ImGui::Button(get_localized_string(LANG_0715).c_str())) @@ -5635,6 +5651,14 @@ void Gui::drawSettings() ImGui::Text(get_localized_string(LANG_0716).c_str()); ImGui::SetNextItemWidth(pathWidth); ImGui::InputText(get_localized_string(LANG_0717).c_str(), &g_settings.workingdir); + if (ImGui::IsItemHovered() && g.HoveredIdTimer > g_tooltip_delay && g_settings.workingdir.size()) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(g_settings.workingdir.c_str()); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } ImGui::SameLine(); ImGui::SetNextItemWidth(delWidth); if (ImGui::Button(get_localized_string(LANG_0718).c_str())) @@ -5758,7 +5782,14 @@ void Gui::drawSettings() ImGui::SetNextItemWidth(pathWidth * 0.80f); ImGui::InputText(("##fgd" + std::to_string(i)).c_str(), &g_settings.fgdPaths[i].path); - + if (ImGui::IsItemHovered() && g.HoveredIdTimer > g_tooltip_delay && g_settings.fgdPaths[i].path.size()) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(g_settings.fgdPaths[i].path.c_str()); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } ImGui::SameLine(); ImGui::SetNextItemWidth(delWidth); @@ -5797,7 +5828,14 @@ void Gui::drawSettings() ImGui::SetNextItemWidth(pathWidth * 0.80f); ImGui::InputText(("##res" + std::to_string(i)).c_str(), &g_settings.resPaths[i].path); - + if (ImGui::IsItemHovered() && g.HoveredIdTimer > g_tooltip_delay && g_settings.resPaths[i].path.size()) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(g_settings.resPaths[i].path.c_str()); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } ImGui::SameLine(); ImGui::SetNextItemWidth(delWidth);