Skip to content

Commit

Permalink
UI Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
BigSpice committed Jan 21, 2024
1 parent 45d6a6d commit b6c611f
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@
[Tt]humbs.db
_ReSharper.*
*.resharper
Ankh.NoLoad
Ankh.NoLoad
/VTOL_2.0.0/Resources/Backgrounds/Backgrounds_Home_Page/VTOL_NIGHTLY-artifact.zip
/VTOL_2.0.0/Resources/Backgrounds/Backgrounds_Home_Page/VTOL_NIGHTLY-artifact.zip
/VTOL_2.0.0/Resources/Backgrounds/Backgrounds_Home_Page/VTOL_NIGHTLY-artifact.zip
/VTOL_2.0.0/Resources/Backgrounds/Backgrounds_Home_Page/VTOL_NIGHTLY-artifact.zip
Binary file modified VTOL_2.0.0/.vs/ProjectEvaluation/vtol.metadata.v7.bin
Binary file not shown.
Binary file modified VTOL_2.0.0/.vs/ProjectEvaluation/vtol.projects.v7.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions VTOL_2.0.0/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,14 @@
<Grid xf:Animations.Primary="{StaticResource FadeIn}"
Margin="0,7,2,663" ScrollViewer.VerticalScrollBarVisibility="Disabled" Grid.ColumnSpan="2" AllowDrop="False" HorizontalAlignment="Center" >

<StatusBar Margin="0,0,554,0" Background="Transparent" BorderThickness="0,0,0,0" HorizontalAlignment="Center" Width="644" Padding="0,0,0,0">
<StatusBar Margin="0,-5,554,0" Background="Transparent" BorderThickness="0,0,0,0" HorizontalAlignment="Center" Width="644" Padding="0,0,0,0" Height="32">
<StatusBarItem Margin="-24,-11,0,-11" Width="598">
<StackPanel Orientation="Horizontal" Width="514" Height="30" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0">
<StackPanel Orientation="Horizontal" Width="514" Height="30" HorizontalAlignment="Center" VerticalAlignment="Center">

