Skip to content

Commit

Permalink
fix: improve styles and fix string format
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieluna committed Dec 18, 2024
1 parent c292a71 commit 4915cc8
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
Binary file modified package/Interface/Translations/CommunityShaders_chinese.txt
Binary file not shown.
Binary file modified package/Interface/Translations/CommunityShaders_english.txt
Binary file not shown.
Binary file modified package/Interface/Translations/CommunityShaders_japanese.txt
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ void Menu::DrawAdvancedSettings()
ImGui::Checkbox("Extended Frame Annotations", &State::GetSingleton()->extendedFrameAnnotations);
}

if (ImGui::CollapsingHeader("$Replace Original Shaders", ImGuiTreeNodeFlags_DefaultOpen | ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick)) {
if (ImGui::CollapsingHeader("$Replace Original Shaders"_i18n_cs, ImGuiTreeNodeFlags_DefaultOpen | ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick)) {
auto state = State::GetSingleton();
if (ImGui::BeginTable("##ReplaceToggles", 3, ImGuiTableFlags_SizingStretchSame)) {
for (int classIndex = 0; classIndex < RE::BSShader::Type::Total - 1; ++classIndex) {
Expand Down
3 changes: 2 additions & 1 deletion src/Utils/Translate.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <fmt/core.h>
#include <string>
#include <utility>
#include <vector>

namespace Util
{
Expand Down Expand Up @@ -36,7 +37,7 @@ namespace Util
auto processArg = [&](auto&& arg) {
if constexpr (std::is_convertible_v<decltype(arg), std::string_view>) {
if (std::string_view argView(arg); argView.starts_with('$'))
keyArgs.emplace_back(argView.substr(1));
keyArgs.emplace_back(argView);
else
otherArgs.emplace_back(argView);
} else {
Expand Down

0 comments on commit 4915cc8

Please sign in to comment.