Skip to content

Commit

Permalink
Merge pull request #118 from SkEditorTeam/dev/dev
Browse files Browse the repository at this point in the history
v2.8.1
  • Loading branch information
NotroDev authored Aug 19, 2024
2 parents 1f8822a + 5831287 commit dfdc4dd
Show file tree
Hide file tree
Showing 26 changed files with 191 additions and 472 deletions.
2 changes: 1 addition & 1 deletion Installer/Package.wxs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<Package Name="SkEditor" Manufacturer="Notro" Version="2.8.0" UpgradeCode="14564974-da58-4917-8a0d-590043f589c2">
<Package Name="SkEditor" Manufacturer="Notro" Version="2.8.1" UpgradeCode="14564974-da58-4917-8a0d-590043f589c2">
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />
<MediaTemplate EmbedCab="yes" />

Expand Down
25 changes: 0 additions & 25 deletions SkEditor/API/ApiVault.cs

This file was deleted.

68 changes: 0 additions & 68 deletions SkEditor/API/ISkEditorAPI.cs

This file was deleted.

3 changes: 2 additions & 1 deletion SkEditor/API/Utilities/IWindows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ public interface IWindows
/// <param name="icon">The dialog's icon. Can be null.</param>
/// <param name="cancelButtonText">The text of the cancel button. If null, no cancel button will be shown.</param>
/// <param name="primaryButtonText">The text of the primary button. Default is "Okay", <b>cannot be null</b></param>
/// <param name="translate">Whether to try translate the title</param>
/// <returns>The result of the dialog.</returns>
Task<ContentDialogResult> ShowDialog(string title,
string message,
object? icon = null,
string? cancelButtonText = null,
string primaryButtonText = "Okay");
string primaryButtonText = "Okay", bool translate = true);

/// <summary>
/// Show a message dialog to the user.
Expand Down
1 change: 0 additions & 1 deletion SkEditor/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public override async void OnFrameworkInitializationCompleted()
try
{
SkEditorAPI.Core.SetStartupArguments(desktop.Args ?? []);
_ = new SkEditor();

MainWindow mainWindow = new();
desktop.MainWindow = mainWindow;
Expand Down
2 changes: 1 addition & 1 deletion SkEditor/Controls/Addons/AddonEntryControl.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void LoadVisuals(AddonMeta addonMeta)
Symbol = Symbol.Warning,
Foreground = new SolidColorBrush(addonMeta.HasCriticalErrors ? ErrorColor : WarningColor),
FontSize = 36,
IsFilled = true
IconVariant = IconVariant.Filled
};
Expander.Header = new TextBlock()
{
Expand Down
5 changes: 5 additions & 0 deletions SkEditor/Controls/MainMenuControl.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@
<ui:IconSourceElement IconSource="{StaticResource RefactorIcon}" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="{DynamicResource MenuHeaderColorSelector}" Name="MenuItemColorSelector">
<MenuItem.Icon>
<ui:IconSourceElement IconSource="{StaticResource ColorIcon}" />
</MenuItem.Icon>
</MenuItem>
</MenuItem>
<MenuItem Name="AddonsMenuItem" Header="{DynamicResource MenuHeaderAddons}">

Expand Down
6 changes: 4 additions & 2 deletions SkEditor/Controls/MainMenuControl.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ private void AssignCommands()

MenuItemRefreshSyntax.Command = new RelayCommand(async () => await SyntaxLoader.RefreshSyntaxAsync());

MenuItemSettings.Command = new RelayCommand(() => new SettingsWindow().ShowDialog(SkEditorAPI.Windows.GetMainWindow()));
MenuItemDocs.Command = new RelayCommand(AddDocsTab);
MenuItemGenerateGui.Command = new RelayCommand(() => ShowDialogIfEditorIsOpen(new GuiGenerator()));
MenuItemGenerateCommand.Command = new RelayCommand(() => ShowDialogIfEditorIsOpen(new CommandGenerator()));
MenuItemRefactor.Command = new RelayCommand(() => ShowDialogIfEditorIsOpen(new RefactorWindow()));
MenuItemColorSelector.Command = new RelayCommand(() => new ColorSelectionWindow().ShowDialog(SkEditorAPI.Windows.GetMainWindow()));

MenuItemMarketplace.Command = new RelayCommand(() => new MarketplaceWindow().ShowDialog(SkEditorAPI.Windows.GetMainWindow()));

MenuItemDocs.Command = new RelayCommand(AddDocsTab);
MenuItemSettings.Command = new RelayCommand(() => new SettingsWindow().ShowDialog(SkEditorAPI.Windows.GetMainWindow()));
}

