Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
HorizontalAlignment="Right" />
</local:WindowModal.Buttons>
<local:WindowModal.Data>
<TextBlock Text="{Binding Message, RelativeSource={RelativeSource AncestorType=cm:MessageBoxModal}, Converter={StaticResource StringLocalizeConverter}}"
FontSize="14" Margin="50,70,100,0" />
<ScrollViewer Margin="50,70,100,20">
<TextBlock Text="{Binding Message, RelativeSource={RelativeSource AncestorType=cm:MessageBoxModal}}"
FontSize="14" Margin="0,0,100,20" />
</ScrollViewer>
</local:WindowModal.Data>
</local:WindowModal>
2 changes: 1 addition & 1 deletion Source/HedgeModManager.UI/Languages/en-AU.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<system:String xml:space="preserve" x:Key="Modal.Message.MissingDependency">The mods listed below are missing and are required to play.&#x0a;&#x0a;{0}</system:String>
<system:String xml:space="preserve" x:Key="Modal.Message.ModLoaderInstallError">An error occurred while trying to install the mod loader.&#x0a;&#x0a;Check log for exception.</system:String>
<system:String xml:space="preserve" x:Key="Modal.Message.SelectModsError">Hedge Mod Manager does not have permissions to the selected directory.&#x0a;&#x0a;Please select another directory.</system:String>
<system:String xml:space="preserve" x:Key="Modal.Message.UpdateMod">There is an update available for {0}.&#x0a;&#x0a;Would you like to update the mod?</system:String>
<system:String xml:space="preserve" x:Key="Modal.Message.UpdateMod">There is an update available for {0} ({1} -> {2}).&#x0a;&#x0a;Would you like to update the mod?</system:String>
<system:String xml:space="preserve" x:Key="Modal.Message.UpdateModError">An unknown error occurred while updating &quot;{0}&quot;.&#x0a;&#x0a;Please try again later.</system:String>
<system:String xml:space="preserve" x:Key="Modal.Message.UnknownError">An unknown error has occurred.</system:String>
<system:String xml:space="preserve" x:Key="Modal.Message.UnknownSaveError">Hedge Mod Manager was unable to save&#x0a;due to an unknown error.</system:String>
Expand Down
7 changes: 6 additions & 1 deletion Source/HedgeModManager.UI/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,12 @@ public async Task CheckForAllModUpdatesAsync()
Logger.Debug($" Latest: {info.Version}");
if (promptUpdate)
{
var messageBox = new MessageBoxModal("Modal.Title.UpdateMod", Localize("Modal.Message.UpdateMod", mod.Title));
var message = Localize("Modal.Message.UpdateMod", mod.Title, mod.Version, info.Version);
if (!string.IsNullOrEmpty(info.Changelog))
{
message += "\n\n" + info.Changelog;
}
var messageBox = new MessageBoxModal(Localize("Modal.Title.UpdateMod"), message);
messageBox.AddButton("Common.Button.Cancel", (s, e) => messageBox.Close());
messageBox.AddButton("Common.Button.Update", async (s, e) =>
{
Expand Down