Skip to content

Commit

Permalink
Adds cit
Browse files Browse the repository at this point in the history
  • Loading branch information
AffectedArc07 committed Mar 9, 2024
1 parent b70581a commit 71978c4
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 3 deletions.
100 changes: 100 additions & 0 deletions SS13WebMap/CodebaseData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,106 @@ public class CodebaseData {
},
}
} },

// Citadel RP
/* Disabled until someone tells me what on earth is going on
{ "citrp", new Codebase {
CodebaseId = "citrp",
CodebaseName = "Citadel Station (RP)",
TextColour = "#2196f3",
FancySupport = true,
IsAdult = true,
LogoPath = "img/logos/cit.png",
GameMaps = new List<GameMap>() {
new GameMap { MapId = "atlas", MapName = "Atlas", MapWidth = 192, MapHeight = 192,
Layers = new List<string[]> {
new string[] { "Z1", "rift-01-underground3", "1" },
new string[] { "Z2", "rift-02-underground2", "1" },
new string[] { "Z3", "rift-03-underground1", "1" },
new string[] { "Z4", "rift-04-surface1", "1" },
new string[] { "Z5", "rift-05-surface2", "1" },
new string[] { "Z6", "rift-06-surface3", "1" },
}
},
new GameMap { MapId = "polaris", MapName = "Polaris", MapWidth = 300, MapHeight = 300,
Layers = new List<string[]> {
new string[] { "Base Map", "polaris-1", "1" },
}
},
new GameMap { MapId = "southerncross", MapName = "SouthernCross ", MapWidth = 300, MapHeight = 300,
Layers = new List<string[]> {
new string[] { "Z1", "southern_cross-1", "1" },
new string[] { "Z2", "southern_cross-1", "2" },
new string[] { "Z3", "southern_cross-1", "3" },
}
},
new GameMap { MapId = "tether", MapName = "Tether", MapWidth = 300, MapHeight = 300,
Layers = new List<string[]> {
new string[] { "Surface 1", "tether-01-surface1", "1" },
new string[] { "Surface 2", "tether-02-surface2", "1" },
new string[] { "Surface 3", "tether-03-surface3", "1" },
new string[] { "Transit", "tether-04-transit", "1" },
new string[] { "Station 1", "tether-05-station1", "1" },
new string[] { "Station 2", "tether-06-station2", "1" },
new string[] { "Station 3", "tether-07-station3", "1" },
}
},
new GameMap { MapId = "triumph", MapName = "Triupmh", MapWidth = 192, MapHeight = 192,
Layers = new List<string[]> {
new string[] { "Z1", "deck1", "1" },
new string[] { "Z2", "deck2", "1" },
new string[] { "Z3", "deck3", "1" },
new string[] { "Z4", "deck4", "1" },
}
},
new GameMap { MapId = "virgo", MapName = "Virgo", MapWidth = 300, MapHeight = 300,
Layers = new List<string[]> {
new string[] { "Base Map", "virgo-1", "1" },
}
},
}
} },
*/

// Citadel TG
{ "cit", new Codebase {
CodebaseId = "cit",
CodebaseName = "Citadel Station (TG)",
TextColour = "#2196f3",
FancySupport = true,
IsAdult = true,
LogoPath = "img/logos/cit.png",
GameMaps = new List<GameMap>() {
new GameMap { MapId = "boxstation", MapName = "BoxStation", Layers = new List<string[]> {
new string[] { "Base Map", "BoxStation", "1" },
}
},
new GameMap { MapId = "cogstation", MapName = "CogStation", Layers = new List<string[]> {
new string[] { "Base Map", "CogStation", "1" },
}
},
new GameMap { MapId = "deltastation", MapName = "DeltaStation", Layers = new List<string[]> {
new string[] { "Base Map", "DeltaStation2", "1" },
}
},
new GameMap { MapId = "lambdastation", MapName = "LambdaStation", Layers = new List<string[]> {
new string[] { "Base Map", "lambda", "1" },
}
},
new GameMap { MapId = "metastation", MapName = "MetaStation", Layers = new List<string[]> {
new string[] { "Base Map", "MetaStation", "1" },
}
},
new GameMap { MapId = "omegastation", MapName = "OmegaStation", Layers = new List<string[]> {
new string[] { "Base Map", "OmegaStation", "1" },
}
},
new GameMap { MapId = "pubbystation", MapName = "PubbyStation", Layers = new List<string[]> {
new string[] { "Base Map", "PubbyStation", "1" },
}
},
}
} },

// Chaotic Onyx
{ "onyx", new Codebase {
Expand Down
5 changes: 4 additions & 1 deletion SS13WebMap/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<a class="btn btn-primary" target="_blank" href="https://onlyfaans.net/"><i class="fas fa-pound-sign"></i>&nbsp;&nbsp;Donate</a>
<a class="btn btn-primary" target="_blank" href="https://affectedarc07.co.uk/webmap/status.php"><i class="fas fa-server"></i>&nbsp;&nbsp;Status</a>

<div class="accordion text-start mt-3" id="homepage_accordion">
<div class="accordion text-start mt-3 mb-5" id="homepage_accordion">
<div class="accordion-item border-1 border-white">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#psa_collapsible" aria-expanded="false" aria-controls="psa_collapsible">
Expand Down Expand Up @@ -54,6 +54,9 @@
<img class="codebase_logo me-2" src="@codebase.LogoPath">
}
<i class="fas fa-angle-down"></i>&nbsp;&nbsp;@codebase.CodebaseName
@if(codebase.IsAdult) {
<span class="ms-2 text-warning" data-bs-toggle="tooltip" data-bs-title="This server denotes itself as 18+. I do not control or condone the content on the maps. You have been warned."><i class="fas fa-exclamation-triangle"></i></span>
}
</button>
</h2>
<div id="cbcollapse-@codebase.CodebaseId" class="accordion-collapse collapse" data-bs-parent="#homepage_accordion">
Expand Down
2 changes: 0 additions & 2 deletions SS13WebMap/Views/Shared/_ValidationScriptsPartial.cshtml

This file was deleted.

Binary file added SS13WebMap/wwwroot/img/logos/cit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions SS13WebMap/wwwroot/js/extras.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,6 @@ for (let elem of codebase_header_elems) {
elem.style.color = elem.getAttribute("webmap-fancy-colour");
}
}

const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))

0 comments on commit 71978c4

Please sign in to comment.