-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added animation for placing a firewall or boost card.
- Loading branch information
Showing
8 changed files
with
247 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<UserControl x:Class="AccessBattle.Wpf.View.BoostField" | ||
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:AccessBattle.Wpf.View" | ||
Width="48" Height="48" FontFamily="../ExternalResources/#Silkscreen"> | ||
<Border CornerRadius="2" BorderBrush="Yellow" BorderThickness="2" Background="White"> | ||
<Grid Margin="1"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height=".8*"/> | ||
<RowDefinition Height=".1*"/> | ||
<RowDefinition Height=".3*"/> | ||
</Grid.RowDefinitions> | ||
<Viewbox Margin="2" Grid.Row="0" Grid.RowSpan="2" > | ||
<Path | ||
Margin="1" | ||
Fill="Black" | ||
Stroke="Black" StrokeThickness="1" | ||
Data="{StaticResource LineBoostPath}"/> | ||
</Viewbox> | ||
<Viewbox Grid.Row="1" Grid.RowSpan="2" VerticalAlignment="Top"> | ||
<TextBlock Margin="0" | ||
FontSize="10" Foreground="Black" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center" | ||
Text=" Line " TextAlignment="Center" /> | ||
</Viewbox> | ||
<Viewbox Grid.Row="2" VerticalAlignment="Bottom"> | ||
<TextBlock Margin="0" | ||
FontSize="10" Foreground="Black" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center" | ||
Text=" Boost " TextAlignment="Center" /> | ||
</Viewbox> | ||
</Grid> | ||
</Border> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 AccessBattle.Wpf.View | ||
{ | ||
/// <summary> | ||
/// Interaction logic for LinkField.xaml | ||
/// </summary> | ||
public partial class BoostField : UserControl | ||
{ | ||
public BoostField() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<UserControl x:Class="AccessBattle.Wpf.View.FirewallField" | ||
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:AccessBattle.Wpf.View" | ||
Width="48" Height="48" FontFamily="../ExternalResources/#Silkscreen"> | ||
<Border CornerRadius="2" BorderBrush="Yellow" BorderThickness="2" Background="White"> | ||
<Grid Margin="1"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height=".8*"/> | ||
<RowDefinition Height=".3*"/> | ||
</Grid.RowDefinitions> | ||
<Viewbox Margin="2" Grid.Row="0"> | ||
<Path | ||
Margin="1" | ||
Fill="Black" | ||
Stroke="Black" StrokeThickness="1" | ||
Data="{StaticResource FirewallPath}"/> | ||
</Viewbox> | ||
<Viewbox Grid.Row="1"> | ||
<TextBlock Margin="2,0,2,0" | ||
FontSize="10" Foreground="Black" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center" | ||
Text="Firewall" /> | ||
</Viewbox> | ||
</Grid> | ||
|
||
</Border> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 AccessBattle.Wpf.View | ||
{ | ||
/// <summary> | ||
/// Interaction logic for FirewallField.xaml | ||
/// </summary> | ||
public partial class FirewallField : UserControl | ||
{ | ||
public FirewallField() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters