Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions src/Menu/HomePageRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void HomePageRenderer::RenderWelcomeSection()
}
} else {
// Fallback button when Discord icon is not available
float buttonWidth = QUICK_LINKS_BUTTON_WIDTH * scale;
float buttonWidth = DISCORD_BANNER_MIN_WIDTH * scale;
ImGui::SetCursorPosX((windowSize.x - buttonWidth) * 0.5f);
if (ImGui::Button("Join Discord Server", ImVec2(buttonWidth, 0))) {
ShellExecuteA(NULL, "open", DISCORD_URL, NULL, NULL, SW_SHOWNORMAL);
Comment thread
brucenguyen marked this conversation as resolved.
Expand All @@ -155,30 +155,29 @@ void HomePageRenderer::RenderQuickLinksSection()
ImGui::SetCursorPosX((windowSize.x - titleSize.x) * 0.5f);
ImGui::Text("Quick Links");

// Center the button layout
float buttonWidth = QUICK_LINKS_BUTTON_WIDTH * Util::GetUIScale();
float totalWidth = buttonWidth * 3 + ImGui::GetStyle().ItemSpacing.x * 2; // 3 buttons with spacing
ImGui::SetCursorPosX((windowSize.x - totalWidth) * 0.5f);
ImGui::Columns(4, nullptr, false);

// External links in a row
if (ImGui::Button("Nexus Mods", ImVec2(buttonWidth, 0))) {
if (ImGui::Button("Nexus Mods", ImVec2(-1, 0))) {
ShellExecuteA(NULL, "open", "https://www.nexusmods.com/skyrimspecialedition/mods/86492", NULL, NULL, SW_SHOWNORMAL);
}

ImGui::SameLine();
if (ImGui::Button("GitHub", ImVec2(buttonWidth, 0))) {
ImGui::NextColumn();
if (ImGui::Button("GitHub", ImVec2(-1, 0))) {
ShellExecuteA(NULL, "open", "https://github.com/doodlum/skyrim-community-shaders", NULL, NULL, SW_SHOWNORMAL);
}

ImGui::SameLine();
if (ImGui::Button("Wiki", ImVec2(buttonWidth, 0))) {
ImGui::NextColumn();
if (ImGui::Button("Wiki", ImVec2(-1, 0))) {
ShellExecuteA(NULL, "open", "https://modding.wiki/en/skyrim/developers/community-shaders", NULL, NULL, SW_SHOWNORMAL);
}

ImGui::SameLine();
if (ImGui::Button("Developer Wiki", ImVec2(buttonWidth, 0))) {
ImGui::NextColumn();
if (ImGui::Button("Developer Wiki", ImVec2(-1, 0))) {
ShellExecuteA(NULL, "open", "https://github.com/doodlum/skyrim-community-shaders/wiki", NULL, NULL, SW_SHOWNORMAL);
}

ImGui::Columns(1);
}

void HomePageRenderer::RenderFAQSection()
Expand Down
1 change: 0 additions & 1 deletion src/Menu/HomePageRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class HomePageRenderer
static constexpr float HOTKEY_TEXT_SCALE_CAPTURING = 2.0f;
static constexpr float HOTKEY_HOVER_DIM_FACTOR = 0.7f;
static constexpr float HELP_TEXT_SCALE = 1.35f;
static constexpr float QUICK_LINKS_BUTTON_WIDTH = 180.0f;
static constexpr float LOGO_WATERMARK_HEIGHT = 156.0f;
static constexpr uint8_t MODAL_OVERLAY_ALPHA = 160;

Expand Down
Loading