Skip to content

Commit

Permalink
Merge pull request #329 from ANonMouseModding/284_UseIcons
Browse files Browse the repository at this point in the history
Changed the open folder from text to an icon.
  • Loading branch information
budak7273 authored Dec 12, 2024
2 parents 1973b06 + 82dbf72 commit 105bfa1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions Mods/Alpakit/Source/Alpakit/Private/AlpakitReleaseWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void SAlpakitReleaseWidget::Construct(const FArguments& InArgs) {
return EVisibility::Visible;
return EVisibility::Hidden;
})
.ToolTipText(LOCTEXT("PackageDirRootAlpakit_Tooltip", "Opens the ArchivedPlugins Folder to view all built plugins."))
.ToolTipText(LOCTEXT("PackageDirRootAlpakit_Tooltip", "Open the ArchivedPlugins folder to view all mod release packages."))
]
]
.SearchTrail() [
Expand Down Expand Up @@ -197,7 +197,11 @@ void SAlpakitReleaseWidget::Construct(const FArguments& InArgs) {
})
.Content()[
SNew(SButton)
.Text(LOCTEXT("OpenDirAlpakit", "Open Folder"))
.Content()
[
SNew(SImage)
.Image(FAlpakitStyle::Get().GetBrush("Alpakit.FolderOpen"))
]
.OnClicked_Lambda([this, modPath]
{
FPlatformProcess::ExploreFolder(*modPath);
Expand All @@ -207,7 +211,7 @@ void SAlpakitReleaseWidget::Construct(const FArguments& InArgs) {
{
return !FAlpakitModule::Get().IsPackaging();
})
.ToolTipText(LOCTEXT("OpenDirToolTip", "Opens the Mod's ArchivedPlugins directory in File Explorer"))
.ToolTipText(LOCTEXT("OpenDirToolTip", "Open the mod's ArchivedPlugins directory in File Explorer, which contains the multi-target zip file to upload to the Satisfactory Mod Repository."))
]
]
+ SHorizontalBox::Slot().AutoWidth().Padding(5,0)[
Expand Down
2 changes: 1 addition & 1 deletion Mods/Alpakit/Source/Alpakit/Private/AlpakitStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ TSharedRef<FSlateStyleSet> FAlpakitStyle::Create() {
Style->SetCoreContentRoot(FPaths::EngineContentDir() / TEXT("Slate"));

Style->Set("Alpakit.Warning", new IMAGE_BRUSH("Icons/alert", Icon16x16) );
Style->Set("Alpakit.FolderOpen", new IMAGE_BRUSH("Icons/icon_file_ProjectOpen_16x", Icon16x16));
return Style;
}

Expand Down

0 comments on commit 105bfa1

Please sign in to comment.