<Image Source="/Resources/Icons/Main_UI/VTOL_multires.ico" Height="30" Width="33" Margin="-11,0,0,0" RenderOptions.BitmapScalingMode="HighQuality"
/>
<TextBlock x:Name="VERSION_TEXT" Text="VTOL - 0.0.0 |" FontWeight="Normal" FontFamily="Nacelle" TextDecorations="{x:Null}" FontStyle="Normal" Margin="10,0,0,0" VerticalAlignment="Center"/>
<ui:Button x:Name="NORTHSTAR_BUTTON" Width="176" Height="21" Content="Northstar Version 0.0.0" Padding="0,0.5,0,0" VerticalAlignment="Stretch" FontSize="12" BorderThickness="1,1,1,1" Margin="5,0,0,-1" VerticalContentAlignment="Center" BorderBrush="{x:Null}" Click="NORTHSTAR_BUTTON_Click" FontFamily="Nacelle">
<ui:Button x:Name="NORTHSTAR_BUTTON" Width="190" Height="21" Content="Northstar Version 0.0.0" Padding="0,0.5,0,0" VerticalAlignment="Stretch" FontSize="12" BorderThickness="1,1,1,1" Margin="5,0,0,-1" VerticalContentAlignment="Center" BorderBrush="{x:Null}" Click="NORTHSTAR_BUTTON_Click" FontFamily="Nacelle">
<ui:Button.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" MappingMode="RelativeToBoundingBox" SpreadMethod="Repeat">
<GradientStop Color="#D203606F" Offset="0.045"/>
Expand All @@ -391,7 +391,7 @@
</StackPanel>
</StatusBarItem>
</StatusBar>
<Border PreviewMouseLeftButtonDown="Grid_PreviewMouseLeftButtonDown" Margin="306,-7,0,0" Background="#00000000" />
<Border PreviewMouseLeftButtonDown="Grid_PreviewMouseLeftButtonDown" Margin="322,-7,0,0" Background="#00000000" />
<Grid x:Name="Progress_Header" Margin="700,2,219,0" Opacity="0" IsHitTestVisible="False">
<hc:Divider Margin="273,-2,-16,4" Orientation="Vertical" LineStrokeThickness="1.3"></hc:Divider>
<hc:ProgressButton x:Name="Action_Center_Progress" Width="244" ClickMode="Press" Padding="5,0,25,0" Margin="0,-4,-5,0" HorizontalContentAlignment="Left" MouseDown="Action_Center_Progress_MouseDown" Foreground="#FF969696" Checked="Action_Center_Progress_Checked" Unchecked="Action_Center_Progress_Unchecked" Background="#FF1C1C1C" VerticalAlignment="Top">
Expand Down
28 changes: 20 additions & 8 deletions VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3575,11 +3575,12 @@ public async Task Unpack_To_Location_Custom(string Target_Zip, string Destinatio
}
else
{

Console.WriteLine("Candidate Detected ------\n\n\n\n\n");

DispatchIfNecessary(async () =>
{
Update_ActionCard_Progress(Action_Card_, 20);
Update_ActionCard_Progress(Action_Card_, 5);
if (Progress_Bar != null)
Expand Down Expand Up @@ -3607,22 +3608,20 @@ public async Task Unpack_To_Location_Custom(string Target_Zip, string Destinatio
await TryCopyFile(User_Settings_Vars.NorthstarInstallLocation + @"ns_startup_args.txt", User_Settings_Vars.NorthstarInstallLocation + @"TempCopyFolder\ns_startup_args.txt", true);
}

Update_ActionCard_Progress(Action_Card_, 10);




if (File.Exists(User_Settings_Vars.NorthstarInstallLocation + User_Settings_Vars.Profile_Path + @"\packages\Northstar.CustomServers\mod\cfg\autoexec_ns_server.cfg"))
if (File.Exists(User_Settings_Vars.NorthstarInstallLocation + User_Settings_Vars.Profile_Path + @"\mods\Northstar.CustomServers\mod\cfg\autoexec_ns_server.cfg"))
{

await TryCopyFile(User_Settings_Vars.NorthstarInstallLocation + User_Settings_Vars.Profile_Path + @"\packages\Northstar.CustomServers\mod\cfg\autoexec_ns_server.cfg", User_Settings_Vars.NorthstarInstallLocation + @"TempCopyFolder\autoexec_ns_server.cfg", true);
await TryCopyFile(User_Settings_Vars.NorthstarInstallLocation + User_Settings_Vars.Profile_Path + @"\mods\Northstar.CustomServers\mod\cfg\autoexec_ns_server.cfg", User_Settings_Vars.NorthstarInstallLocation + @"TempCopyFolder\autoexec_ns_server.cfg", true);



}

await Task.Delay(200); ;
Update_ActionCard_Progress(Action_Card_, 10);
await Task.Delay(100) ;


if (File.Exists(User_Settings_Vars.NorthstarInstallLocation + @"ns_startup_args_dedi.txt"))
Expand All @@ -3636,7 +3635,21 @@ public async Task Unpack_To_Location_Custom(string Target_Zip, string Destinatio

}
Update_ActionCard_Progress(Action_Card_, 10);
string searchPattern = @"Northstar.*";
string baseFolderPath = Path.Combine(User_Settings_Vars.NorthstarInstallLocation, User_Settings_Vars.Profile_Path + @"\mods");

string[] matchingFolders = Directory.GetDirectories(baseFolderPath, searchPattern, SearchOption.AllDirectories);


foreach (string folderPath in matchingFolders)
{
if (Directory.Exists(folderPath))
{

TryDeleteDirectory(folderPath, true);

}
}
string searchQuery3 = "*" + "Northstar.dll" + "*";

var Destinfo = new DirectoryInfo(Destination);
Expand Down Expand Up @@ -3665,7 +3678,6 @@ public async Task Unpack_To_Location_Custom(string Target_Zip, string Destinatio

}

Update_ActionCard_Progress(Action_Card_, 5);



Expand All @@ -3685,7 +3697,7 @@ public async Task Unpack_To_Location_Custom(string Target_Zip, string Destinatio
if (File.Exists(User_Settings_Vars.NorthstarInstallLocation + @"TempCopyFolder\autoexec_ns_server.cfg"))
{

await TryCopyFile(User_Settings_Vars.NorthstarInstallLocation + @"TempCopyFolder\autoexec_ns_server.cfg", User_Settings_Vars.NorthstarInstallLocation + User_Settings_Vars.Profile_Path + @"\packages\Northstar.CustomServers\mod\cfg\autoexec_ns_server.cfg", true);
await TryCopyFile(User_Settings_Vars.NorthstarInstallLocation + @"TempCopyFolder\autoexec_ns_server.cfg", User_Settings_Vars.NorthstarInstallLocation + User_Settings_Vars.Profile_Path + @"\mods\Northstar.CustomServers\mod\cfg\autoexec_ns_server.cfg", true);



Expand Down

0 comments on commit b6c611f

Please sign in to comment.