Skip to content

Commit

Permalink
wow
Browse files Browse the repository at this point in the history
  • Loading branch information
BigSpice committed Oct 21, 2023
1 parent 93bdb47 commit 2fe3100
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 4 deletions.
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.
2 changes: 1 addition & 1 deletion VTOL_2.0.0/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
</StatusBarItem>
</StatusBar>
<Border PreviewMouseLeftButtonDown="Grid_PreviewMouseLeftButtonDown" Margin="306,-7,0,0" Background="#00000000" />
<Grid Margin="700,2,219,0">
<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">
<TextBlock x:Name="Action_Center_Progress_Text" TextWrapping="WrapWithOverflow" Background="{x:Null}" ClipToBounds="True" IsHitTestVisible="False" TextTrimming="CharacterEllipsis" Foreground="#FFC5C5C5" >
Expand Down
1 change: 0 additions & 1 deletion VTOL_2.0.0/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,6 @@ private void Action_Center_Progress_Unchecked(object sender, RoutedEventArgs e)

}
Action_Center_Panel.IsHitTestVisible = false;

}

private void Cancel_Button_Click(object sender, RoutedEventArgs e)
Expand Down
15 changes: 14 additions & 1 deletion VTOL_2.0.0/Pages/Page_Mods.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ public class NORTHSTARCOMPATIBLE_MOD
public bool Value { get; set; }
public DirectoryInfo DIRECTORY_INFO { get; set; }
public bool IsValidandinstalled { get; set; }
public bool Has_Valid_Mod { get; set; }

public bool Namespace { get; set; }

Expand Down Expand Up @@ -351,8 +352,13 @@ public List<NORTHSTARCOMPATIBLE_MOD> READ_UPDATE_MOD_LIST(DirectoryInfo[] modsTo
Mod.DIRECTORY_INFO = dirInfo; // or some other appropriate value

}
Mod.Has_Valid_Mod = false;


if (Directory.Exists(Mod.DIRECTORY_INFO.FullName + @"\mods"))
{
Mod.Has_Valid_Mod = true;
}


if (jsonObject.TryGetValue(Mod.Name.Trim(), out JToken value))
{
Expand Down Expand Up @@ -514,6 +520,13 @@ public async Task Call_Mods_From_Folder()
ToolTip_Dynamic = "The Mod Is not Registered Properly in the Backend List, Please Fix the Mod formatting or update your TF2 Mod List by Launching the Game";
Flag_mod = 100;
}
else if(Verified_Installed_Mod.Has_Valid_Mod == false)
{
IS_CORE_MOD_temp = "#c80815";

ToolTip_Dynamic = "The Mod Is Not Formatted Properly. Please Fix the Mod formatting";
Flag_mod = 100;
}

Final_List.Add(new Card_ { Mod_Name_ = Verified_Installed_Mod.Name.Trim(), Mod_Date_ = Verified_Installed_Mod.DIRECTORY_INFO.CreationTime.ToString(), Is_Active_Color = "#B29A0404", Size__ = Verified_Installed_Mod.DIRECTORY_INFO.LastAccessTime.ToString(), En_Di = "Enable", Is_Active_ = true, Mod_Path_ = Verified_Installed_Mod.DIRECTORY_INFO.FullName, Flag = Flag_mod, Error_Tooltip = ToolTip_Dynamic, Label = VTOL.Resources.Languages.Language.Page_Mods_Call_Mods_From_Folder_Enable, IS_CORE_MOD = IS_CORE_MOD_temp });
}
Expand Down
47 changes: 46 additions & 1 deletion VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ public Page_Thunderstore()
CookFaveMods();
Call_Mods_From_Folder_Lite();
Call_Ts_Mods();
};
worker.RunWorkerCompleted += (sender, eventArgs) =>
Expand Down Expand Up @@ -4534,7 +4534,22 @@ private void Grid_Loaded(object sender, RoutedEventArgs e)

private void Page_Loaded_1(object sender, RoutedEventArgs e)
{
DispatchIfNecessary(async () =>
{
if (Main.Progress_Header.Opacity < 1)
{
DoubleAnimation da = new DoubleAnimation
{
From = Main.Progress_Header.Opacity,
To = 1,
Duration = new Duration(TimeSpan.FromSeconds(0.2)),
AutoReverse = false
};
Main.Progress_Header.BeginAnimation(OpacityProperty, da);
Main.Progress_Header.IsHitTestVisible = true;
}
});

}

Expand Down Expand Up @@ -4750,6 +4765,36 @@ private void Page_Unloaded(object sender, RoutedEventArgs e)
{
DispatchIfNecessary(async () =>
{
if (Action_Center.Count <= 0)
{
if (Main.Progress_Header.Opacity > 0.2)
{
DoubleAnimation da = new DoubleAnimation
{
From = Main.Progress_Header.Opacity,
To = 0,
Duration = new Duration(TimeSpan.FromSeconds(0.2)),
AutoReverse = false
};
Main.Progress_Header.BeginAnimation(OpacityProperty, da);
}
if (Main.Action_Center_Panel.Opacity > 0.2)
{
DoubleAnimation da = new DoubleAnimation
{
From = Main.Action_Center_Panel.Opacity,
To = 0,
Duration = new Duration(TimeSpan.FromSeconds(0.2)),
AutoReverse = false
};
Main.Action_Center_Panel.BeginAnimation(OpacityProperty, da);
}
Main.Progress_Header.IsHitTestVisible = false;
}
await SaveHSetAsync();
});
}
Expand Down

0 comments on commit 2fe3100

Please sign in to comment.