Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
Game updatess
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenSauce committed Feb 18, 2021
1 parent 2442fdf commit df6e22d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
Binary file added MOBA-Manager/MOBA-Manager/Assets/UI/person.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions MOBA-Manager/MOBA-Manager/MOBA-Manager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@
<Resource Include="Assets\Badges\64 Legs.png" />
<Resource Include="Assets\UI\two-coins %281%29.png" />
<Resource Include="Assets\UI\two-coins.png" />
<Resource Include="Assets\UI\person.png" />
<Content Include="Sound\Doomsayer.wav" />
</ItemGroup>
<ItemGroup>
Expand Down
10 changes: 10 additions & 0 deletions MOBA-Manager/MOBA-Manager/Source/DataModel/Team.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ public String GetTeamName()
return this.teamName;
}

public String GetCash()
{
return "£" + Math.Floor(Cash);
}

public int GetNumberOfPlayers()
{
return Roster.Count;
}

public void SetTeamName(String name)
{
this.teamName = name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@
<ColumnDefinition Width="2*" />
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Grid.RowSpan="4" BorderBrush="White"
BorderThickness="0,0,1,0" Background="{x:Null}" />
BorderThickness="0,0,1,0" Background="{x:Null}" >
</Border>

<Image Grid.Column="0" x:Name="teamIcon" HorizontalAlignment="Right" Height="100" Margin="0,20,20,0" VerticalAlignment="Top" Width="100" />
<Label Grid.Column="0" x:Name="teamName" Content="Label" HorizontalAlignment="Left" Margin="65,81,0,0" VerticalAlignment="Top" Style="{DynamicResource Header}" />
<Label Grid.Column="0" x:Name="teamName" Content="Label" HorizontalAlignment="Left" Margin="40,64,0,0" VerticalAlignment="Top" Style="{DynamicResource Header}" FontFamily="/MOBA-Manager;component/Fonts/#monogram" />
<Label Grid.Column="0" x:Name="playerName" Content="Label" HorizontalAlignment="Left" Margin="40,20,0,0" VerticalAlignment="Top" Style="{DynamicResource ResourceKey=Header}" />
<Image Grid.Column="0" x:Name="cashIcon" HorizontalAlignment="Left" Height="64" Margin="40,115,0,0" VerticalAlignment="Top" Width="64" Source="/MOBA-Manager;component/Assets/UI/two-coins.png" />
<Label Grid.Column="0" x:Name="cashLabel" Content="Label" HorizontalAlignment="Left" Margin="128,123,0,0" VerticalAlignment="Top" Style="{DynamicResource Header}" FontFamily="/MOBA-Manager;component/Fonts/#monogram" />
<Image Grid.Column="0" x:Name="playerIcon" HorizontalAlignment="Left" Height="64" Margin="220,115,0,0" VerticalAlignment="Top" Width="64" Source="/MOBA-Manager;component/Assets/UI/person.png" />
<Label Grid.Column="0" x:Name="numberOfPlayerLabel" Content="Label" HorizontalAlignment="Left" Margin="300,123,0,0" VerticalAlignment="Top" Style="{DynamicResource Header}" FontFamily="/MOBA-Manager;component/Fonts/#monogram" />
<Label Content="Team List" Grid.Column="1" HorizontalAlignment="Left" Margin="40,20,0,0" VerticalAlignment="Top" Style="{DynamicResource Header}" />
<StackPanel x:Name="Squad" Grid.Column="1" Margin="0,100,0,0">
</StackPanel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ private void SetupUI()
playerName.Content = playerSession.MainPlayer.GetFullName();
teamName.Content = playerTeam.TeamName;
teamIcon.Source = playerTeam.TeamBadge;
cashLabel.Content = playerTeam.GetCash();
numberOfPlayerLabel.Content = playerTeam.GetNumberOfPlayers();
SetupTeamList();
}

Expand Down

0 comments on commit df6e22d

Please sign in to comment.