mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 16:08:38 +00:00
Add Adventure icon for slot settings (#494)
* Adventures show correct icon in settings * Update ProjectLighthouse.Servers.Website/Pages/SlotSettingsPage.cshtml Co-authored-by: Josh <josh@slendy.pw> Co-authored-by: Josh <josh@slendy.pw>
This commit is contained in:
parent
ded7628085
commit
343a88f802
1 changed files with 6 additions and 4 deletions
|
@ -17,6 +17,8 @@
|
|||
bool isMobile = Request.IsMobile();
|
||||
|
||||
int size = isMobile ? 100 : 200;
|
||||
bool isAdventure = Model.Slot?.IsAdventurePlanet ?? false;
|
||||
string advenStyleExt = isAdventure ? "-webkit-mask-image: url(/assets/advSlotCardMask.png); -webkit-mask-size: contain; border-radius: 0%;" : "";
|
||||
}
|
||||
|
||||
<script>
|
||||
|
@ -37,9 +39,9 @@ function onSubmit(){
|
|||
<div class="field" style="display: flex; justify-content: center; align-items: center;">
|
||||
<div>
|
||||
<div>
|
||||
<img src="~/assets/slotCardOverlay.png" style="min-width: @(size)px; width: @(size)px; height: @(size)px; pointer-events: none; position: absolute; z-index: 3;">
|
||||
<img src="~/assets/slotCardBackground.png" style="min-width: @(size)px; width: @(size)px; height: @(size)px; position: absolute; z-index: 1;">
|
||||
<img id="slotIcon" class="cardIcon slotCardIcon" src="/gameAssets/@Model.Slot.IconHash" style="min-width: @(size)px; width: @(size)px; height: @(size)px; position: relative; z-index: 2"
|
||||
<img src=@(isAdventure ? "/assets/advSlotCardOverlay.png" : "/assets/slotCardOverlay.png") style="min-width: @(size)px; width: @(size)px; height: @(size)px; pointer-events: none; position: absolute; z-index: 3;">
|
||||
<img src="~/assets/slotCardBackground.png" style="min-width: @(size)px; width: @(size)px; height: @(size)px; position: absolute; z-index: 1; @(advenStyleExt)">
|
||||
<img id="slotIcon" class="cardIcon slotCardIcon" src="/gameAssets/@Model.Slot.IconHash" style="min-width: @(size)px; width: @(size)px; height: @(size)px; position: relative; z-index: 2; @(advenStyleExt)"
|
||||
onerror="this.onerror='';this.src='/gameAssets/@ServerConfiguration.Instance.WebsiteConfiguration.MissingIconHash'">
|
||||
</div>
|
||||
<div class="ui fitted divider hidden"></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue