Advertisement
Guest User

Untitled

a guest
Sep 18th, 2017
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.35 KB | None | 0 0
  1.    <span style="position: absolute; left: @(por.Left)px; top: @(por.Top)px; width: @(por.Width)px; height: @(por.Height)px;">
  2.       @if (autohost != null && autohost.PlanetWarsHostPlayers.Count() > 1) {
  3.        <img src='/img/planetstatus/@(autohost.InGame ? "attacking" : "preparing")0.png' width='@(por.Width)' style='position:absolute'/>
  4.             }
  5.      
  6.             @{
  7.             var rendered = new List<string>();
  8.             }
  9.       @foreach (var s in p.PlanetStructures) {
  10.                 var size = por.Width;
  11.                 var urlResized = s.GetPathResized(size);
  12.                 if (rendered.Contains(urlResized)) {
  13.                     continue;
  14.                 }
  15.                 rendered.Add(urlResized);
  16.                 var pathResized = Server.MapPath(urlResized);
  17.                 if (!File.Exists(pathResized)) {
  18.                     s.GenerateResized(size, Server.MapPath("/img/structures/"));
  19.                 }
  20.         <img src='@urlResized' style='position:absolute' />
  21.             }
  22.     </span>
  23.    
  24.    
  25.    
  26.     <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">
  27.       <tr>
  28.         <td valign="bottom" align="center">
  29.           <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 />
  30.             @if (clan != null && Global.Clan != null && clan.ClanID == Global.Clan.ClanID) {
  31.              <span style="font-size: 8px">@p.Account.Name</span>
  32.                         }
  33.          </span></a>
  34.        </td>
  35.      </tr>
  36.    </table>
  37.    
  38.    <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'>
  39.       <table cellpadding="0" cellspacing="0" style="font-size: 2px;">
  40.         <tr>
  41.           <td align="center">
  42.             @if (clan != null) {
  43.               <img src='@clan.GetImageUrl()' width='20' />
  44.                         }
  45.           </td>
  46.         </tr>
  47.       </table>
  48.     </span>
  49.    
  50.    
  51.    
  52.    
  53. if (shipCount > 0) {
  54.     <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'>
  55.     <img src='/img/fleets/war.png' width='@(Math.Round(13 + 12.0 * shipCount / (double)maxDropships))' /><span style="font-size: 10px">@shipCount</span> </span>
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement