Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <span style="position: absolute; left: @(por.Left)px; top: @(por.Top)px; width: @(por.Width)px; height: @(por.Height)px;">
- @if (autohost != null && autohost.PlanetWarsHostPlayers.Count() > 1) {
- <img src='/img/planetstatus/@(autohost.InGame ? "attacking" : "preparing")0.png' width='@(por.Width)' style='position:absolute'/>
- }
- @{
- var rendered = new List<string>();
- }
- @foreach (var s in p.PlanetStructures) {
- var size = por.Width;
- var urlResized = s.GetPathResized(size);
- if (rendered.Contains(urlResized)) {
- continue;
- }
- rendered.Add(urlResized);
- var pathResized = Server.MapPath(urlResized);
- if (!File.Exists(pathResized)) {
- s.GenerateResized(size, Server.MapPath("/img/structures/"));
- }
- <img src='@urlResized' style='position:absolute' />
- }
- </span>
- <table cellpadding="0" cellspacing="0" style="left: @(pr.Left - 40)px; top: @(pr.Top - 50)px; width:@(pr.Width + 80)px; height:50px;" class="pwlabel" width="@(pr.Width + 80)" height="50">
- <tr>
- <td valign="bottom" align="center">
- <a href='@Url.Action("Planet", new { id = p.PlanetID })' style='color:White'><span title="$planet$@p.PlanetID" style="color: @(Clan.TreatyColor(Global.Clan, clan))" >@p.Name<br />
- @if (clan != null && Global.Clan != null && clan.ClanID == Global.Clan.ClanID) {
- <span style="font-size: 8px">@p.Account.Name</span>
- }
- </span></a>
- </td>
- </tr>
- </table>
- <span style="position: absolute; left: @(pr.Left - 20)px; top: @(pr.Top)px; width: 20px; height: @(pr.Height)px; text-align:right;" title='$planetInfluence$@p.PlanetID'>
- <table cellpadding="0" cellspacing="0" style="font-size: 2px;">
- <tr>
- <td align="center">
- @if (clan != null) {
- <img src='@clan.GetImageUrl()' width='20' />
- }
- </td>
- </tr>
- </table>
- </span>
- if (shipCount > 0) {
- <span style="position: absolute; left: @(pr.Right)px; top: @(pr.Top)px; width: 100px; height: @(pr.Height)px; display:inline-block;" title='$planetDropships$@p.PlanetID'>
- <img src='/img/fleets/war.png' width='@(Math.Round(13 + 12.0 * shipCount / (double)maxDropships))' /><span style="font-size: 10px">@shipCount</span> </span>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement