Skip to content

Commit 6a40257

Browse files
committed
[frontend] StageSurface: Add developer docs to "Advanced" indirect settings tab
1 parent 26535ee commit 6a40257

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

source/frontend/properties/gc/Material/StageSurface.cpp

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ namespace libcube::UI {
55
using namespace librii;
66
using namespace riistudio::util;
77

8-
#define STATIC_STRVIEW(s) \
9-
{ s, sizeof(s) - 1 }
8+
#define STATIC_STRVIEW(s) {s, sizeof(s) - 1}
109

1110
std::string_view colorOpt = STATIC_STRVIEW("Register 3 Color\0"
1211
"Register 3 Alpha\0"
@@ -204,7 +203,20 @@ IndStage drawIndStage(IndStage stage) {
204203
ImGui::EndTabItem();
205204
}
206205
if (ImGui::BeginTabItem("Advanced"_j)) {
207-
206+
if (ImGui::BeginChild(
207+
"HelpBox1",
208+
ImVec2(0, ImGui::GetTextLineHeightWithSpacing() * 1.5f), true,
209+
ImGuiWindowFlags_NoScrollbar)) {
210+
ImGui::TextColored(ImVec4(0.9f, 0.3f, 0.3f, 1.0f),
211+
(const char*)ICON_FA_BOOK_OPEN);
212+
ImGui::SameLine();
213+
ImGui::Text("Documentation (Developer): ");
214+
ImGui::SameLine();
215+
ImGui::TextLinkOpenURL("GXSetTevIndirect (libogc)",
216+
"https://libogc.devkitpro.org/"
217+
"gx_8h.html#a00fa37cf7924a9992978ef2263ca3e3d");
218+
}
219+
ImGui::EndChild();
208220
int s = stage.indStageSel;
209221
ImGui::Combo("Displacement Configuration", &s,
210222
"Configuration 0\0"

0 commit comments

Comments
 (0)