|
9 | 9 | mc:Ignorable="d" |
10 | 10 | d:DataContext="{d:DesignInstance local:MainWindow}" |
11 | 11 | WindowStartupLocation="CenterScreen" |
12 | | - ResizeMode="NoResize" |
| 12 | + ResizeMode="CanResize" |
13 | 13 | GlowBrush="{DynamicResource MahApps.Brushes.Accent}" |
14 | | - Title="D2R Skill Overlay" Height="450" Width="440"> |
| 14 | + Title="D2R Skill Overlay" Height="450" Width="450" MinWidth="450" MinHeight="400"> |
15 | 15 | <mah:MetroWindow.RightWindowCommands> |
16 | 16 | <mah:WindowCommands> |
17 | 17 | <Button Content="Get help" Click="SupportButton_OnClick"/> |
|
35 | 35 |
|
36 | 36 | <Grid> |
37 | 37 | <Grid.RowDefinitions> |
| 38 | + <RowDefinition Height="Auto"/> |
| 39 | + <RowDefinition Height="Auto"/> |
38 | 40 | <RowDefinition Height="Auto"/> |
39 | 41 | <RowDefinition Height="*"/> |
40 | 42 | <RowDefinition Height="Auto"/> |
|
50 | 52 |
|
51 | 53 |
|
52 | 54 | <StackPanel Orientation="Horizontal"> |
53 | | - <Button Margin="5" Height="35" Width="35" Background="{StaticResource MahApps.Brushes.Window.Background}" |
54 | | - Padding="3" Click="AddSkillButton_OnClick" IsEnabled="{Binding IsNotPlaying, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" |
55 | | - ToolTip="Add new skill"> |
| 55 | + <!--<Button Margin="5" Height="35" Width="35" Background="{StaticResource MahApps.Brushes.Window.Background}" |
| 56 | + Padding="3" IsEnabled="{Binding IsNotPlaying, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" |
| 57 | + ToolTip="Add new skill" Command="{Binding AddSkillCommand}"> |
56 | 58 | <Path Data="M19,6H22V8H19V11H17V8H14V6H17V3H19V6M17,17V14H19V19H3V6H11V8H5V17H17Z" Fill="{StaticResource MahApps.Brushes.IdealForeground}" |
57 | 59 | Stretch="Uniform"/> |
58 | | - </Button> |
| 60 | + </Button>--> |
59 | 61 | <Button Margin="5" Height="35" Width="35" Background="{StaticResource MahApps.Brushes.Window.Background}" |
60 | 62 | Padding="3" Click="EyeButton_OnClick" IsEnabled="{Binding IsNotPlaying, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" |
61 | 63 | ToolTip="Show/Hide overlay preview"> |
|
95 | 97 | </Path.Style> |
96 | 98 | </Path> |
97 | 99 | </Button> |
98 | | - <StackPanel Orientation="Vertical"> |
| 100 | + <!--<StackPanel Orientation="Vertical"> |
99 | 101 | <Label HorizontalAlignment="Center" Content="Tracker Size"/> |
100 | 102 | <Slider Minimum="5" Maximum="19" Value="10" Interval="1" Margin="3" ValueChanged="Scaler_OnValueChanged" Width="130" x:Name="TrackerSlider"/> |
101 | | - </StackPanel> |
| 103 | + </StackPanel>--> |
102 | 104 | </StackPanel> |
103 | 105 |
|
104 | 106 | <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> |
|
117 | 119 | </Button> |
118 | 120 | </StackPanel> |
119 | 121 |
|
120 | | - <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto"> |
121 | | - <ItemsControl Margin="5" ItemsSource="{Binding Source={x:Static local:App.Settings}, Path=SkillItems , UpdateSourceTrigger=PropertyChanged, Mode=TwoWay }" Background="Transparent" |
| 122 | + <DockPanel Grid.Row="1" IsEnabled="{Binding IsNotPlaying, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}"> |
| 123 | + <Label HorizontalAlignment="Center" Content="Profile" DockPanel.Dock="Left"/> |
| 124 | + <Button Margin="3" Height="25" Width="25" Background="{StaticResource MahApps.Brushes.Window.Background}" |
| 125 | + Padding="3" ToolTip="Remove profile" Command="{Binding RemoveProfileCommand}" DockPanel.Dock="Right"> |
| 126 | + <Path Data="M14.12,10.47L12,12.59L9.87,10.47L8.46,11.88L10.59,14L8.47,16.12L9.88,17.53L12,15.41L14.12,17.53L15.53,16.12L13.41,14L15.53,11.88L14.12,10.47M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9Z" Fill="{StaticResource MahApps.Brushes.IdealForeground}" |
| 127 | + Stretch="Uniform"/> |
| 128 | + </Button> |
| 129 | + |
| 130 | + <Button Margin="3" Height="25" Width="25" Background="{StaticResource MahApps.Brushes.Window.Background}" |
| 131 | + Padding="3" ToolTip="Add new profile" Command="{Binding AddProfileCommand}" DockPanel.Dock="Right"> |
| 132 | + <Path Data="M12 12H14V10H16V12H18V14H16V16H14V14H12V12M22 8V18C22 19.11 21.11 20 20 20H4C2.89 20 2 19.11 2 18V6C2 4.89 2.89 4 4 4H10L12 6H20C21.11 6 22 6.89 22 8M20 8H4V18H20V8Z" Fill="{StaticResource MahApps.Brushes.IdealForeground}" |
| 133 | + Stretch="Uniform"/> |
| 134 | + </Button> |
| 135 | + <ComboBox Margin="3" DisplayMemberPath="Name" SelectedValuePath="Id" IsEditable="False" |
| 136 | + SelectedItem="{Binding Profile, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" |
| 137 | + ItemsSource="{Binding Source={x:Static local:App.Settings}, Path=Profiles , UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"/> |
| 138 | + </DockPanel> |
| 139 | + |
| 140 | + <Button Content="Add new Skill" Grid.Row="2" Width="150" Height="25" |
| 141 | + Margin="3" Background="{StaticResource MahApps.Brushes.Window.Background}" |
| 142 | + Padding="3" IsEnabled="{Binding IsNotPlaying, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" |
| 143 | + ToolTip="Add new skill" Command="{Binding AddSkillCommand}"></Button> |
| 144 | + |
| 145 | + <ScrollViewer Grid.Row="3" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto"> |
| 146 | + <ItemsControl Margin="5" ItemsSource="{Binding SelectedSkillItems, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay }" Background="Transparent" |
122 | 147 | IsEnabled="{Binding IsNotPlaying, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}"> |
123 | 148 | <ItemsControl.ItemTemplate> |
124 | 149 | <DataTemplate> |
|
158 | 183 | <RowDefinition Height="Auto"/> |
159 | 184 | </Grid.RowDefinitions> |
160 | 185 | <Label Content="Select Key" Margin="5"/> |
161 | | - <ComboBox Grid.Row="1" SelectedItem="{Binding SelectKey, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" ItemsSource="{Binding Source={x:Static local:App.Data}, Path=AvailableKeys}" /> |
| 186 | + <ComboBox Grid.Row="1" SelectedItem="{Binding SelectKey, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" ItemsSource="{Binding Source={x:Static local:App.Data}, Path=AvailableKeys}" DisplayMemberPath="Name" SelectedValuePath="Code" /> |
162 | 187 | </Grid> |
163 | 188 | <Grid> |
164 | 189 | <Grid.RowDefinitions> |
|
194 | 219 | </ItemsControl> |
195 | 220 | </ScrollViewer> |
196 | 221 |
|
197 | | - <Border Grid.Row="2" BorderBrush="{StaticResource MahApps.Brushes.AccentBase}" BorderThickness="0,1,0,0"> |
| 222 | + <Border Grid.Row="4" BorderBrush="{StaticResource MahApps.Brushes.AccentBase}" BorderThickness="0,1,0,0"> |
198 | 223 | <StackPanel Orientation="Vertical"> |
199 | 224 | <TextBlock HorizontalAlignment="Center" Padding="0">Open-source project by <Hyperlink NavigateUri="https://github.com/panthernet" Click="Hyperlink_OnClick">panthernet software</Hyperlink></TextBlock> |
200 | 225 | <Label Padding="1,0,1,1" HorizontalAlignment="Center" Content="Diablo II: Resurrected is a registred trademark of © BLIZZARD ENTERTAINMENT, INC." FontSize="8"/> |
|
0 commit comments