Skip to content

Commit

Permalink
fix missing lang files
Browse files Browse the repository at this point in the history
  • Loading branch information
UnrealKaraulov committed Dec 17, 2023
1 parent 131dd91 commit 3046998
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 9 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
42 changes: 40 additions & 2 deletions src/editor/Gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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()))
Expand All @@ -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()))
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3046998

Please sign in to comment.