Skip to content

Commit

Permalink
Small Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
BigSpice committed Jun 6, 2022
1 parent e5b89e4 commit 518107f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
10 changes: 5 additions & 5 deletions MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@
</hc:ScrollViewer>

</hc:SimplePanel>
<hc:SimplePanel x:Name="Tools_Panel" Background="{DynamicResource BG_PANELS}" Visibility="Hidden" Margin="190,0,0,2" Grid.ColumnSpan="4" Grid.RowSpan="2">
<hc:SimplePanel x:Name="Tools_Panel" Background="{DynamicResource BG_PANELS}" Visibility="Visible" Margin="190,0,0,2" Grid.ColumnSpan="4" Grid.RowSpan="2">

<hc:ScrollViewer>
<Grid Height="1386" >
Expand Down Expand Up @@ -641,11 +641,11 @@
<Label Content="Description" Width="86" Background="{x:Null}" BorderBrush="{x:Null}" FontWeight="Normal" FontFamily="Gadugi" Height="30" Padding="10,3,10,3" Margin="227,921,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
<Label Content="Mod Dependencies" Width="129" Background="{x:Null}" BorderBrush="{x:Null}" FontWeight="Normal" FontFamily="Gadugi" Height="30" Padding="10,3,10,3" Margin="228,981,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>

<TextBox x:Name="Mod_name" HorizontalAlignment="Center" Margin="0,779,0,0" TextWrapping="NoWrap" Text="Name " VerticalAlignment="Top" Width="424" Background="White" Foreground="Black" SelectionTextBrush="Black" CaretBrush="Black" FontSize="11" />
<TextBox x:Name="Mod_name" HorizontalAlignment="Center" Margin="0,779,0,0" TextWrapping="NoWrap" Text="ModName" VerticalAlignment="Top" Width="424" Background="White" Foreground="Black" SelectionTextBrush="Black" CaretBrush="Black" FontSize="11" />

<TextBox x:Name="Mod_version_number" HorizontalAlignment="Center" Margin="0,838,0,0" TextWrapping="NoWrap" Text="Version" VerticalAlignment="Top" Width="424" Background="White" Foreground="Black" SelectionTextBrush="Black" CaretBrush="Black" FontSize="11" />
<TextBox x:Name="Mod_website_url" HorizontalAlignment="Center" Margin="0,893,0,0" TextWrapping="NoWrap" Text="Website URL" VerticalAlignment="Top" Width="424" Background="White" Foreground="Black" SelectionTextBrush="Black" CaretBrush="Black" FontSize="11" />
<TextBox x:Name="Mod_description" HorizontalAlignment="Center" Margin="0,951,0,0" TextWrapping="NoWrap" Text="Description" VerticalAlignment="Top" Width="424" Background="White" Foreground="Black" SelectionTextBrush="Black" CaretBrush="Black" FontSize="11" />
<TextBox x:Name="Mod_version_number" HorizontalAlignment="Center" Margin="0,838,0,0" TextWrapping="NoWrap" Text="1.0.0" VerticalAlignment="Top" Width="424" Background="White" Foreground="Black" SelectionTextBrush="Black" CaretBrush="Black" FontSize="11" />
<TextBox x:Name="Mod_website_url" HorizontalAlignment="Center" Margin="0,893,0,0" TextWrapping="NoWrap" Text="Mymodrepo.com" VerticalAlignment="Top" Width="424" Background="White" Foreground="Black" SelectionTextBrush="Black" CaretBrush="Black" FontSize="11" />
<TextBox x:Name="Mod_description" HorizontalAlignment="Center" Margin="0,951,0,0" TextWrapping="NoWrap" Text="Hi!, Im a generated Northstar Mod!" VerticalAlignment="Top" Width="424" Background="White" Foreground="Black" SelectionTextBrush="Black" CaretBrush="Black" FontSize="11" />
<TextBox x:Name="Mod_dependencies" HorizontalAlignment="Center" Margin="0,1011,0,0" TextWrapping="NoWrap" Text="Dependencies" VerticalAlignment="Top" Width="424" Background="White" Foreground="Black" SelectionTextBrush="Black" CaretBrush="Black" FontSize="11" />
<CheckBox x:Name="Skin_Mod_Pack_Check" Content="Package as a DDS Skin?" HorizontalAlignment="Center" Height="20" Width="149" Margin="0,1108,0,0" VerticalAlignment="Top" Checked="Skin_Mod_Pack_Check_Checked" Unchecked="Skin_Mod_Pack_Check_Unchecked"/>

Expand Down
23 changes: 15 additions & 8 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,8 @@ public MainWindow()



this.Resources["Button_BG"] = new SolidColorBrush(Colors.LightGray);



Mod_dependencies.Text = "northstar-Northstar-" + Properties.Settings.Default.Version.Remove(0, 1);
// Web_Browser.JavascriptMessageReceived += Web_Browser_JavascriptMessageReceived();
DataContext = this;
Animation_Start_Northstar = false;
Expand Down Expand Up @@ -8904,7 +8902,6 @@ private void ColorPicker_Accent_Confirmed(object sender, FunctionEventArgs<Color
if (isValidHexaCode(ColorPicker_Accent.SelectedBrush.Color.ToString()))
{
this.Resources["Button_BG"] = (SolidColorBrush)new BrushConverter().ConvertFrom(ColorPicker_Accent.SelectedBrush.Color.ToString());
Send_Info_Notif(ColorPicker_Accent.SelectedBrush.Color.ToString().Trim());
saveAsyncFile(ColorPicker_Accent.SelectedBrush.Color.ToString().Trim(), @"C:\ProgramData\VTOL_DATA\VARS\Theme.txt", false, false);
Send_Success_Notif("Saved The Color And Applied!");

Expand Down Expand Up @@ -9235,16 +9232,26 @@ void create_Manifest(string Output_Folder)
}
else
{
string Output = "";
if(Mod_dependencies.Text != null || Mod_dependencies.Text != "" ){



string Output = @"{
Output = @"{
""name"": " + '\u0022' + Mod_name.Text.Trim() + '\u0022' + @",
""version_number"":" + '\u0022' + Mod_version_number.Text.Trim() + '\u0022' + @",
""website_url"": " + '\u0022' + Mod_website_url.Text.Trim() + '\u0022' + @",
""description"": " + '\u0022' + Mod_description.Text.Trim() + '\u0022' + @",
""dependencies"": [" + '\u0022' + Mod_dependencies+ '\u0022' + "]" +
"\n}";
}
else {
Output = @"{
""name"": " + '\u0022' + Mod_name.Text.Trim() + '\u0022' + @",
""version_number"":" + '\u0022' + Mod_version_number.Text.Trim() + '\u0022' + @",
""website_url"": " + '\u0022' + Mod_website_url.Text.Trim() + '\u0022' + @",
""description"": " + '\u0022' + Mod_description.Text.Trim() + '\u0022' + @",
""dependencies"": [" + '\u0022' + "northstar-Northstar-" + Properties.Settings.Default.Version.Remove(0, 1) + '\u0022' + "]" +
"\n}";
"\n}";
}
saveAsyncFile(Output, Output_Folder + "/" + "manifest.json", false, false);

}
Expand Down

0 comments on commit 518107f

Please sign in to comment.