Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed armor display. Started on experimental server support.
- Loading branch information
Showing
11 changed files
with
304 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Window x:Class="Terrafirma.ConnectToServer" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
Title="Connect To Server" Height="186" Width="300"> | ||
<Grid> | ||
<Label Content="Server IP" Height="28" HorizontalAlignment="Left" Margin="12,12,0,0" Name="label1" VerticalAlignment="Top" Width="76" /> | ||
<TextBox Height="23" HorizontalAlignment="Left" Margin="94,12,0,0" Name="serverip" VerticalAlignment="Top" Width="172" /> | ||
<Label Content="Server Port" Height="28" HorizontalAlignment="Left" Margin="12,46,0,0" Name="label2" VerticalAlignment="Top" Width="76" /> | ||
<TextBox Height="23" HorizontalAlignment="Left" Margin="94,46,0,0" Name="serverport" VerticalAlignment="Top" Width="69" Text="7777" /> | ||
<Button Content="Connect" Height="23" HorizontalAlignment="Right" Margin="0,112,12,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" /> | ||
<Button Content="Cancel" Height="23" HorizontalAlignment="Left" Margin="110,112,0,0" Name="button2" VerticalAlignment="Top" Width="75" Click="button2_Click" /> | ||
</Grid> | ||
</Window> |
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,46 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
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.Shapes; | ||
|
||
namespace Terrafirma | ||
{ | ||
/// <summary> | ||
/// Interaction logic for ConnectToServer.xaml | ||
/// </summary> | ||
public partial class ConnectToServer : Window | ||
{ | ||
public ConnectToServer() | ||
{ | ||
InitializeComponent(); | ||
} | ||
public string ServerIP | ||
{ | ||
get { return serverip.Text; } | ||
} | ||
public int ServerPort | ||
{ | ||
get { return Convert.ToInt16(serverport.Text); } | ||
} | ||
|
||
private void button1_Click(object sender, RoutedEventArgs e) //connect | ||
{ | ||
DialogResult = true; | ||
this.Close(); | ||
} | ||
|
||
private void button2_Click(object sender, RoutedEventArgs e) //cancel | ||
{ | ||
DialogResult = false; | ||
this.Close(); | ||
} | ||
} | ||
} |
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
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,10 @@ | ||
<Window x:Class="Terrafirma.ServerPassword" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
Title="This server requires a password" Height="140" Width="300"> | ||
<Grid> | ||
<Label Content="Password:" Height="28" HorizontalAlignment="Left" Margin="12,12,0,0" Name="label1" VerticalAlignment="Top" Width="68" /> | ||
<PasswordBox Height="23" HorizontalAlignment="Left" Margin="86,17,0,0" Name="password" VerticalAlignment="Top" Width="180" /> | ||
<Button Content="Login" Height="23" HorizontalAlignment="Left" Margin="191,66,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" /> | ||
</Grid> | ||
</Window> |
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,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
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.Shapes; | ||
|
||
namespace Terrafirma | ||
{ | ||
/// <summary> | ||
/// Interaction logic for ServerPassword.xaml | ||
/// </summary> | ||
public partial class ServerPassword : Window | ||
{ | ||
public ServerPassword() | ||
{ | ||
InitializeComponent(); | ||
} | ||
public string Password | ||
{ | ||
get { return password.Password; } | ||
} | ||
|
||
private void button1_Click(object sender, RoutedEventArgs e) | ||
{ | ||
DialogResult = true; | ||
} | ||
} | ||
} |
Oops, something went wrong.