mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-23 03:23:03 +00:00
???
This commit is contained in:
parent
966209e101
commit
9d4eea5583
7 changed files with 117 additions and 11 deletions
16
UWUVCI AIO WPF/UI/Frames/Teaser.xaml
Normal file
16
UWUVCI AIO WPF/UI/Frames/Teaser.xaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<Page x:Class="UWUVCI_AIO_WPF.UI.Frames.Teaser"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:UWUVCI_AIO_WPF.UI.Frames"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="480" d:DesignWidth="1130"
|
||||
Title="Teaser" >
|
||||
|
||||
<Grid>
|
||||
<TextBlock x:Name="tb" TextWrapping="Wrap" Text="Under Construction " FontSize="20" Height="29" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" Width="1110" />
|
||||
|
||||
|
||||
</Grid>
|
||||
</Page>
|
28
UWUVCI AIO WPF/UI/Frames/Teaser.xaml.cs
Normal file
28
UWUVCI AIO WPF/UI/Frames/Teaser.xaml.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace UWUVCI_AIO_WPF.UI.Frames
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaktionslogik für Teaser.xaml
|
||||
/// </summary>
|
||||
public partial class Teaser : Page
|
||||
{
|
||||
public Teaser()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
BIN
UWUVCI AIO WPF/UI/Images/setting.png
Normal file
BIN
UWUVCI AIO WPF/UI/Images/setting.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
UWUVCI AIO WPF/UI/Images/teaser.png
Normal file
BIN
UWUVCI AIO WPF/UI/Images/teaser.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
|
@ -62,7 +62,7 @@
|
|||
</LinearGradientBrush>
|
||||
</Grid.Background>
|
||||
<StackPanel>
|
||||
<Grid Height="70">
|
||||
<Grid Height="70">
|
||||
<Button x:Name="ButtonCloseMenu" Width="60" Height="60" Background="{x:Null}" BorderBrush="{x:Null}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,5,0,0" Visibility="Collapsed" Click="ButtonCloseMenu_Click">
|
||||
<materialDesign:PackIcon Foreground="White" Kind="ArrowLeft" Height="25" Width="25" />
|
||||
</Button>
|
||||
|
@ -71,7 +71,7 @@
|
|||
</Button>
|
||||
</Grid>
|
||||
<ListView Foreground="White" ScrollViewer.HorizontalScrollBarVisibility="Disabled" PreviewMouseLeftButtonUp="ListView_Click" x:Name="listCONS" MouseEnter="ButtonOpenMenu_Click" MouseLeave="ButtonCloseMenu_Click">
|
||||
|
||||
|
||||
<!--NDS-->
|
||||
<ListViewItem Height="60" x:Name="NDS" IsEnabled="{Binding PathsSet}" Cursor="Hand">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
|
@ -81,7 +81,7 @@
|
|||
</ListViewItem>
|
||||
<!--GBA-->
|
||||
<ListViewItem Height="60" x:Name="GBA" IsEnabled="{Binding PathsSet}" Cursor="Hand" ToolTip="Also supports GameBoy/GameBoy Color">
|
||||
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image Source="/UI/Images/gba64alt3.png"></Image>
|
||||
<TextBlock Text="GBA VC Inject" VerticalAlignment="Center" Margin="20 10"/>
|
||||
|
@ -108,7 +108,7 @@
|
|||
<TextBlock Text="NES VC Inject" VerticalAlignment="Center" Margin="20 10"/>
|
||||
</StackPanel>
|
||||
</ListViewItem>
|
||||
|
||||
|
||||
<!--TG16-->
|
||||
<ListViewItem Height="60" x:Name="TG16alt" IsEnabled="{Binding PathsSet}" Cursor="Hand" ToolTip="Also supports TurboGrafX-CD">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
|
@ -144,11 +144,12 @@
|
|||
<TextBlock Text="Retroarch VC Inject" VerticalAlignment="Center" Margin="20 10"/>
|
||||
</StackPanel>
|
||||
</ListViewItem>-->
|
||||
<!--Settings-->
|
||||
<ListViewItem Height="60" x:Name="Settings" Cursor="Hand">
|
||||
<!--RarchTeaser-->
|
||||
<ListViewItem Height="60" x:Name="Rarch" Cursor="Hand">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<materialDesign:PackIcon Foreground="White" Kind="SettingsApplications" Height="45" Width="45"/>
|
||||
<TextBlock Text="Settings" VerticalAlignment="Center" Margin="20 10"/>
|
||||
<!--<materialDesign:PackIcon Foreground="White" Kind="SettingsApplications" Height="45" Width="45"/>-->
|
||||
<Image Source="/UI/Images/teaser.png"></Image>
|
||||
<TextBlock Text="???" VerticalAlignment="Center" Margin="20 10"/>
|
||||
</StackPanel>
|
||||
</ListViewItem>
|
||||
</ListView>
|
||||
|
@ -159,7 +160,10 @@
|
|||
<TextBlock HorizontalAlignment="Left" Margin="1164,12,0,0" TextWrapping="Wrap" Text="X" VerticalAlignment="Top" Foreground="White" FontSize="16" IsHitTestVisible="False"/>
|
||||
<Button Content="Button" HorizontalAlignment="Left" Margin="1140,11,0,0" VerticalAlignment="Top" Width="18" Background="{x:Null}" BorderBrush="{x:Null}" Height="25" Click="Window_Minimize" MouseEnter="Button_MouseEnter" Name="min" MouseLeave="min_MouseLeave"/>
|
||||
<TextBlock HorizontalAlignment="Left" Margin="1141,10,0,0" TextWrapping="Wrap" Text="🗕" VerticalAlignment="Top" Foreground="White" FontSize="16" IsHitTestVisible="False"/>
|
||||
|
||||
|
||||
<Button HorizontalAlignment="Left" Margin="1093,39,0,0" VerticalAlignment="Top" Width="98" Background="{x:Null}" BorderBrush="{x:Null}" Height="23" Click="settings_Click" Name="settings" Content="Open Settings" FontSize="10"/>
|
||||
|
||||
|
||||
</Grid>
|
||||
|
||||
</Window>
|
||||
|
|
|
@ -394,8 +394,8 @@ namespace UWUVCI_AIO_WPF
|
|||
break;*/
|
||||
case 9:
|
||||
DestroyFrame();
|
||||
tbTitleBar.Text = "UWUVCI AIO - Settings";
|
||||
load_frame.Content = new SettingsFrame(this);
|
||||
tbTitleBar.Text = "UWUVCI AIO - ???";
|
||||
load_frame.Content = new Teaser();
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -453,6 +453,14 @@ namespace UWUVCI_AIO_WPF
|
|||
{
|
||||
min.Background = new SolidColorBrush(Color.FromArgb(0, 250, 250, 250));
|
||||
}
|
||||
private void sett_MouseEnter(object sender, MouseEventArgs e)
|
||||
{
|
||||
settings.Background = new SolidColorBrush(Color.FromArgb(100, 255, 255, 255));
|
||||
}
|
||||
private void sett_MouseLeave(object sender, MouseEventArgs e)
|
||||
{
|
||||
settings.Background = new SolidColorBrush(Color.FromArgb(0, 250, 250, 250));
|
||||
}
|
||||
public void setDebug(bool bypass)
|
||||
{
|
||||
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
||||
|
@ -494,5 +502,42 @@ namespace UWUVCI_AIO_WPF
|
|||
}).Start();
|
||||
|
||||
}
|
||||
|
||||
private void settings_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MainViewModel mvm = FindResource("mvm") as MainViewModel;
|
||||
mvm.GameConfiguration = new GameConfig();
|
||||
mvm.LGameBasesString.Clear();
|
||||
mvm.CanInject = false;
|
||||
mvm.BaseDownloaded = false;
|
||||
mvm.RomSet = false;
|
||||
mvm.RomPath = null;
|
||||
mvm.Injected = false;
|
||||
mvm.CBasePath = null;
|
||||
mvm.bcf = null;
|
||||
mvm.BootSound = null;
|
||||
mvm.setThing(null);
|
||||
mvm.gc2rom = null;
|
||||
mvm.Index = -1;
|
||||
mvm.donttrim = false;
|
||||
mvm.NKITFLAG = false;
|
||||
mvm.prodcode = "";
|
||||
mvm.foldername = "";
|
||||
mvm.jppatch = false;
|
||||
mvm.GC = false;
|
||||
mvm.test = GameConsoles.WII;
|
||||
mvm.regionfrii = false;
|
||||
mvm.cd = false;
|
||||
mvm.regionfriijp = false;
|
||||
mvm.regionfriius = false;
|
||||
mvm.pixelperfect = false;
|
||||
mvm.injected2 = false;
|
||||
|
||||
mvm.RemoveCreatedIMG();
|
||||
mvm.isDoneMW();
|
||||
DestroyFrame();
|
||||
tbTitleBar.Text = "UWUVCI AIO - Settings";
|
||||
load_frame.Content = new SettingsFrame(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,6 +143,9 @@
|
|||
<Compile Include="UI\Frames\Path\Paths.xaml.cs">
|
||||
<DependentUpon>Paths.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\Frames\Teaser.xaml.cs">
|
||||
<DependentUpon>Teaser.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\Windows\Custom Message - Kopieren.xaml.cs">
|
||||
<DependentUpon>Custom Message - Kopieren.xaml</DependentUpon>
|
||||
</Compile>
|
||||
|
@ -248,6 +251,10 @@
|
|||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="UI\Frames\Teaser.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="UI\Windows\Custom Message - Kopieren.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
|
@ -583,6 +590,12 @@
|
|||
<ItemGroup>
|
||||
<Resource Include="UI\Images\rarch.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\teaser.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="UI\Images\setting.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\packages\MaterialDesignThemes.3.0.1\build\MaterialDesignThemes.targets" Condition="Exists('..\packages\MaterialDesignThemes.3.0.1\build\MaterialDesignThemes.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
|
|
Loading…
Reference in a new issue