private static void ShowDialogIfEditorIsOpen(AppWindow window)
Expand Down
5 changes: 5 additions & 0 deletions SkEditor/Languages/English.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<system:String x:Key="WindowTitleMarketplace">Marketplace</system:String>
<system:String x:Key="WindowTitleElementRename">Rename</system:String>
<system:String x:Key="WindowTitleElementCreate">Create</system:String>
<system:String x:Key="WindowTitleColorSelector">Color selector</system:String>

<!-- Menu Headers -->
<system:String x:Key="MenuHeaderFile">File</system:String>
Expand Down Expand Up @@ -58,6 +59,7 @@
<system:String x:Key="MenuHeaderGenerateGUI">GUI</system:String>
<system:String x:Key="MenuHeaderGenerateCommand">Command</system:String>
<system:String x:Key="MenuHeaderRefactor">Refactor</system:String>
<system:String x:Key="MenuHeaderColorSelector">Color selector</system:String>

<!-- Other Menu -->
<system:String x:Key="MenuHeaderMarketplace">Marketplace</system:String>
Expand Down Expand Up @@ -193,6 +195,9 @@
<system:String x:Key="RefactorWindowSpacesToTabs">Convert spaces to tabs</system:String>
<system:String x:Key="RefactorWindowRefactorBoxName">Renaming '{0}' into...</system:String>

<!-- Color Selector -->
<system:String x:Key="ColorSelectorWindowHexResult">Result in hex</system:String>


<!-- Projects -->
<system:String x:Key="ProjectExplorerTitle">Explorer</system:String>
Expand Down
7 changes: 6 additions & 1 deletion SkEditor/Languages/Polish.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<system:String x:Key="WindowTitleMarketplace">Rynek</system:String>
<system:String x:Key="WindowTitleElementRename">Zmień nazwę</system:String>
<system:String x:Key="WindowTitleElementCreate">Stwórz</system:String>
<system:String x:Key="WindowTitleColorSelector">Selektor kolorów</system:String>

<!-- Menu Headers -->
<system:String x:Key="MenuHeaderFile">Plik</system:String>
Expand Down Expand Up @@ -58,7 +59,8 @@
<system:String x:Key="MenuHeaderGenerateGUI">GUI</system:String>
<system:String x:Key="MenuHeaderGenerateCommand">Komenda</system:String>
<system:String x:Key="MenuHeaderRefactor">Refaktoryzacja</system:String>

<system:String x:Key="MenuHeaderColorSelector">Selektor kolorów</system:String>

<!-- Other Menu -->
<system:String x:Key="MenuHeaderMarketplace">Rynek</system:String>
<system:String x:Key="MenuHeaderRefreshSyntax">Odśwież składnię</system:String>
Expand Down Expand Up @@ -192,6 +194,9 @@
<system:String x:Key="RefactorWindowTabsToSpaces">Zamień taby na spacje</system:String>
<system:String x:Key="RefactorWindowSpacesToTabs">Zamień spacje na taby</system:String>
<system:String x:Key="RefactorWindowRefactorBoxName">Zmiana nazwy '{0}' na...</system:String>

<!-- Color Selector -->
<system:String x:Key="ColorSelectorWindowHexResult">Rezultat w HEX</system:String>


<!-- Projects -->
Expand Down
Loading

0 comments on commit dfdc4dd

Please sign in to comment.