Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:noesis="clr-namespace:NoesisGUIExtensions" x:Class="UserControls.GameLobby" UseLayoutRounding="True" d:DesignHeight="600" d:DesignWidth="800">
- <Grid>
- <Grid.Background>
- <ImageBrush ImageSource="../HUD/Resources/hudbg.png" />
- </Grid.Background>
- <Grid Margin="25">
- <Grid.RowDefinitions>
- <RowDefinition Height="44*" />
- <RowDefinition Height="372*" />
- <RowDefinition Height="200*" />
- <RowDefinition Height="31*" />
- <RowDefinition Height="28*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="211*" />
- <ColumnDefinition Width="431*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="1" Grid.RowSpan="2" Background="#B2000000">
- <StackPanel>
- <Expander VerticalAlignment="Top" Header="Blue Team" Foreground="#FFFBFBFB" IsExpanded="True">
- <ItemsControl x:Name="BlueTeam" Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Margin="0,0,0,1">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Border Height="25" Margin="1">
- <Border.Background>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
- <LinearGradientBrush.RelativeTransform>
- <TransformGroup>
- <RotateTransform Angle="-90" CenterY="0.5" CenterX="0.5" />
- <TranslateTransform />
- </TransformGroup>
- </LinearGradientBrush.RelativeTransform>
- <GradientStop Color="#7F1059B2" Offset="0" />
- <GradientStop Offset="1" />
- </LinearGradientBrush>
- </Border.Background>
- <Grid>
- <TextBlock VerticalAlignment="Center" Text="{Binding Name}" TextAlignment="Left" Padding="20,0,0,0" Foreground="#fff" TextWrapping="Wrap" />
- </Grid>
- </Border>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- </ItemsControl>
- </Expander>
- <Expander VerticalAlignment="Top" Header="Gold Team" Foreground="#FFFBFBFB" IsExpanded="True">
- <ItemsControl x:Name="GoldTeam" Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Margin="0,0,0,1">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Border Height="25" Margin="1">
- <Border.Background>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
- <LinearGradientBrush.RelativeTransform>
- <TransformGroup>
- <RotateTransform Angle="-90" CenterY="0.5" CenterX="0.5" />
- <TranslateTransform />
- </TransformGroup>
- </LinearGradientBrush.RelativeTransform>
- <GradientStop Color="#7FFBAE09" Offset="0" />
- <GradientStop Offset="1" />
- </LinearGradientBrush>
- </Border.Background>
- <Grid>
- <TextBlock VerticalAlignment="Center" Text="{Binding Name}" TextAlignment="Left" Padding="20,0,0,0" Foreground="#fff" TextWrapping="Wrap" />
- </Grid>
- </Border>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- </ItemsControl>
- </Expander>
- <ItemsControl x:Name="UserList" Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Margin="0,0,0,1">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Border Height="25" Margin="1">
- <Grid>
- <TextBlock VerticalAlignment="Center" Text="{Binding Name}" TextAlignment="Left" Padding="10,0,0,0" Foreground="#fff" TextWrapping="Wrap" />
- </Grid>
- </Border>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- </ItemsControl>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="0" Grid.Column="0">
- <TextBlock TextAlignment="Center" FontSize="18" Foreground="#fff" Text="Player List" VerticalAlignment="Center"></TextBlock>
- </Grid>
- <Grid Grid.Row="2" Grid.RowSpan="2" Grid.Column="1" Background="#B2000000" Margin="5,5,5,0" Grid.ColumnSpan="2">
- <ScrollViewer x:Name="ScrollChat">
- <ItemsControl x:Name="ChatBox" Grid.Column="0" Background="#B2000000" Margin="5">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <TextBlock HorizontalAlignment="Left" Text="{Binding Message}" Foreground="{Binding Color}" TextWrapping="Wrap" />
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- </ItemsControl>
- </ScrollViewer>
- </Grid>
- <TextBox x:Name="txtChat" Margin="4,4,4,0" Grid.Row="4" Grid.Column="1" Background="#B2000000" Foreground="#fff" BorderThickness="0" Grid.ColumnSpan="2"></TextBox>
- <Grid Margin="5,0,0,0" Grid.Row="1" Grid.Column="1" Background="#B2000000" Grid.ColumnSpan="2">
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="1">
- <Grid.Background>
- <ImageBrush ImageSource="/HUDz;component/testing.png" />
- </Grid.Background>
- </Grid>
- </Grid>
- <Border x:Name="btnJoinBlue" Background="#7F1059B2" Grid.Row="3" BorderBrush="#FF0F6ECD" BorderThickness="1" Margin="2">
- <TextBlock Foreground="#fff" TextAlignment="Center" Text="Blue Team" VerticalAlignment="Center" />
- </Border>
- <Border x:Name="btnJoinGold" Background="#7FFBAE09" Grid.Row="4" BorderBrush="#FFBF991D" BorderThickness="1" Margin="2">
- <TextBlock Foreground="#fff" TextAlignment="Center" Text="Gold Team Team" VerticalAlignment="Center" />
- </Border>
- <Border CornerRadius="5" Padding="5" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,5,0,5" Background="#7F62CF07">
- <CheckBox x:Name="cbReadyUp" Foreground="#FFFFFEFE" Content="Ready Up"></CheckBox>
- </Border>
- <Border Background="#7F0D0D0E" CornerRadius="5" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Width="200" Margin="0,0,0,0" MinHeight="30" VerticalAlignment="Top" BorderThickness="1">
- <Expander x:Name="expServer" Margin="3" Foreground="#FFFDFCFC">
- <Expander.Header>
- <TextBlock x:Name="expHeader" Foreground="White" Text="Server Control Panel" HorizontalAlignment="Left"></TextBlock>
- </Expander.Header>
- <StackPanel Orientation="Vertical">
- <Grid>
- <Grid x:Name="svrAuth">
- <StackPanel Margin="5" Orientation="Vertical">
- <PasswordBox Margin="5" Password="password" Background="#FF1B1B1B" x:Name="svrPassword" Foreground="#FFF3F2F2"></PasswordBox>
- <Border x:Name="btnAuth" CornerRadius="5" Height="25" HorizontalAlignment="Right" Margin="5" Background="#FF527E3E">
- <TextBlock VerticalAlignment="Center" Padding="10" Text="Auth"></TextBlock>
- </Border>
- </StackPanel>
- </Grid>
- </Grid>
- <Grid x:Name="svrOptions" Visibility="Collapsed">
- <StackPanel Orientation="Vertical">
- <TextBlock Margin="5" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#fff" Text="Change Map"></TextBlock>
- <ComboBox x:Name="MapList" Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Margin="0,0,0,1">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Name}" />
- </DataTemplate>
- </ComboBox.ItemTemplate>
- <!--<ComboBox.SelectionBoxItemTemplate>
- <DataTemplate>
- <TextBlock Foreground="LimeGreen" Text="{Binding Name}"/>
- </DataTemplate>
- </ComboBox.SelectionBoxItemTemplate>-->
- </ComboBox>
- </StackPanel>
- </Grid>
- </StackPanel>
- </Expander>
- </Border>
- <Border x:Name="btnDisconnect" CornerRadius="5" Padding="5" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,5,10,5" Background="#33E40808">
- <TextBlock TextAlignment="Center" VerticalAlignment="Center" Foreground="White">Disconnect</TextBlock>
- </Border>
- </Grid>
- </Grid>
- </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement