-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisplayListChaosWindow.xaml
More file actions
67 lines (60 loc) · 4.02 KB
/
Copy pathDisplayListChaosWindow.xaml
File metadata and controls
67 lines (60 loc) · 4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<Window x:Class="Sm64DecompLevelViewer.DisplayListChaosWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Display List Chaos Manager" Height="420" Width="480"
Background="#121212" Foreground="#E0E0E0"
WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
<Window.Resources>
<SolidColorBrush x:Key="PanelBrush" Color="#1E1E1E"/>
<SolidColorBrush x:Key="BorderBrush" Color="#333333"/>
<SolidColorBrush x:Key="AccentBrush" Color="#007ACC"/>
<SolidColorBrush x:Key="AccentHoverBrush" Color="#1C97EA"/>
</Window.Resources>
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Header -->
<StackPanel Grid.Row="0" Margin="0,0,0,15">
<TextBlock Text="DISPLAY LIST CHAOS" FontSize="20" FontWeight="ExtraBold" Foreground="{StaticResource AccentBrush}" HorizontalAlignment="Center"/>
<TextBlock Text="Exclude parts of models and level geometry dynamically at runtime" FontSize="11" Foreground="#888888" HorizontalAlignment="Center" Margin="0,2,0,0"/>
</StackPanel>
<!-- Configuration Panel -->
<Border Grid.Row="1" Background="{StaticResource PanelBrush}" BorderBrush="{StaticResource BorderBrush}" BorderThickness="1" CornerRadius="8" Padding="15" Margin="0,0,0,15">
<StackPanel>
<!-- Slider -->
<DockPanel>
<TextBlock Text="Exclusion Level:" FontSize="13" FontWeight="Bold" Foreground="#FFFFFF"/>
<TextBlock x:Name="LevelValueText" Text="Level 0 (Disabled)" FontSize="13" FontWeight="Bold" Foreground="#4CAF50" DockPanel.Dock="Right"/>
</DockPanel>
<Slider x:Name="LevelSlider" Minimum="0" Maximum="9" Value="0" TickFrequency="1" IsSnapToTickEnabled="True" Margin="0,8,0,15" ValueChanged="LevelSlider_ValueChanged"/>
<!-- Description box -->
<Border Background="#151515" BorderBrush="#2A2A2A" BorderThickness="1" CornerRadius="4" Padding="10" MinHeight="65" Margin="0,0,0,15">
<TextBlock x:Name="DescriptionText" Text="Select a level to see the exclusion effects." Foreground="#CCCCCC" TextWrapping="Wrap" FontSize="12" FontStyle="Italic"/>
</Border>
<!-- Trigger Mode -->
<DockPanel Margin="0,0,0,10">
<TextBlock Text="Activation Trigger:" Foreground="#CCCCCC" VerticalAlignment="Center" Margin="0,0,10,0" Width="120"/>
<ComboBox x:Name="TriggerComboBox" SelectedIndex="0" Height="26" Background="#252526" Foreground="Black" BorderBrush="#3F3F46">
<ComboBoxItem Content="Always Active"/>
<ComboBoxItem Content="When Mario is Moving"/>
<ComboBoxItem Content="When Mario is Standing"/>
</ComboBox>
</DockPanel>
<!-- Skybox toggle -->
<CheckBox x:Name="ExcludeSkyboxCheck" Content="Exclude Skybox (Levels 8-9)" Foreground="#CCCCCC" Margin="130,5,0,0" IsChecked="False"/>
</StackPanel>
</Border>
<!-- Actions -->
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Content="Restore Original Files" Click="Restore_Click" Grid.Column="0" Height="30" Margin="0,0,5,0" Background="#3E3E42" Foreground="White" BorderThickness="0" Cursor="Hand" FontWeight="SemiBold"/>
<Button Content="Apply & Patch Decomp" Click="Apply_Click" Grid.Column="1" Height="30" Margin="5,0,0,0" Background="{StaticResource AccentBrush}" Foreground="White" BorderThickness="0" Cursor="Hand" FontWeight="SemiBold"/>
</Grid>
</Grid>
</Window>