|
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | xmlns:gif="http://wpfanimatedgif.codeplex.com" |
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Side_scrolling_Tower_Defense" mc:Ignorable="d" x:Class="Side_scrolling_Tower_Defense.MainWindow" |
6 | | - Title="橫向超經典守塔防禦遊戲" Height="452.799" Width="1000" ResizeMode="CanMinimize" Closing="Window_Closing" KeyDown="Window_KeyDown"> |
| 6 | + Title="橫向超經典守塔防禦遊戲" Height="500" Width="1100" ResizeMode="CanMinimize" Closing="Window_Closing" KeyDown="Window_KeyDown"> |
7 | 7 | <Grid> |
8 | 8 | <Grid.Background> |
9 | 9 | <ImageBrush/> |
|
13 | 13 | <RowDefinition/> |
14 | 14 | <RowDefinition Height="108"/> |
15 | 15 | </Grid.RowDefinitions> |
16 | | - <Grid x:Name="grid1" AllowDrop="True" VerticalAlignment="Bottom" Height="268" Grid.RowSpan="2" HorizontalAlignment="Left" Width="994" Margin="0,0,0,107" Grid.Row="1"> |
| 16 | + <Grid x:Name="grid1" AllowDrop="True" VerticalAlignment="Bottom" Height="315" Grid.RowSpan="2" HorizontalAlignment="Left" Width="1094" Margin="0,0,0,107" Grid.Row="1"> |
17 | 17 | <Grid.Background> |
18 | 18 | <ImageBrush ImageSource="pack://siteoforigin:,,,/Images/bg_inGame.jpg"/> |
19 | 19 | </Grid.Background> |
|
24 | 24 | <DockPanel Height="35" LastChildFill="False" Margin="717,10,0,0" Background="#FFE2DBDB" HorizontalAlignment="Left" VerticalAlignment="Top" Width="105"/> |
25 | 25 |
|
26 | 26 | </Grid> |
27 | | - <Grid x:Name="gridControlBar" Background="#FF2C2206" Margin="0,1,0,0" Grid.Row="2" d:IsLocked="True"> |
28 | | - <Button x:Name="btnSpeedUp" Content=">" HorizontalAlignment="Left" Margin="19,48,0,0" VerticalAlignment="Top" Width="38" FontWeight="Bold" FontSize="16" Click="btnSpeedUp_Click" Height="27" Focusable="False" ToolTip="調整遊戲進行速度" Background="#FFB09F9F"/> |
29 | | - <Button x:Name="btnReturnToMenu" Content="Menu" HorizontalAlignment="Left" Margin="19,15,0,0" VerticalAlignment="Top" Width="38" Height="27" Click="btnReturnToMenu_Click" Focusable="False" ToolTip="回主選單" Foreground="Black" Background="#FFB09F9F"/> |
30 | | - <Button x:Name="skill1" HorizontalAlignment="Left" Margin="93,8,0,0" VerticalAlignment="Top" Width="43" Height="39" Focusable="False" ToolTip="時間凍結
CD: 40s
停止敵方全體10秒" Click="skill1_Click" BorderThickness="1" Background="{x:Null}" BorderBrush="{x:Null}"> |
| 27 | + <Grid x:Name="gridControlBar" Background="#FF2C2206" Margin="0,1,0,0" Grid.Row="2"> |
| 28 | + <Button x:Name="btnSpeedUp" Content=">" HorizontalAlignment="Left" Margin="24,58,0,0" VerticalAlignment="Top" Width="48" FontWeight="Bold" FontSize="16" Click="btnSpeedUp_Click" Height="35" Focusable="False" ToolTip="調整遊戲進行速度" Background="#FFB09F9F"/> |
| 29 | + <Button x:Name="btnReturnToMenu" Content="Menu" HorizontalAlignment="Left" Margin="24,10,0,0" VerticalAlignment="Top" Width="48" Height="35" Click="btnReturnToMenu_Click" Focusable="False" ToolTip="回主選單" Foreground="Black" Background="#FFB09F9F" FontWeight="Bold"/> |
| 30 | + <Button x:Name="skill1" HorizontalAlignment="Left" Margin="127,10,0,0" VerticalAlignment="Top" Width="43" Height="39" Focusable="False" ToolTip="時間凍結
CD: 40s
停止敵方全體10秒" Click="skill1_Click" BorderThickness="1" Background="{x:Null}" BorderBrush="{x:Null}"> |
31 | 31 | <Image Source="Images/skill1.PNG" Stretch="Fill"/> |
32 | 32 | </Button> |
33 | | - <Button x:Name="skill2" HorizontalAlignment="Left" Margin="142,8,0,0" VerticalAlignment="Top" Width="43" Height="39" Focusable="False" ToolTip="精準射擊
CD: 30s
我方塔10秒內距離無限" Click="skill2_Click" BorderThickness="1" Background="{x:Null}" BorderBrush="{x:Null}"> |
| 33 | + <Button x:Name="skill2" HorizontalAlignment="Left" Margin="176,10,0,0" VerticalAlignment="Top" Width="43" Height="39" Focusable="False" ToolTip="精準射擊
CD: 30s
我方塔10秒內距離無限" Click="skill2_Click" BorderThickness="1" Background="{x:Null}" BorderBrush="{x:Null}"> |
34 | 34 | <Image Source="Images/skill2.PNG" Stretch="Fill"/> |
35 | 35 | </Button> |
36 | | - <Button x:Name="skill3" HorizontalAlignment="Left" Margin="93,52,0,0" VerticalAlignment="Top" Width="43" Height="39" Focusable="False" ToolTip="狂戰士
CD: 70s
我方士兵10秒內攻擊力、血量、速度提升兩倍" Click="skill3_Click" BorderThickness="1" Background="{x:Null}" BorderBrush="{x:Null}"> |
| 36 | + <Button x:Name="skill3" HorizontalAlignment="Left" Margin="127,54,0,0" VerticalAlignment="Top" Width="43" Height="39" Focusable="False" ToolTip="狂戰士
CD: 70s
我方士兵10秒內攻擊力、血量、速度提升兩倍" Click="skill3_Click" BorderThickness="1" Background="{x:Null}" BorderBrush="{x:Null}"> |
37 | 37 | <Image Source="Images/skill3.PNG" Stretch="Fill"/> |
38 | 38 | </Button> |
39 | | - <Button x:Name="skill4" HorizontalAlignment="Left" Margin="142,52,0,0" VerticalAlignment="Top" Width="43" Height="39" Click="skill4_Click" Focusable="False" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="1" ToolTip="雷射砲
CD: 60s
發射擁有極高攻擊力的雷射砲"> |
| 39 | + <Button x:Name="skill4" HorizontalAlignment="Left" Margin="176,54,0,0" VerticalAlignment="Top" Width="43" Height="39" Click="skill4_Click" Focusable="False" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="1" ToolTip="雷射砲
CD: 60s
發射擁有極高攻擊力的雷射砲"> |
40 | 40 | <Image Source="Images/skill4.PNG" Stretch="Fill"/> |
41 | 41 | </Button> |
42 | | - <Button x:Name="btnSoldier1" Height="70" Margin="237,10,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="81" Click="btnSoldier1_Click" Focusable="False" ToolTip="娜美 $ 100
血 量: 150
攻擊力: 25
速 度: 4" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
| 42 | + <Button x:Name="btnSoldier1" Height="70" Margin="310,15,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="81" Click="btnSoldier1_Click" Focusable="False" ToolTip="娜美 $ 100
血 量: 150
攻擊力: 25
速 度: 4" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
43 | 43 | <Image Source="pack://siteoforigin:,,,/Images/s3.JPG" Stretch="Fill"/> |
44 | 44 | </Button> |
45 | | - <Button x:Name="btnSoldier2" Height="70" Margin="323,10,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="81" Click="btnSoldier2_Click" Focusable="False" ToolTip="佛朗基 $ 150
血 量: 250
攻擊力: 30
速 度: 3" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
| 45 | + <Button x:Name="btnSoldier2" Height="70" Margin="396,15,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="81" Click="btnSoldier2_Click" Focusable="False" ToolTip="佛朗基 $ 150
血 量: 250
攻擊力: 30
速 度: 3" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
46 | 46 | <Image Source="pack://siteoforigin:,,,/Images/s6.JPG" Stretch="Fill"/> |
47 | 47 | </Button> |
48 | | - <Button x:Name="btnSoldier3" Height="70" Margin="407,10,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="81" Click="btnSoldier3_Click" Focusable="False" ToolTip="索隆 $ 200
血 量: 300
攻擊力: 30
速 度: 5" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
| 48 | + <Button x:Name="btnSoldier3" Height="70" Margin="480,15,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="81" Click="btnSoldier3_Click" Focusable="False" ToolTip="索隆 $ 200
血 量: 300
攻擊力: 30
速 度: 5" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
49 | 49 | <Image Source="pack://siteoforigin:,,,/Images/s2.JPG" Stretch="Fill"/> |
50 | 50 | </Button> |
51 | | - <Button x:Name="btnSoldier4" Height="70" Margin="492,10,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="82" Click="btnSoldier4_Click" Focusable="False" ToolTip="魯夫 $ 300
血 量: 350
攻擊力: 25
速 度: 7" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
| 51 | + <Button x:Name="btnSoldier4" Height="70" Margin="565,15,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="82" Click="btnSoldier4_Click" Focusable="False" ToolTip="魯夫 $ 300
血 量: 350
攻擊力: 25
速 度: 7" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
52 | 52 | <Image Source="pack://siteoforigin:,,,/Images/s1.JPG" Stretch="Fill"/> |
53 | 53 | </Button> |
54 | | - <Button x:Name="btnSoldier5" Height="70" Margin="577,10,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="81" Click="btnSoldier5_Click" Focusable="False" ToolTip="香吉士 $ 400
血 量: 400
攻擊力: 50
速 度: 6" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
| 54 | + <Button x:Name="btnSoldier5" Height="70" Margin="650,15,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="81" Click="btnSoldier5_Click" Focusable="False" ToolTip="香吉士 $ 400
血 量: 400
攻擊力: 50
速 度: 6" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
55 | 55 | <Image Source="pack://siteoforigin:,,,/Images/s4.JPG" Stretch="Fill"/> |
56 | 56 | </Button> |
57 | | - <Button x:Name="btnSoldier6" Height="70" Margin="661,10,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="81" Click="btnSoldier6_Click" Focusable="False" ToolTip="艾斯 $ 500
血 量: 500
攻擊力: 40
速 度: 5" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
| 57 | + <Button x:Name="btnSoldier6" Height="70" Margin="734,15,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="81" Click="btnSoldier6_Click" Focusable="False" ToolTip="艾斯 $ 500
血 量: 500
攻擊力: 40
速 度: 5" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
58 | 58 | <Image Source="pack://siteoforigin:,,,/Images/s7.JPG" Stretch="Fill"/> |
59 | 59 | </Button> |
60 | | - <Button x:Name="btnSoldier7" Height="70" Margin="745,10,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="81" Click="btnSoldier7_Click" Focusable="False" ToolTip="羅賓 $ 600
血 量: 1500
攻擊力: 10
速 度: 1" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
| 60 | + <Button x:Name="btnSoldier7" Height="70" Margin="818,15,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="81" Click="btnSoldier7_Click" Focusable="False" ToolTip="羅賓 $ 600
血 量: 1500
攻擊力: 10
速 度: 1" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF020202" OpacityMask="#FF020202"> |
61 | 61 | <Image Source="pack://siteoforigin:,,,/Images/s5.JPG" Stretch="Fill"/> |
62 | 62 | </Button> |
63 | | - <Button x:Name="btnUnlock1" Content="$" HorizontalAlignment="Left" Height="26" Margin="323,41,0,0" VerticalAlignment="Top" Width="81" Click="btnUnlock1_Click" Focusable="False" Background="#FFB09F9F"/> |
64 | | - <Button x:Name="btnUnlock2" Content="$" HorizontalAlignment="Left" Margin="407,41,0,0" Width="81" Click="btnUnlock2_Click" Focusable="False" Height="26" VerticalAlignment="Top" Background="#FFB09F9F"/> |
65 | | - <Button x:Name="btnUnlock3" Content="$" HorizontalAlignment="Left" Height="26" Margin="492,41,0,0" VerticalAlignment="Top" Width="82" Click="btnUnlock3_Click" Focusable="False" Background="#FFB09F9F"/> |
66 | | - <Button x:Name="btnUnlock4" Content="$" HorizontalAlignment="Left" Height="26" Margin="576,41,0,0" VerticalAlignment="Top" Width="82" Click="btnUnlock4_Click" Focusable="False" Background="#FFB09F9F"/> |
67 | | - <Button x:Name="btnUnlock5" Content="$" HorizontalAlignment="Left" Height="26" Margin="660,41,0,0" VerticalAlignment="Top" Width="82" Click="btnUnlock5_Click" Focusable="False" Background="#FFB09F9F"/> |
68 | | - <Button x:Name="btnUnlock6" Content="$" HorizontalAlignment="Left" Height="26" Margin="744,41,0,0" VerticalAlignment="Top" Width="82" Click="btnUnlock6_Click" Focusable="False" Background="#FFB09F9F"/> |
69 | | - <Button x:Name="btnUpgradeTower" Content="升級塔" HorizontalAlignment="Left" Height="54" Margin="879,21,0,0" VerticalAlignment="Top" Width="79" Click="btnUpgradeTower_Click" Focusable="False" Background="#FFB09F9F" BorderThickness="0"/> |
| 63 | + <Button x:Name="btnUnlock1" Content="$" HorizontalAlignment="Left" Height="26" Margin="396,46,0,0" VerticalAlignment="Top" Width="81" Click="btnUnlock1_Click" Focusable="False" Background="#FFB09F9F"/> |
| 64 | + <Button x:Name="btnUnlock2" Content="$" HorizontalAlignment="Left" Margin="480,46,0,0" Width="81" Click="btnUnlock2_Click" Focusable="False" Height="26" VerticalAlignment="Top" Background="#FFB09F9F"/> |
| 65 | + <Button x:Name="btnUnlock3" Content="$" HorizontalAlignment="Left" Height="26" Margin="565,46,0,0" VerticalAlignment="Top" Width="82" Click="btnUnlock3_Click" Focusable="False" Background="#FFB09F9F"/> |
| 66 | + <Button x:Name="btnUnlock4" Content="$" HorizontalAlignment="Left" Height="26" Margin="649,46,0,0" VerticalAlignment="Top" Width="82" Click="btnUnlock4_Click" Focusable="False" Background="#FFB09F9F"/> |
| 67 | + <Button x:Name="btnUnlock5" Content="$" HorizontalAlignment="Left" Height="26" Margin="733,46,0,0" VerticalAlignment="Top" Width="82" Click="btnUnlock5_Click" Focusable="False" Background="#FFB09F9F"/> |
| 68 | + <Button x:Name="btnUnlock6" Content="$" HorizontalAlignment="Left" Height="26" Margin="817,46,0,0" VerticalAlignment="Top" Width="82" Click="btnUnlock6_Click" Focusable="False" Background="#FFB09F9F"/> |
| 69 | + <Button x:Name="btnUpgradeTower" Content="升級塔" HorizontalAlignment="Left" Height="70" Margin="981,15,0,0" VerticalAlignment="Top" Width="79" Click="btnUpgradeTower_Click" Focusable="False" Background="#FFB09F9F" BorderThickness="0"/> |
70 | 70 | </Grid> |
71 | | - <Grid x:Name="gridTopBar" Background="#FFC5BCBC" d:IsLocked="True"> |
| 71 | + <Grid x:Name="gridTopBar" Background="#FFC5BCBC"> |
72 | 72 | <Label Content="HP/maxHP" Margin="757,0,0,10" Height="25" HorizontalContentAlignment="Right" BorderBrush="#FF0F0909" BorderThickness="1" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="200" Background="#FFFB0505" /> |
73 | 73 | <Label Content="HP/maxHP" Margin="35,0,0,10" Height="25" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="200" Background="#FFF70F0F" /> |
74 | 74 | <Label Content="難度" HorizontalAlignment="Left" Margin="456,16,0,0" VerticalAlignment="Top" Width="107"/> |
|
0 commit comments