-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related to #6
- Loading branch information
Showing
8 changed files
with
90 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 10 additions & 7 deletions
17
src/Sidekick.Modules.Trade/Components/Items/ItemLineContentsComponent.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/Sidekick.Modules.Trade/Components/Items/ItemProperties.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
@if (Item != null) | ||
{ | ||
<div class="properties"> | ||
@if (Item.Properties.ItemLevel > 0) | ||
{ | ||
<MudText Typo="Typo.body1" Class="font-smallcaps" Align="Align.Center">@((MarkupString)GetLine(GameLanguageProvider.Language.DescriptionItemLevel, Item.Properties.ItemLevel))</MudText> | ||
} | ||
</div> | ||
<ItemRequirementsComponent Item="Item" /> | ||
|
||
@if (Item.RequirementContents != null || Item.Properties.ItemLevel > 0) | ||
{ | ||
<ItemSeparatorComponent Item="Item" /> | ||
} | ||
} | ||
|
||
@code { | ||
[Parameter] public TradeItem Item { get; set; } | ||
|
||
[Inject] public IGameLanguageProvider GameLanguageProvider { get; set; } | ||
|
||
private string GetLine(string label, object value) | ||
{ | ||
return $"{label}: <span style=\"color:#FFFFFF;\">{value}</span>"; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/Sidekick.Modules.Trade/Components/Items/ItemProperties.razor.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.properties { | ||
color: #7f7f7f; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters