Browse Source

Updating Mudblazor Version

main
Jonathan 1 year ago
parent
commit
e820457176
  1. 3
      Components/Display/CodeComponent.razor
  2. 6
      Components/Display/DevOnlyComponent.razor
  3. 6
      Components/Display/EntityDisplayComponent.razor
  4. 9
      Components/Display/InfoTooltipComponent.razor
  5. 15
      Components/Display/MakingOfComponent.razor
  6. 6
      Components/Display/MakingOfSectionComponent.razor
  7. 3
      Components/Display/PanelComponent.razor
  8. 6
      Components/Display/PaperComponent.razor
  9. 9
      Components/Feedback/AlertComponent.razor
  10. 7
      Components/Feedback/ToastComponent.razor
  11. 15
      Components/Form/FormCheckboxComponent.razor
  12. 19
      Components/Form/FormDisplayComponent.razor
  13. 15
      Components/Form/FormGuessComponent.razor
  14. 3
      Components/Form/FormInfoComponent.razor
  15. 3
      Components/Form/FormLabelComponent.razor
  16. 3
      Components/Form/FormLayoutComponent.razor
  17. 24
      Components/Form/FormNumberComponent.razor
  18. 12
      Components/Form/FormSelectComponent.razor
  19. 27
      Components/Form/FormTextAreaComponent.razor
  20. 27
      Components/Form/FormTextComponent.razor
  21. 15
      Components/Form/FormToggleComponent.razor
  22. 6
      Components/Info/InfoBodyComponent.razor
  23. 9
      Components/Inputs/ButtonComponent.razor
  24. 11
      Components/Inputs/ButtonGroupComponent.razor
  25. 3
      Components/Inputs/CodeLinkComponent.razor
  26. 3
      Components/Inputs/EditLinkComponent.razor
  27. 3
      Components/Inputs/EntityLabelComponent.razor
  28. 6
      Components/Inputs/LinkButtonComponent.razor
  29. 6
      Components/Inputs/SearchButtonComponent.razor
  30. 6
      Components/Inputs/SearchIconButtonComponent.razor
  31. 3
      Components/Layout/LayoutColumnComponent.razor
  32. 4
      Components/Layout/LayoutLargeContentComponent.razor
  33. 3
      Components/Layout/LayoutMediumContentComponent.razor
  34. 3
      Components/Layout/LayoutNoteContentComponent.razor
  35. 3
      Components/Layout/LayoutRowComponent.razor
  36. 7
      Components/Layout/LayoutWithSidebarComponent.razor
  37. 3
      Components/Layout/PageContainerComponent.razor
  38. 3
      Components/Layout/WebsiteTitleComponent.razor
  39. 6
      Components/MarkdownContent/MarkdownContent.razor
  40. 6
      Components/Navigation/DesktopNavComponent.razor
  41. 9
      Components/Navigation/DesktopNavLinkComponent.razor
  42. 4
      Components/Navigation/DesktopNavSectionComponent.razor
  43. 21
      Components/Navigation/MobileNavComponent.razor
  44. 10
      Components/Navigation/TabletNavComponent.razor
  45. 9
      Components/Shared/DisplayableContent.razor
  46. 6
      Components/Shared/DisplayableRoute.razor
  47. 5
      Components/Shared/FooterComponent.razor
  48. 6
      Components/Shared/MathDivisionComponent.razor
  49. 12
      Components/Shared/MathLoopSumComponent.razor
  50. 3
      Components/Shared/SpoilerTextComponent.razor
  51. 2
      IGP/App.razor
  52. 9
      IGP/Dialog/ConfirmationDialogComponent.razor
  53. 5
      IGP/Dialog/EntityDialogComponent.razor
  54. 5
      IGP/Dialog/SearchDialogComponent.razor
  55. 2
      IGP/IGP.csproj
  56. 7
      IGP/PageLayout.razor
  57. 11
      IGP/Pages/AboutPage.razor
  58. 21
      IGP/Pages/BuildCalculator/BuildCalculatorPage.razor
  59. 9
      IGP/Pages/BuildCalculator/Parts/ArmyComponent.razor
  60. 9
      IGP/Pages/BuildCalculator/Parts/BankComponent.razor
  61. 10
      IGP/Pages/BuildCalculator/Parts/BuildChartComponent.razor
  62. 7
      IGP/Pages/BuildCalculator/Parts/EntityClickViewComponent.razor
  63. 19
      IGP/Pages/BuildCalculator/Parts/HotkeyViewerComponent.razor
  64. 3
      IGP/Pages/BuildCalculator/Parts/InputPanelComponent.razor
  65. 4
      IGP/Pages/BuildCalculator/Parts/OptionsComponent.razor
  66. 3
      IGP/Pages/ContactPage.razor
  67. 393
      IGP/Pages/DataTables/DataTablesPage.razor
  68. 5
      IGP/Pages/DataTables/Parts/UnitTable.razor
  69. 23
      IGP/Pages/DataTables/Parts/WeaponTable.razor
  70. 17
      IGP/Pages/Database/DatabasePage.razor
  71. 7
      IGP/Pages/Database/DatabaseSinglePage.razor
  72. 6
      IGP/Pages/Database/Entity/EntityViewComponent.razor
  73. 15
      IGP/Pages/Database/Entity/Parts/EntityAbilitiesComponent.razor
  74. 6
      IGP/Pages/Database/Entity/Parts/EntityHeaderComponent.razor
  75. 6
      IGP/Pages/Database/Entity/Parts/EntityInfoComponent.razor
  76. 6
      IGP/Pages/Database/Entity/Parts/EntityMechanicsComponent.razor
  77. 9
      IGP/Pages/Database/Entity/Parts/EntityPassivesComponent.razor
  78. 10
      IGP/Pages/Database/Entity/Parts/EntityProductionComponent.razor
  79. 13
      IGP/Pages/Database/Entity/Parts/EntityPyreSpellsComponent.razor
  80. 6
      IGP/Pages/Database/Entity/Parts/EntityStatsComponent.razor
  81. 9
      IGP/Pages/Database/Entity/Parts/EntityUpgradesComponent.razor
  82. 13
      IGP/Pages/Database/Entity/Parts/EntityVanguardAddedComponent.razor
  83. 15
      IGP/Pages/Database/Entity/Parts/EntityVanguardsComponent.razor
  84. 12
      IGP/Pages/Database/Entity/Parts/EntityWeaponsComponent.razor
  85. 14
      IGP/Pages/Database/Parts/EntityFilterComponent.razor
  86. 4
      IGP/Pages/Documentation/Parts/DocumentComponent.razor
  87. 8
      IGP/Pages/EconomyComparison/Parts/ChartComponent.razor
  88. 10
      IGP/Pages/EconomyComparison/Parts/EconomyDifferenceComponent.razor
  89. 3
      IGP/Pages/EconomyComparison/Parts/EconomyInputComponent.razor
  90. 32
      IGP/Pages/HarassCalculatorPage.razor
  91. 12
      IGP/Pages/Home/Parts/ContentHighlightComponent.razor
  92. 13
      IGP/Pages/MemoryTester/MemoryTesterPage.razor
  93. 9
      IGP/Pages/MemoryTester/Parts/UnitMemory.razor
  94. 15
      IGP/Pages/Notes/NotesIndexPage.razor
  95. 16
      IGP/Pages/Notes/NotesPage.razor
  96. 5
      IGP/Pages/Notes/Parts/NoteComponent.razor
  97. 8
      IGP/Pages/Notes/Parts/NoteInnerNavComponent.razor
  98. 6
      IGP/Pages/Notes/Parts/NoteNavComponent.razor
  99. 18
      IGP/Pages/PermissionsPage.razor
  100. 4
      IGP/Pages/RawDatabase.razor
  101. Some files were not shown because too many files have changed in this diff Show More

3
Components/Display/CodeComponent.razor

@ -21,7 +21,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
} }

6
Components/Display/DevOnlyComponent.razor

@ -58,11 +58,9 @@
@code { @code {
[Inject] [Inject] NavigationManager NavigationManager { get; set; } = default!;
NavigationManager NavigationManager { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
bool isOnDev; bool isOnDev;

6
Components/Display/EntityDisplayComponent.razor

@ -69,10 +69,8 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
[Parameter] [Parameter] public string Title { get; set; } = default!;
public string Title { get; set; } = default!;
} }

9
Components/Display/InfoTooltipComponent.razor

@ -55,13 +55,10 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
[Parameter] [Parameter] public string InfoText { get; set; } = default!;
public string InfoText { get; set; } = default!;
[Parameter] [Parameter] public int? Margin { get; set; }
public int? Margin { get; set; }
} }

15
Components/Display/MakingOfComponent.razor

@ -97,20 +97,15 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment Title { get; set; } = default!;
public RenderFragment Title { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment Description { get; set; } = default!;
public RenderFragment Description { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment Example { get; set; } = default!;
public RenderFragment Example { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment Usage { get; set; } = default!;
public RenderFragment Usage { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment Code { get; set; } = default!;
public RenderFragment Code { get; set; } = default!;
} }

6
Components/Display/MakingOfSectionComponent.razor

@ -22,11 +22,9 @@
@code { @code {
[Parameter] [Parameter] public string Title { get; set; } = default!;
public string Title { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
} }

3
Components/Display/PanelComponent.razor

@ -15,7 +15,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
} }

6
Components/Display/PaperComponent.razor

@ -18,10 +18,8 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
[Parameter] [Parameter] public string Title { get; set; } = default!;
public string Title { get; set; } = default!;
} }

9
Components/Feedback/AlertComponent.razor

@ -52,13 +52,10 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? Title { get; set; }
public RenderFragment? Title { get; set; }
[Parameter] [Parameter] public RenderFragment? Message { get; set; }
public RenderFragment? Message { get; set; }
[Parameter] [Parameter] public string Type { get; set; } = SeverityType.Warning;
public string Type { get; set; } = SeverityType.Warning;
} }

7
Components/Feedback/ToastComponent.razor

@ -58,11 +58,10 @@ else
@code { @code {
[Parameter] [Parameter] public ToastModel? Toast { get; set; }
public ToastModel? Toast { get; set; } = default!;
private float removalTime = 1300; private readonly float removalTime = 1300;
private float fadeoutTime = 1200; private readonly float fadeoutTime = 1200;
private float Opacity() private float Opacity()
{ {

15
Components/Form/FormCheckboxComponent.razor

@ -51,20 +51,15 @@
@code { @code {
[Parameter] [Parameter] public string Label { get; set; } = "";
public string Label { get; set; } = "";
[Parameter] [Parameter] public string Info { get; set; } = "";
public string Info { get; set; } = "";
[Parameter] [Parameter] public EventCallback<ChangeEventArgs> OnChange { get; set; }
public EventCallback<ChangeEventArgs> OnChange { get; set; }
[Parameter] [Parameter] public bool ReadOnly { get; set; }
public bool ReadOnly { get; set; }
[Parameter] [Parameter] public bool Value { get; set; }
public bool Value { get; set; }
private string labelId = ""; private string labelId = "";

19
Components/Form/FormDisplayComponent.razor

@ -35,23 +35,18 @@
</style> </style>
@code { @code {
//TODO Clean up //TODO Clean up
[Parameter] [Parameter] public string Label { get; set; } = default!;
public string Label { get; set; } = default!;
[Parameter] [Parameter] public string Info { get; set; } = default!;
public string Info { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment? Display { get; set; }
public RenderFragment? Display { get; set; }
[Parameter] [Parameter] public EventCallback<ChangeEventArgs> OnChange { get; set; }
public EventCallback<ChangeEventArgs> OnChange { get; set; }
[Parameter] [Parameter] public bool? ReadOnly { get; set; }
public bool? ReadOnly { get; set; }
[Parameter] [Parameter] public string? Value { get; set; }
public string? Value { get; set; }
} }

15
Components/Form/FormGuessComponent.razor

@ -73,20 +73,15 @@
@code { @code {
[Parameter] [Parameter] public string Label { get; set; } = "";
public string Label { get; set; } = "";
[Parameter] [Parameter] public string Info { get; set; } = "";
public string Info { get; set; } = "";
[Parameter] [Parameter] public EventCallback<AnswerEventArgs> OnChange { get; set; }
public EventCallback<AnswerEventArgs> OnChange { get; set; } = default!;
[Parameter] [Parameter] public MemoryQuestionModel MemoryQuestion { get; set; } = default!;
public MemoryQuestionModel MemoryQuestion { get; set; } = default!;
[Parameter] [Parameter] public bool IsSubmitted { get; set; }
public bool IsSubmitted { get; set; }
private string? guess = ""; private string? guess = "";

3
Components/Form/FormInfoComponent.razor

@ -6,7 +6,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? ChildContent { get; set; }
public RenderFragment? ChildContent { get; set; }
} }

3
Components/Form/FormLabelComponent.razor

@ -4,7 +4,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? ChildContent { get; set; }
public RenderFragment? ChildContent { get; set; }
} }

3
Components/Form/FormLayoutComponent.razor

@ -4,7 +4,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? ChildContent { get; set; }
public RenderFragment? ChildContent { get; set; }
} }

24
Components/Form/FormNumberComponent.razor

@ -38,17 +38,13 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? FormLabelComponent { get; set; }
public RenderFragment? FormLabelComponent { get; set; }
[Parameter] [Parameter] public string Id { get; set; } = default!;
public string Id { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment? FormInfoComponent { get; set; }
public RenderFragment? FormInfoComponent { get; set; }
[Parameter] [Parameter] public EventCallback<ChangeEventArgs> OnChange { get; set; }
public EventCallback<ChangeEventArgs> OnChange { get; set; }
void OnInputChanged(ChangeEventArgs changeEventArgs) void OnInputChanged(ChangeEventArgs changeEventArgs)
{ {
@ -73,16 +69,12 @@
} }
} }
[Parameter] [Parameter] public bool ReadOnly { get; set; }
public bool ReadOnly { get; set; } = false;
[Parameter] [Parameter] public int Value { get; set; }
public int Value { get; set; } = 0;
[Parameter] [Parameter] public int Min { get; set; }
public int Min { get; set; } = 0;
[Parameter] [Parameter] public int Max { get; set; } = 2048;
public int Max { get; set; } = 2048;
} }

12
Components/Form/FormSelectComponent.razor

@ -17,16 +17,12 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? FormLabelComponent { get; set; }
public RenderFragment? FormLabelComponent { get; set; }
[Parameter] [Parameter] public RenderFragment? FormInfoComponent { get; set; }
public RenderFragment? FormInfoComponent { get; set; }
[Parameter] [Parameter] public RenderFragment? ChildContent { get; set; }
public RenderFragment? ChildContent { get; set; }
[Parameter] [Parameter] public EventCallback<ChangeEventArgs> OnChange { get; set; }
public EventCallback<ChangeEventArgs> OnChange { get; set; }
} }

27
Components/Form/FormTextAreaComponent.razor

@ -56,32 +56,23 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? FormLabelComponent { get; set; }
public RenderFragment? FormLabelComponent { get; set; }
[Parameter] [Parameter] public RenderFragment? FormInfoComponent { get; set; }
public RenderFragment? FormInfoComponent { get; set; }
[Parameter] [Parameter] public EventCallback<ChangeEventArgs> OnChange { get; set; }
public EventCallback<ChangeEventArgs> OnChange { get; set; }
[Parameter] [Parameter] public bool? ReadOnly { get; set; }
public bool? ReadOnly { get; set; }
[Parameter] [Parameter] public string? Value { get; set; }
public string? Value { get; set; }
[Parameter] [Parameter] public int Rows { get; set; } = 4;
public int Rows { get; set; } = 4;
[Parameter] [Parameter] public string Label { get; set; } = "";
public string Label { get; set; } = "";
[Parameter] [Parameter] public string Info { get; set; } = "";
public string Info { get; set; } = "";
[Parameter] [Parameter] public string Placeholder { get; set; } = "";
public string Placeholder { get; set; } = "";
private string labelId = ""; private string labelId = "";

27
Components/Form/FormTextComponent.razor

@ -52,34 +52,25 @@
@code { @code {
[Parameter] [Parameter] public string Id { get; set; } = "";
public string Id { get; set; } = "";
[Parameter] [Parameter] public string Label { get; set; } = "";
public string Label { get; set; } = "";
[Parameter] [Parameter] public string Info { get; set; } = "";
public string Info { get; set; } = "";
[Parameter] [Parameter] public string Placeholder { get; set; } = "";
public string Placeholder { get; set; } = "";
[Parameter] [Parameter] public EventCallback<ChangeEventArgs> OnInput { get; set; }
public EventCallback<ChangeEventArgs> OnInput { get; set; }
[Parameter] [Parameter] public EventCallback<ChangeEventArgs> OnChange { get; set; }
public EventCallback<ChangeEventArgs> OnChange { get; set; }
[Parameter] [Parameter] public EventCallback OnFocus { get; set; }
public EventCallback OnFocus { get; set; }
[Parameter] [Parameter] public bool ReadOnly { get; set; }
public bool ReadOnly { get; set; }
[Parameter] [Parameter] public string Value { get; set; } = "";
public string Value { get; set; } = "";
private string labelId = ""; private string labelId = "";

15
Components/Form/FormToggleComponent.razor

@ -98,20 +98,15 @@
@code { @code {
[Parameter] [Parameter] public string Label { get; set; } = "";
public string Label { get; set; } = "";
[Parameter] [Parameter] public string Info { get; set; } = "";
public string Info { get; set; } = "";
[Parameter] [Parameter] public EventCallback<ChangeEventArgs> OnChange { get; set; }
public EventCallback<ChangeEventArgs> OnChange { get; set; }
[Parameter] [Parameter] public bool ReadOnly { get; set; }
public bool ReadOnly { get; set; }
[Parameter] [Parameter] public bool Value { get; set; }
public bool Value { get; set; }
private string labelId = ""; private string labelId = "";

6
Components/Info/InfoBodyComponent.razor

@ -37,10 +37,8 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? InfoQuestionComponent { get; set; }
public RenderFragment? InfoQuestionComponent { get; set; }
[Parameter] [Parameter] public RenderFragment? InfoAnswerComponent { get; set; }
public RenderFragment? InfoAnswerComponent { get; set; }
} }

9
Components/Inputs/ButtonComponent.razor

@ -36,14 +36,11 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
[Parameter] [Parameter] public EventCallback<EventArgs> OnClick { get; set; }
public EventCallback<EventArgs> OnClick { get; set; } = default!;
[Parameter] [Parameter] public MyButtonType MyButtonType { get; set; }
public MyButtonType MyButtonType { get; set; } = default!;
private void ButtonClicked(EventArgs eventArgs) private void ButtonClicked(EventArgs eventArgs)
{ {

11
Components/Inputs/ButtonGroupComponent.razor

@ -7,6 +7,7 @@
{ {
styleClass = "selected"; styleClass = "selected";
} }
<button @onclick="@(e => OnChangeChoice(choice))" class="groupChoiceButton @styleClass">@choice</button> <button @onclick="@(e => OnChangeChoice(choice))" class="groupChoiceButton @styleClass">@choice</button>
} }
</div> </div>
@ -20,6 +21,7 @@
justify-content: flex-start; justify-content: flex-start;
justify-items: flex-start; justify-items: flex-start;
} }
.groupButtonContainer { .groupButtonContainer {
display: flex; display: flex;
background-color: var(--background); background-color: var(--background);
@ -69,14 +71,11 @@
@code { @code {
[Parameter] [Parameter] public string Choice { get; set; } = default!;
public string Choice { get; set; } = default!;
[Parameter] [Parameter] public List<string> Choices { get; set; } = default!;
public List<string> Choices { get; set; } = default!;
[Parameter] [Parameter] public EventCallback<string> OnClick { get; set; }
public EventCallback<string> OnClick { get; set; }
protected override void OnInitialized() protected override void OnInitialized()

3
Components/Inputs/CodeLinkComponent.razor

@ -23,7 +23,6 @@
@code { @code {
[Parameter] [Parameter] public string Href { get; set; } = "";
public string Href { get; set; } = "";
} }

3
Components/Inputs/EditLinkComponent.razor

@ -23,7 +23,6 @@
@code { @code {
[Parameter] [Parameter] public string Href { get; set; } = "";
public string Href { get; set; } = "";
} }

3
Components/Inputs/EntityLabelComponent.razor

@ -14,8 +14,7 @@ else
@code { @code {
[Parameter] [Parameter] public string EntityId { get; set; } = default!;
public string EntityId { get; set; } = default!;
private EntityModel Entity => DATA.Get()[EntityId]; private EntityModel Entity => DATA.Get()[EntityId];

6
Components/Inputs/LinkButtonComponent.razor

@ -24,12 +24,10 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
[Parameter] [Parameter] public string Href { get; set; } = "";
public string Href { get; set; } = "";
} }

6
Components/Inputs/SearchButtonComponent.razor

@ -45,11 +45,9 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
[Parameter] [Parameter] public string Id { get; set; } = default!;
public string Id { get; set; } = default!;
private string _userAgent = ""; private string _userAgent = "";

6
Components/Inputs/SearchIconButtonComponent.razor

@ -29,11 +29,9 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
[Parameter] [Parameter] public string Id { get; set; } = default!;
public string Id { get; set; } = default!;
private void ButtonClicked(EventArgs eventArgs) private void ButtonClicked(EventArgs eventArgs)
{ {

3
Components/Layout/LayoutColumnComponent.razor

@ -12,7 +12,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? ChildContent { get; set; }
public RenderFragment? ChildContent { get; set; }
} }

4
Components/Layout/LayoutLargeContentComponent.razor

@ -23,7 +23,6 @@
} }
@@media only screen and (min-width: 1024px) { @@media only screen and (min-width: 1024px) {
.lrg_container { .lrg_container {
margin-top: 50px; margin-top: 50px;
@ -34,7 +33,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? ChildContent { get; set; }
public RenderFragment? ChildContent { get; set; }
} }

3
Components/Layout/LayoutMediumContentComponent.razor

@ -33,7 +33,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? ChildContent { get; set; }
public RenderFragment? ChildContent { get; set; }
} }

3
Components/Layout/LayoutNoteContentComponent.razor

@ -29,7 +29,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? ChildContent { get; set; }
public RenderFragment? ChildContent { get; set; }
} }

3
Components/Layout/LayoutRowComponent.razor

@ -21,7 +21,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? ChildContent { get; set; }
public RenderFragment? ChildContent { get; set; }
} }

7
Components/Layout/LayoutWithSidebarComponent.razor

@ -39,7 +39,6 @@
} }
@@media only screen and (min-width: 1024px) { @@media only screen and (min-width: 1024px) {
.layoutWithSidebar { .layoutWithSidebar {
margin-top: 50px; margin-top: 50px;
@ -50,10 +49,8 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment Sidebar { get; set; } = default!;
public RenderFragment Sidebar { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment Content { get; set; } = default!;
public RenderFragment Content { get; set; } = default!;
} }

3
Components/Layout/PageContainerComponent.razor

@ -24,7 +24,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
} }

3
Components/Layout/WebsiteTitleComponent.razor

@ -21,7 +21,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment? ChildContent { get; set; }
public RenderFragment? ChildContent { get; set; }
} }

6
Components/MarkdownContent/MarkdownContent.razor

@ -3,11 +3,9 @@
@code { @code {
[Inject] [Inject] protected HttpClient Http { get; set; } = default!;
protected HttpClient Http { get; set; } = default!;
[Parameter] [Parameter] public string MarkdownFileName { get; set; } = default!;
public string MarkdownFileName { get; set; } = default!;
private string MarkdownText { get; set; } = ""; private string MarkdownText { get; set; } = "";

6
Components/Navigation/DesktopNavComponent.razor

@ -166,11 +166,9 @@
@code { @code {
[Parameter] [Parameter] public List<WebSectionModel> WebSections { get; set; } = default!;
public List<WebSectionModel> WebSections { get; set; } = default!;
[Parameter] [Parameter] public List<WebPageModel> WebPages { get; set; } = default!;
public List<WebPageModel> WebPages { get; set; } = default!;
protected override void OnInitialized() protected override void OnInitialized()

9
Components/Navigation/DesktopNavLinkComponent.razor

@ -12,7 +12,9 @@
} }
else else
{ {
<NavLink target="@Links.GetTarget(Page.Href)" @onclick="() => { NavigationService.ChangeNavigationState(NavigationStateType.Default); NavigationService.ChangeNavigationSectionId(-1); }" href="@Page.Href" class="desktopNavLink"> <NavLink target="@Links.GetTarget(Page.Href)"
@onclick="() => { NavigationService.ChangeNavigationState(NavigationStateType.Default); NavigationService.ChangeNavigationSectionId(-1); }"
href="@Page.Href" class="desktopNavLink">
<div class="navName"> <div class="navName">
@Page.Name @Page.Name
</div> </div>
@ -65,10 +67,9 @@ else
@code { @code {
[Parameter] [Parameter] public WebPageModel Page { get; set; } = default!;
public WebPageModel Page { get; set; } = default!;
bool isOnPage = false; bool isOnPage;
protected override Task OnParametersSetAsync() protected override Task OnParametersSetAsync()
{ {

4
Components/Navigation/DesktopNavSectionComponent.razor

@ -5,6 +5,7 @@
{ {
continue; continue;
} }
<DesktopNavLinkComponent Page=childPage></DesktopNavLinkComponent> <DesktopNavLinkComponent Page=childPage></DesktopNavLinkComponent>
} }
</div> </div>
@ -24,7 +25,6 @@
@code { @code {
[Parameter] [Parameter] public WebSectionModel Section { get; set; } = default!;
public WebSectionModel Section { get; set; } = default!;
} }

21
Components/Navigation/MobileNavComponent.razor

@ -2,7 +2,8 @@
<div class="mobileNavSectionsContainer"> <div class="mobileNavSectionsContainer">
@foreach (var webSection in WebSections) @foreach (var webSection in WebSections)
{ {
<div class="mobileNavSectionButton" @onclick="() => OnSectionClicked(webSection)" @onclick:preventDefault="true" @onclick:stopPropagation="true"> <div class="mobileNavSectionButton" @onclick="() => OnSectionClicked(webSection)"
@onclick:preventDefault="true" @onclick:stopPropagation="true">
<div class="mobileNavSectionButtonText"> <div class="mobileNavSectionButtonText">
<i class="fa-solid @webSection.Icon" style="font-size: 28px;"></i> <i class="fa-solid @webSection.Icon" style="font-size: 28px;"></i>
</div> </div>
@ -11,7 +12,8 @@
<SearchIconButtonComponent/> <SearchIconButtonComponent/>
</div> </div>
<div class="fullPageButton @(selectedSection != null)" @onclick="OnPageClicked" @onclick:stopPropagation="false" @onclick:preventDefault="false"> <div class="fullPageButton @(selectedSection != null)" @onclick="OnPageClicked" @onclick:stopPropagation="false"
@onclick:preventDefault="false">
</div> </div>
@if (selectedSection != null) @if (selectedSection != null)
@ -27,7 +29,9 @@
{ {
continue; continue;
} }
<div class="mobileNavPageButton" @onclick="() => OnPageLinkClicked(webPage)" @onclick:preventDefault="true" @onclick:stopPropagation="true">
<div class="mobileNavPageButton" @onclick="() => OnPageLinkClicked(webPage)"
@onclick:preventDefault="true" @onclick:stopPropagation="true">
<div class="mobileNavPageButtonText"> <div class="mobileNavPageButtonText">
@webPage.Name @webPage.Name
</div> </div>
@ -53,8 +57,6 @@
} }
.mobileFooter { .mobileFooter {
position: fixed; position: fixed;
background-color: rgba(0, 0, 0, 1); background-color: rgba(0, 0, 0, 1);
@ -143,11 +145,9 @@
@code { @code {
#if NO_SQL #if NO_SQL
[Parameter] [Parameter] public List<WebSectionModel> WebSections { get; set; } = default!;
public List<WebSectionModel> WebSections { get; set; } = default!;
[Parameter] [Parameter] public List<WebPageModel> WebPages { get; set; } = default!;
public List<WebPageModel> WebPages { get; set; } = default!;
#else #else
[Parameter] [Parameter]
@ -157,8 +157,7 @@
public DbSet<WebPageModel> WebPages { get; set; } public DbSet<WebPageModel> WebPages { get; set; }
#endif #endif
[Inject] [Inject] public NavigationManager NavigationManager { get; set; } = default!;
public NavigationManager NavigationManager { get; set; } = default!;
private WebSectionModel? selectedSection; private WebSectionModel? selectedSection;

10
Components/Navigation/TabletNavComponent.razor

@ -17,7 +17,8 @@
</div> </div>
<div class="fullPageButton @navOpen" @onclick="OnNavClicked" @onclick:stopPropagation="false" @onclick:preventDefault="false"> <div class="fullPageButton @navOpen" @onclick="OnNavClicked" @onclick:stopPropagation="false"
@onclick:preventDefault="false">
</div> </div>
@ -40,6 +41,7 @@
{ {
continue; continue;
} }
<NavLink href="@webPage.Href" class="tabletNavItem" @onclick="OnPageClicked"> <NavLink href="@webPage.Href" class="tabletNavItem" @onclick="OnPageClicked">
@webPage.Name @webPage.Name
</NavLink> </NavLink>
@ -153,11 +155,9 @@
@code { @code {
#if NO_SQL #if NO_SQL
[Parameter] [Parameter] public List<WebSectionModel> WebSections { get; set; } = default!;
public List<WebSectionModel> WebSections { get; set; } = default!;
[Parameter] [Parameter] public List<WebPageModel> WebPages { get; set; } = default!;
public List<WebPageModel> WebPages { get; set; } = default!;
#else #else
[Parameter] [Parameter]

9
Components/Shared/DisplayableContent.razor

@ -5,14 +5,11 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
[Parameter] [Parameter] public WebDeploymentType DeploymentType { get; set; }
public WebDeploymentType DeploymentType { get; set; }
[Inject] [Inject] public NavigationManager MyNavigationManager { get; set; } = default!;
public NavigationManager MyNavigationManager { get; set; } = default!;
bool isDisplayable; bool isDisplayable;

6
Components/Shared/DisplayableRoute.razor

@ -11,11 +11,9 @@ else
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
[Inject] [Inject] public NavigationManager MyNavigationManager { get; set; } = default!;
public NavigationManager MyNavigationManager { get; set; } = default!;
bool isDisplayable; bool isDisplayable;

5
Components/Shared/FooterComponent.razor

@ -24,7 +24,9 @@
<div class="footerDivider"></div> <div class="footerDivider"></div>
<div class="footerLastUpdated">Website updated <a href="https://github.com/JonathanMcCaffrey/IGP-Fan-Reference/commits/main"><b>@VariableService.Variables["LastUpdated"]</b></a></div> <div class="footerLastUpdated">Website updated <a
href="https://github.com/JonathanMcCaffrey/IGP-Fan-Reference/commits/main"><b>@VariableService.Variables["LastUpdated"]</b></a>
</div>
<div class="footerDisclaimer"> <div class="footerDisclaimer">
This website is fan-made and not affiliated with <b>SunSpear Games</b> in any way. This website is fan-made and not affiliated with <b>SunSpear Games</b> in any way.
@ -49,7 +51,6 @@
} }
.footerContainer { .footerContainer {
width: 100%; width: 100%;
display: flex; display: flex;

6
Components/Shared/MathDivisionComponent.razor

@ -10,10 +10,8 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment Dividee { get; set; } = default!;
public RenderFragment Dividee { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment Divider { get; set; } = default!;
public RenderFragment Divider { get; set; } = default!;
} }

12
Components/Shared/MathLoopSumComponent.razor

@ -1,4 +1,5 @@
<div style="display:flex; flex-direction:column; align-items:center;padding-right: 12px;padding-left: 4px; font-family:monospace"> <div
style="display:flex; flex-direction:column; align-items:center;padding-right: 12px;padding-left: 4px; font-family:monospace">
<div style="height: 0px;display:flex; flex-direction:row; "> <div style="height: 0px;display:flex; flex-direction:row; ">
<div style="font-size: 18px; height: 0px;"> <div style="font-size: 18px; height: 0px;">
&#8721; &#8721;
@ -12,13 +13,10 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment LoopEnd { get; set; } = default!;
public RenderFragment LoopEnd { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment LoopStart { get; set; } = default!;
public RenderFragment LoopStart { get; set; } = default!;
[Parameter] [Parameter] public RenderFragment IndexSymbol { get; set; } = default!;
public RenderFragment IndexSymbol { get; set; } = default!;
} }

3
Components/Shared/SpoilerTextComponent.razor

@ -22,7 +22,6 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
} }

2
IGP/App.razor

@ -82,7 +82,7 @@
</style> </style>
@code { @code {
private bool isLoaded = false; private bool isLoaded;
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()
{ {

9
IGP/Dialog/ConfirmationDialogComponent.razor

@ -1,5 +1,4 @@
@using Services.Website @implements IDisposable;
@implements IDisposable;
@inject IMyDialogService MyDialogService @inject IMyDialogService MyDialogService
@inject IJSRuntime JsRuntime @inject IJSRuntime JsRuntime
@ -21,10 +20,12 @@
</div> </div>
<div class="confirmDialogFooter"> <div class="confirmDialogFooter">
<ButtonComponent MyButtonType="MyButtonType.Secondary" OnClick="MyDialogService.GetDialogContents().OnCancel"> <ButtonComponent MyButtonType="MyButtonType.Secondary"
OnClick="MyDialogService.GetDialogContents().OnCancel">
Cancel Cancel
</ButtonComponent> </ButtonComponent>
<ButtonComponent MyButtonType="MyButtonType.Primary" OnClick="MyDialogService.GetDialogContents().OnConfirm"> <ButtonComponent MyButtonType="MyButtonType.Primary"
OnClick="MyDialogService.GetDialogContents().OnConfirm">
@MyDialogService.GetDialogContents().ConfirmButtonLabel @MyDialogService.GetDialogContents().ConfirmButtonLabel
</ButtonComponent> </ButtonComponent>
</div> </div>

5
IGP/Dialog/EntityDialogComponent.razor

@ -106,8 +106,7 @@
border: 1px solid var(--primary-border-hover); border: 1px solid var(--primary-border-hover);
} }
.backButtonIcon .backButtonIcon {
{
height: 32px; height: 32px;
width: 32px; width: 32px;
border: solid white; border: solid white;
@ -141,7 +140,7 @@
EntityModel entity = default!; EntityModel entity = default!;
private int refresh = 0; private int refresh;
protected override void OnInitialized() protected override void OnInitialized()
{ {

5
IGP/Dialog/SearchDialogComponent.razor

@ -13,7 +13,8 @@
@onclick:stopPropagation="true"> @onclick:stopPropagation="true">
<FormLayoutComponent> <FormLayoutComponent>
<FormTextComponent OnFocus="OnFocus" Id="searchInput" Placeholder="Search..." OnInput="SearchChanged"></FormTextComponent> <FormTextComponent OnFocus="OnFocus" Id="searchInput" Placeholder="Search..."
OnInput="SearchChanged"></FormTextComponent>
</FormLayoutComponent> </FormLayoutComponent>
<div class="searchBox"> <div class="searchBox">
@ -122,6 +123,7 @@
height: 300px; height: 300px;
} }
.searchBox { .searchBox {
height: 230px; height: 230px;
} }
@ -161,6 +163,7 @@
{ {
timer.Enabled = searchService.IsVisible; timer.Enabled = searchService.IsVisible;
} }
StateHasChanged(); StateHasChanged();
} }

2
IGP/IGP.csproj

@ -26,7 +26,7 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.14"/> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.14"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.14"/> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.14"/>
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.14"/> <PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.14"/>
<PackageReference Include="MudBlazor" Version="6.0.14" /> <PackageReference Include="MudBlazor" Version="8.5.1"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

7
IGP/PageLayout.razor

@ -7,11 +7,15 @@
@implements IDisposable @implements IDisposable
<MudThemeProvider/> <MudThemeProvider/>
<MudPopoverProvider/>
<MudDialogProvider/>
<MudSnackbarProvider/>
<MudLayout> <MudLayout>
<MudAppBar Elevation="1"> <MudAppBar Elevation="1">
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true"> <MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())" /> <MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start"
OnClick="@(e => DrawerToggle())"/>
</MudHidden> </MudHidden>
<MudButton Class="ml-3 mr-8" <MudButton Class="ml-3 mr-8"
Href="/" Href="/"
@ -153,5 +157,4 @@
} }
} }
} }

11
IGP/Pages/AboutPage.razor

@ -16,7 +16,8 @@
What is this website for? What is this website for?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
This is just a "yet another third-party tool" website for a video game. If you played a game like Path of Exile, you are probably already used to seeing a bunch of said tools. This is just a "yet another third-party tool" website for a video game. If you played a game like Path
of Exile, you are probably already used to seeing a bunch of said tools.
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
<InfoBodyComponent> <InfoBodyComponent>
@ -24,7 +25,9 @@
So what is <i>this</i> specific tool for? So what is <i>this</i> specific tool for?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
Ideally, this website will be a casual reference, for getting started with understanding the themes and game patterns of IMMORTAL: Gates of Pyre. That said, this tool is currently not near to achieving said goal. In the meantime, you can check out the simple calculator and database tools on this website. Ideally, this website will be a casual reference, for getting started with understanding the themes and
game patterns of IMMORTAL: Gates of Pyre. That said, this tool is currently not near to achieving said
goal. In the meantime, you can check out the simple calculator and database tools on this website.
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
<InfoBodyComponent> <InfoBodyComponent>
@ -40,7 +43,9 @@
Any disclaimers? Any disclaimers?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
This website has no association with "SunSpear Games." Beyond that, any game data displayed on this website for "IMMORTAL: Gates of Pyre" may be inaccurate due to my own human error and time limitations. Use with caution. This website has no association with "SunSpear Games." Beyond that, any game data displayed on this
website for "IMMORTAL: Gates of Pyre" may be inaccurate due to my own human error and time limitations.
Use with caution.
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
</PaperComponent> </PaperComponent>

21
IGP/Pages/BuildCalculator/BuildCalculatorPage.razor

@ -32,7 +32,8 @@
<div class="calculatorGrid"> <div class="calculatorGrid">
<div class="gridItem" style="grid-area: timing;"> <div class="gridItem" style="grid-area: timing;">
<ButtonComponent MyButtonType="MyButtonType.Secondary" OnClick="OnResetClicked">Clear Build Order</ButtonComponent> <ButtonComponent MyButtonType="MyButtonType.Secondary" OnClick="OnResetClicked">Clear Build Order
</ButtonComponent>
<PanelComponent> <PanelComponent>
<InfoTooltipComponent InfoText="@Locale["Tooltip Timing Info"]"> <InfoTooltipComponent InfoText="@Locale["Tooltip Timing Info"]">
<TimingComponent></TimingComponent> <TimingComponent></TimingComponent>
@ -119,7 +120,8 @@
What is this tool? What is this tool?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
This is a calculator to determine build timings. Mostly so someone can quickly try out a few build orders to see if they somewhat make sense. This is a calculator to determine build timings. Mostly so someone can quickly try out a few build
orders to see if they somewhat make sense.
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
@ -128,13 +130,22 @@
How does it work? How does it work?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
The tool calculates every second of game time. So if you attempt to build a <b>Legion Hall</b> as your first action, the tool will scan every second, until you get to one where the request can be made. In this case, that is interval 58. The tool calculates every second of game time. So if you attempt to build a <b>Legion Hall</b> as
your first action, the tool will scan every second, until you get to one where the request can be
made. In this case, that is interval 58.
<br/> <br/>
<br/> <br/>
If you then build 2 <b>Apostle of Bindings</b> a <b>Soul Foundry</b> and a 3 <b>Absolvers</b> you should see yourself roughly floating 500 alloy, with barely having any ether. Which means you could of gotten an <b>Acropolis</b> and a <b>Zentari</b> without hurting your build. If you then build 2 <b>Apostle of Bindings</b> a <b>Soul Foundry</b> and a 3 <b>Absolvers</b> you
should see yourself roughly floating 500 alloy, with barely having any ether. Which means you could
of gotten an <b>Acropolis</b> and a <b>Zentari</b> without hurting your build.
<br/> <br/>
<br/> <br/>
Try building <b>Apostle of Bindings</b> before the <b>Legion Hall</b> and see how that changes the timing of your 3 <b>Absolvers</b>. (Spoiler: <SpoilerTextComponent> your <b>Absolvers</b> will be built much faster, and you won't be floating so much alloy.</SpoilerTextComponent>) Try building <b>Apostle of Bindings</b> before the <b>Legion Hall</b> and see how that changes the
timing of your 3 <b>Absolvers</b>. (Spoiler:
<SpoilerTextComponent> your <b>Absolvers</b> will be built much faster, and you won't be floating so
much alloy.
</SpoilerTextComponent>
)
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>

9
IGP/Pages/BuildCalculator/Parts/ArmyComponent.razor

@ -13,7 +13,8 @@
<Display>@lastInterval | T @Interval.ToTime(lastInterval)</Display> <Display>@lastInterval | T @Interval.ToTime(lastInterval)</Display>
</FormDisplayComponent> </FormDisplayComponent>
<FormDisplayComponent Label="Army Attacking At"> <FormDisplayComponent Label="Army Attacking At">
<Display>@(lastInterval + timingService.GetTravelTime()) | T @Interval.ToTime(lastInterval + timingService.GetTravelTime())</Display> <Display>@(lastInterval + timingService.GetTravelTime()) |
T @Interval.ToTime(lastInterval + timingService.GetTravelTime())</Display>
</FormDisplayComponent> </FormDisplayComponent>
</div> </div>
<FormDisplayComponent Label="Army units built"> <FormDisplayComponent Label="Army units built">
@ -38,7 +39,10 @@
<style> <style>
.armyView { .armyView {
overflow-y: scroll; width: 100%; overflow-x: hidden; height: 350px; overflow-y: scroll;
width: 100%;
overflow-x: hidden;
height: 350px;
} }
.armyCardsContainer { .armyCardsContainer {
@ -60,6 +64,7 @@
left: -16px; left: -16px;
position: relative; position: relative;
} }
.armyCount { .armyCount {
font-weight: bolder; font-weight: bolder;
} }

9
IGP/Pages/BuildCalculator/Parts/BankComponent.razor

@ -7,7 +7,8 @@
<div class="bankContainer"> <div class="bankContainer">
<FormDisplayComponent Label="Time"> <FormDisplayComponent Label="Time">
<Display>@(BuildOrderService.GetLastRequestInterval() + 1) | T @Interval.ToTime(BuildOrderService.GetLastRequestInterval() + 1)</Display> <Display>@(BuildOrderService.GetLastRequestInterval() + 1) |
T @Interval.ToTime(BuildOrderService.GetLastRequestInterval() + 1)</Display>
</FormDisplayComponent> </FormDisplayComponent>
<div class="bankRow"> <div class="bankRow">
<FormDisplayComponent Label="Alloy"> <FormDisplayComponent Label="Alloy">
@ -62,11 +63,9 @@
@code { @code {
[Inject] [Inject] IBuildOrderService BuildOrderService { get; set; } = default!;
IBuildOrderService BuildOrderService { get; set; } = default!;
[Inject] [Inject] IEconomyService EconomyService { get; set; } = default!;
IEconomyService EconomyService { get; set; } = default!;
EconomyModel _economy = new(); EconomyModel _economy = new();
int _supplyGranted; int _supplyGranted;

10
IGP/Pages/BuildCalculator/Parts/BuildChartComponent.razor

@ -16,7 +16,8 @@ else
var takenPixels = new Dictionary<int, bool>(); var takenPixels = new Dictionary<int, bool>();
<div style="width: @chart.IntervalDisplayMax.ToString()px; height: @chart.ValueDisplayMax.ToString()px"> <div style="width: @chart.IntervalDisplayMax.ToString()px; height: @chart.ValueDisplayMax.ToString()px">
<div style="position: relative; border: 2px solid gray; border-radius:2px; width: @chart.IntervalDisplayMax.ToString()px; height: @chart.ValueDisplayMax.ToString()px"> <div
style="position: relative; border: 2px solid gray; border-radius:2px; width: @chart.IntervalDisplayMax.ToString()px; height: @chart.ValueDisplayMax.ToString()px">
@foreach (var point in chart.Points) @foreach (var point in chart.Points)
{ {
var x = int.Parse(point.GetInterval(chart.HighestIntervalPoint, chart.IntervalDisplayMax)); var x = int.Parse(point.GetInterval(chart.HighestIntervalPoint, chart.IntervalDisplayMax));
@ -31,7 +32,8 @@ else
left:@point.GetInterval(chart.HighestIntervalPoint, chart.IntervalDisplayMax)px; left:@point.GetInterval(chart.HighestIntervalPoint, chart.IntervalDisplayMax)px;
width: 0px; width: 0px;
height: 0px;"> height: 0px;">
<div style="width:1px; height: 1px; border-top-right-radius:10px; border-top-left-radius:10px; border: 2px solid @chart.ChartColor; background-color:@chart.ChartColor"> <div
style="width:1px; height: 1px; border-top-right-radius:10px; border-top-left-radius:10px; border: 2px solid @chart.ChartColor; background-color:@chart.ChartColor">
</div> </div>
</div> </div>
} }
@ -103,7 +105,7 @@ else
} }
int lastRequestedRefreshIndex = 0; int lastRequestedRefreshIndex;
void OnAge(object? sender, ElapsedEventArgs elapsedEventArgs) void OnAge(object? sender, ElapsedEventArgs elapsedEventArgs)
{ {
@ -130,7 +132,7 @@ else
} }
int requestedRefreshIndex = 0; int requestedRefreshIndex;
void OnBuilderOrderChanged() void OnBuilderOrderChanged()
{ {

7
IGP/Pages/BuildCalculator/Parts/EntityClickViewComponent.razor

@ -18,12 +18,15 @@
} }
<style> <style>
.entityClickView { .entityClickView {
overflow-y: scroll; width: 100%; overflow-x: hidden; height: 550px; overflow-y: scroll;
width: 100%;
overflow-x: hidden;
height: 550px;
} }
</style> </style>
@code { @code {
private EntityModel? _entity = default!; private EntityModel? _entity;
private string _viewType = EntityViewType.Detailed; private string _viewType = EntityViewType.Detailed;
protected override void OnInitialized() protected override void OnInitialized()

19
IGP/Pages/BuildCalculator/Parts/HotkeyViewerComponent.razor

@ -22,7 +22,8 @@
var color = (hotkey.KeyText.Equals("SPACE") && KeyService.IsHoldingSpace()) || KeyService.GetAllPressedKeys().Contains(hotkey.KeyText) var color = (hotkey.KeyText.Equals("SPACE") && KeyService.IsHoldingSpace()) || KeyService.GetAllPressedKeys().Contains(hotkey.KeyText)
? "#0a0f12" : hotkey.GetColor(); ? "#0a0f12"
: hotkey.GetColor();
var x = hotkey.PositionX * Size; var x = hotkey.PositionX * Size;
var y = hotkey.PositionY * Size + (hotkey.PositionY == 0 ? 5 : -50); var y = hotkey.PositionY * Size + (hotkey.PositionY == 0 ? 5 : -50);
@ -37,6 +38,7 @@
{ {
border = "5px solid black"; border = "5px solid black";
} }
if (hotkey.KeyText.Equals(controlGroup)) if (hotkey.KeyText.Equals(controlGroup))
{ {
color = "#257525"; color = "#257525";
@ -138,8 +140,7 @@
@code { @code {
[Parameter] [Parameter] public int Size { get; set; } = 100;
public int Size { get; set; } = 100;
readonly Dictionary<string, EntityModel> data = EntityModel.GetDictionary(); readonly Dictionary<string, EntityModel> data = EntityModel.GetDictionary();
readonly List<HotkeyModel> hotkeys = HotkeyModel.GetAll(); readonly List<HotkeyModel> hotkeys = HotkeyModel.GetAll();
@ -163,7 +164,7 @@
BuildOrderService.Unsubscribe(OnBuilderOrderChanged); BuildOrderService.Unsubscribe(OnBuilderOrderChanged);
} }
int completedTimeCount = 0; int completedTimeCount;
void OnBuilderOrderChanged() void OnBuilderOrderChanged()
{ {
@ -237,6 +238,7 @@
{ {
return false; return false;
} }
return true; return true;
} }
@ -256,6 +258,7 @@
{ {
return false; return false;
} }
return true; return true;
} }
@ -265,6 +268,7 @@
{ {
return false; return false;
} }
return true; return true;
} }
@ -274,6 +278,7 @@
{ {
return false; return false;
} }
return true; return true;
} }
@ -286,26 +291,32 @@
{ {
controlGroup = "Z"; controlGroup = "Z";
} }
if (KeyService.GetAllPressedKeys().Contains("TAB")) if (KeyService.GetAllPressedKeys().Contains("TAB"))
{ {
controlGroup = "TAB"; controlGroup = "TAB";
} }
if (KeyService.GetAllPressedKeys().Contains("C")) if (KeyService.GetAllPressedKeys().Contains("C"))
{ {
controlGroup = "C"; controlGroup = "C";
} }
if (KeyService.GetAllPressedKeys().Contains("D")) if (KeyService.GetAllPressedKeys().Contains("D"))
{ {
controlGroup = "D"; controlGroup = "D";
} }
if (KeyService.GetAllPressedKeys().Contains("V")) if (KeyService.GetAllPressedKeys().Contains("V"))
{ {
controlGroup = "V"; controlGroup = "V";
} }
if (KeyService.GetAllPressedKeys().Contains("ALT")) if (KeyService.GetAllPressedKeys().Contains("ALT"))
{ {
controlGroup = "ALT"; controlGroup = "ALT";
} }
if (KeyService.GetAllPressedKeys().Contains("SHIFT")) if (KeyService.GetAllPressedKeys().Contains("SHIFT"))
{ {
controlGroup = "SHIFT"; controlGroup = "SHIFT";

3
IGP/Pages/BuildCalculator/Parts/InputPanelComponent.razor

@ -16,8 +16,7 @@
@code { @code {
[Parameter] [Parameter] public RenderFragment ChildContent { get; set; } = default!;
public RenderFragment ChildContent { get; set; } = default!;
private void HandleKeyDown(KeyboardEventArgs e) private void HandleKeyDown(KeyboardEventArgs e)
{ {

4
IGP/Pages/BuildCalculator/Parts/OptionsComponent.razor

@ -12,7 +12,9 @@
Value="BuildDelay" Value="BuildDelay"
OnChange="@OnBuildingInputDelayChanged"> OnChange="@OnBuildingInputDelayChanged">
<FormLabelComponent>Building Input Delay</FormLabelComponent> <FormLabelComponent>Building Input Delay</FormLabelComponent>
<FormInfoComponent>Add a input delay to constructing buildings for simulating worker movement and player micro.</FormInfoComponent> <FormInfoComponent>Add a input delay to constructing buildings for simulating worker movement and player
micro.
</FormInfoComponent>
</FormNumberComponent> </FormNumberComponent>
<div class="optionRow"> <div class="optionRow">
<FormLayoutComponent> <FormLayoutComponent>

3
IGP/Pages/ContactPage.razor

@ -14,7 +14,8 @@
How do I contact you for feature requests and bug reports? How do I contact you for feature requests and bug reports?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
You can message me at <b>JonathanMcCaffrey#3544</b> on my <a href="https://discord.gg/uMq8bMGeeN" target="_blank">Discord</a> channel. You can message me at <b>JonathanMcCaffrey#3544</b> on my <a href="https://discord.gg/uMq8bMGeeN"
target="_blank">Discord</a> channel.
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
</PaperComponent> </PaperComponent>

393
IGP/Pages/DataTables/DataTablesPage.razor

@ -0,0 +1,393 @@
@layout PageLayout
@inject IDataCollectionService DataCollectionService
@using Model
@inherits BasePage
@page "/data-tables"
<LayoutMediumContentComponent>
<WebsiteTitleComponent>Comparision Tables</WebsiteTitleComponent>
<PaperComponent>
Credit to Zard for deriving the formula.
</PaperComponent>
<PaperComponent>
<LayoutRowComponent>
<LayoutColumnComponent>
<FormLayoutComponent>
<FormDisplayComponent Label="Cost of worker">
<Display>@CostOfWorker</Display>
</FormDisplayComponent>
<FormDisplayComponent Label="Alloy mined per second by worker">
<Display>@AlloyMinedPerSecondByWorker</Display>
</FormDisplayComponent>
<FormDisplayComponent Label="Time to produce worker">
<Display>@TimeToProduceWorker</Display>
</FormDisplayComponent>
</FormLayoutComponent>
</LayoutColumnComponent>
<LayoutColumnComponent>
<FormLayoutComponent>
<FormNumberComponent Min="1"
Id="numberOfWorkersLostToHarass"
Value="@((int)NumberOfWorkersLostToHarass)"
OnChange="@(e =>
{
NumberOfWorkersLostToHarass = int.Parse(e.Value!.ToString()!);
Calculate();
})">
<FormLabelComponent>Number of workers lost to harass</FormLabelComponent>
</FormNumberComponent>
<FormNumberComponent Min="1"
Id="numberOfTownHallsExisting"
Value="@((int)NumberOfTownHallsExisting)"
OnChange="OnTownHallsChanged">
<FormLabelComponent>Number of townhalls you have</FormLabelComponent>
</FormNumberComponent>
<div id="numberOfTownHallTravelTimes">
@{
var index = 0;
}
@foreach (var travelTime in TravelTimes)
{
index++;
if (index == 1)
{
continue;
}
var id = $"numberOfTownHallsExisting_{index}";
<FormNumberComponent Min="0"
Id="@id"
Value="@((int)travelTime.Value)"
OnChange="e => { OnTownHallTravelTimeChanged(e, travelTime); }">
<FormLabelComponent>Worker travel time from other
base @(travelTime.Index + 1)</FormLabelComponent>
</FormNumberComponent>
}
</div>
<FormDisplayComponent Label="Total alloy lost">
<Display>
<div style="font-size: 1.5rem; font-weight: 800;">
<span id="totalAlloyHarassment">
@TotalAlloyHarassment
</span>
</div>
</Display>
</FormDisplayComponent>
</FormLayoutComponent>
<br/>
<div>
(<b>Worker replacement costs:</b> <span id="workerReplacementCost">@WorkerReplacementCost()</span>)
</div>
<div>
(<b>Delayed mining time:</b> <span id="delayedMiningCost">@DelayedMiningCost()</span>)
</div>
<div>
(<b>Average travel time:</b> <span id="getAverageTravelTime">@GetAverageTravelTime()</span>)
</div>
</LayoutColumnComponent>
</LayoutRowComponent>
</PaperComponent>
<ContentDividerComponent></ContentDividerComponent>
<PaperComponent>
<InfoBodyComponent>
<InfoQuestionComponent>
What is this tool?
</InfoQuestionComponent>
<InfoAnswerComponent>
The Harass Calculator allows you to calculate damage done to an enemy alloy line. For example, if you
were to attack with Ichors, and kill 6 enemy workers, you can set the
<b>
Number of workers lost to
harass
</b> to 6. This would determine a loss of <span id="exampleTotalAlloyLoss">@ExampleTotalAlloyLoss</span>
alloy. Quite
the large number.
</InfoAnswerComponent>
</InfoBodyComponent>
<InfoBodyComponent>
<InfoQuestionComponent>
What can I learn from this?
</InfoQuestionComponent>
<InfoAnswerComponent>
Well, let's assume you lost a full alloy line of workers, and have to take that
@ExampleTotalAlloyLoss alloy cost (<span id="exampleWorkerCost">@ExampleWorkerCost</span>
to rebuy the workers, and <span id="exampleMiningTimeCost">@ExampleMiningTimeCost</span> in lost mining
time.)
<br/><br/>
If you were to set the <b>Number of townhalls you have</b> to 2, the calculator will consider worker
transfer micro. Allowing you to cut the total cost by roughly
<span id="exampleTotalAlloyLossDifference">@ExampleTotalAlloyLossDifference</span> alloy. However, that
number isn't
entirely accurate, you are also going to have to bump up the <b>Worker travel time to alloy</b> to
account for the time it takes the transferred workers to arrive at the decimated alloy line.
<br/><br/>
Let's say it takes 10 seconds for workers to transfer from your second base. Let's enter that for the
second base travel time for the more accurate loss of
<span
id="exampleTotalAlloyLossAccurate">
@ExampleTotalAlloyLossAccurate
</span> alloy
(saving you <span
id="exampleTotalAlloyLossAccurateDifference">@ExampleTotalAlloyLossAccurateDifference</span> alloy.)
<i>
Which is
much better than not transferring workers!
</i>
</InfoAnswerComponent>
</InfoBodyComponent>
<InfoBodyComponent>
<InfoQuestionComponent>
Can I see the formula for the calculation?
</InfoQuestionComponent>
<InfoAnswerComponent>
The Harass Calculator is based on the following calculation.
<br/>
<div class="mathContainer">
<div> =c*m+r*g*(t+l) +</div>
<MathLoopSumComponent>
<LoopStart><i>x</i> =1</LoopStart>
<LoopEnd>
<MathDivisionComponent>
<Dividee>m</Dividee>
<Divider>a</Divider>
</MathDivisionComponent>
</LoopEnd>
<IndexSymbol>
<i>x</i>
</IndexSymbol>
</MathLoopSumComponent>
<div style="width: 132px">g*<i>x</i>*(t+l)</div>
</div>
<br/>
<div style="font-family:monospace;">
<div>c is CostOfWorker</div>
<div>m is NumberOfWorkersLostToHarass, <i>m for [M]otes</i></div>
<div>a is NumberOfTownHallsExisting, <i>a for [A]cropolis</i></div>
<div>r is m mod a is LeftOverWorkersToProduceCount()</div>
<div>g is AlloyMinedPerSecondByWorker</div>
<div>t is TimeToProduceWorker</div>
<div>l is TravelTime</div>
<div><i>x</i> is workerProductionIndex</div>
</div>
<br/>
This logic has since been changed slightly to allow client to enter different travel times per base.
<br/>
</InfoAnswerComponent>
</InfoBodyComponent>
<InfoBodyComponent>
<InfoQuestionComponent>
Can I see the code for the calculation?
</InfoQuestionComponent>
<InfoAnswerComponent>
<br/>
<LinkButtonComponent
Href="https://git.jonathanmccaffrey.ca/JonathanMcCaffrey/IGP-Fan-Reference/src/branch/main/IGP/Pages/HarassCalculatorPage.razor#L226">
View Here
</LinkButtonComponent>
</InfoAnswerComponent>
</InfoBodyComponent>
</PaperComponent>
</LayoutMediumContentComponent>
<style>
.mathContainer {
font-family: monospace;
display: flex;
flex-direction: row;
align-items: flex-start;
border: 1px black solid;
padding: 32px;
background-color: #1A1B1E
}
@@media only screen and (max-width: 1025px) {
.mathContainer {
padding-left: 2px;
padding-right: 2px;
}
}
</style>
@code {
// Example calcs
float ExampleTotalAlloyLoss => Calculate(
WorkerReplacementCost(6),
SimultaneousProductionFloor(1, 6),
6,
new List<float> { 0 });
float ExampleWorkerCost => WorkerReplacementCost(6);
float ExampleMiningTimeCost => ExampleTotalAlloyLoss - ExampleWorkerCost;
float ExampleTotalAlloyLossDifference => ExampleTotalAlloyLoss - Calculate(
WorkerReplacementCost(6),
SimultaneousProductionFloor(2, 6),
6,
new List<float> { 0, 0 });
float ExampleTotalAlloyLossAccurate => Calculate(
WorkerReplacementCost(6),
SimultaneousProductionFloor(2, 6),
6,
new List<float> { 0, 10 });
float ExampleTotalAlloyLossAccurateDifference => ExampleTotalAlloyLoss - ExampleTotalAlloyLossAccurate;
float TotalAlloyHarassment;
readonly float CostOfWorker = 50;
readonly float AlloyMinedPerSecondByWorker = 1;
readonly float TimeToProduceWorker = 20;
float NumberOfWorkersLostToHarass = 1;
float NumberOfTownHallsExisting = 1;
float GetAverageTravelTime()
{
if (TravelTimes.Count == 0)
{
return 0;
}
float sum = 0;
foreach (var travelTime in TravelTimes)
{
sum += travelTime.Value;
}
return sum / NumberOfTownHallsExisting;
}
float SimultaneousProductionFloor()
{
if (NumberOfTownHallsExisting <= 0 || NumberOfWorkersLostToHarass <= 0)
{
return 0;
}
return NumberOfWorkersLostToHarass / Math.Min(NumberOfTownHallsExisting, NumberOfWorkersLostToHarass);
}
float SimultaneousProductionFloor(float existingTownHalls, float numberOfWorkersLost)
{
if (existingTownHalls <= 0 || numberOfWorkersLost <= 0)
{
return 0;
}
return numberOfWorkersLost / Math.Min(existingTownHalls, numberOfWorkersLost);
}
float WorkerReplacementCost()
{
return CostOfWorker * NumberOfWorkersLostToHarass;
}
float WorkerReplacementCost(int numberOfWorkersLostToHarass)
{
return CostOfWorker * numberOfWorkersLostToHarass;
}
float DelayedMiningCost()
{
return TotalAlloyHarassment - WorkerReplacementCost();
}
void Calculate()
{
TotalAlloyHarassment = Calculate(WorkerReplacementCost(),
SimultaneousProductionFloor(),
NumberOfWorkersLostToHarass,
TravelTimes.Select(x => x.Value).ToList(),
TimeToProduceWorker,
AlloyMinedPerSecondByWorker);
}
float Calculate(float workerReplacementCost,
float simultaneousProductionFloor,
float numberOfWorkersLostToHarass,
IList<float> travelTimes,
float timeToProduceWorker = 20,
float alloyMinedPerSecondByWorker = 1)
{
var totalAlloyHarassment = workerReplacementCost;
for (var workerProductionIndex = 0; workerProductionIndex < simultaneousProductionFloor; workerProductionIndex++)
{
totalAlloyHarassment += alloyMinedPerSecondByWorker * timeToProduceWorker * (workerProductionIndex + 1);
}
var remainder = (int)(numberOfWorkersLostToHarass % simultaneousProductionFloor);
for (var remainderIndex = 0; remainderIndex < remainder; remainderIndex++)
{
totalAlloyHarassment += alloyMinedPerSecondByWorker * timeToProduceWorker * (simultaneousProductionFloor + 1);
}
for (var travelTimeIndex = 0; travelTimeIndex < numberOfWorkersLostToHarass; travelTimeIndex++)
{
var townHallIndex = travelTimeIndex % travelTimes.Count;
totalAlloyHarassment += alloyMinedPerSecondByWorker * travelTimes[townHallIndex];
}
return totalAlloyHarassment;
}
protected override void OnInitialized()
{
base.OnInitialized();
Calculate();
}
public List<TravelTime> TravelTimes { get; set; } = new() { new TravelTime(0, 0) };
private void OnTownHallsChanged(ChangeEventArgs obj)
{
NumberOfTownHallsExisting = int.Parse(obj.Value!.ToString()!);
while (TravelTimes.Count > NumberOfTownHallsExisting)
TravelTimes.Remove(TravelTimes.Last());
while (TravelTimes.Count < NumberOfTownHallsExisting)
TravelTimes.Add(new TravelTime(TravelTimes.Count, 10 * TravelTimes.Count));
Calculate();
}
private void OnTownHallTravelTimeChanged(ChangeEventArgs obj, TravelTime travelTime)
{
travelTime.Value = (int)obj.Value!;
Calculate();
StateHasChanged();
}
}

5
IGP/Pages/DataTables/Parts/UnitTable.razor

@ -0,0 +1,5 @@
<h3>UnitTable</h3>
@code {
}

23
IGP/Pages/DataTables/Parts/WeaponTable.razor

@ -0,0 +1,23 @@
<h3>WeaponTable</h3>
<MudDataGrid Items="@_entityWeapons.Take(4)">
<Columns>
<PropertyColumn Property="x => x.Range" Title="Nr"/>
</Columns>
</MudDataGrid>
@code {
List<EntityWeaponModel> _entityWeapons;
protected override void OnInitialized()
{
base.OnInitialized();
_entityWeapons = DATA.Get()
.SelectMany(e => e.Value.EntityParts)
.OfType<EntityWeaponModel>()
.ToList();
}
}

17
IGP/Pages/Database/DatabasePage.razor

@ -20,7 +20,9 @@
</PaperComponent> </PaperComponent>
<div style="margin-left: 8px"> <div style="margin-left: 8px">
<ButtonGroupComponent OnClick="choice => { EntityDisplayService.SetDisplayType(choice); }" Choice="@EntityDisplayService.GetDisplayType()" Choices="@EntityDisplayService.DefaultChoices()"></ButtonGroupComponent> <ButtonGroupComponent OnClick="choice => { EntityDisplayService.SetDisplayType(choice); }"
Choice="@EntityDisplayService.GetDisplayType()"
Choices="@EntityDisplayService.DefaultChoices()"></ButtonGroupComponent>
</div> </div>
<PaperComponent> <PaperComponent>
@ -50,7 +52,8 @@
What is this tool? What is this tool?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
This is a reference database. Mostly so unit stats can be reviewed outside of the game, IMMORTAL: Gates of Pyre. This is a reference database. Mostly so unit stats can be reviewed outside of the game, IMMORTAL: Gates
of Pyre.
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
@ -59,7 +62,8 @@
Is this database complete? Is this database complete?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
No. A lot of content is missing, that needs to be manually transfered from screenshots of IMMORTAL: Gates of Pyre. This will happen slowly over-time. No. A lot of content is missing, that needs to be manually transfered from screenshots of IMMORTAL:
Gates of Pyre. This will happen slowly over-time.
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
@ -68,7 +72,9 @@
Is this database updated to the latest version? Is this database updated to the latest version?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
Maybe. Check this <b>@VariableService.Variables["GamePatch"]</b> version number, and compare it to the number on discord, in the <b>#game-updates</b> channel. That should give a general sense of how out of date the data is. Maybe. Check this <b>@VariableService.Variables["GamePatch"]</b> version number, and compare it to the
number on discord, in the <b>#game-updates</b> channel. That should give a general sense of how out of
date the data is.
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
@ -115,8 +121,7 @@
@code { @code {
[Inject] [Inject] public IEntityFilterService EntityFilterService { get; set; } = default!;
public IEntityFilterService EntityFilterService { get; set; } = default!;
readonly List<EntityModel> defaults = (from entity in EntityModel.GetList() readonly List<EntityModel> defaults = (from entity in EntityModel.GetList()
where entity.IsSpeculative == false where entity.IsSpeculative == false

7
IGP/Pages/Database/DatabaseSinglePage.razor

@ -20,7 +20,9 @@
</PaperComponent> </PaperComponent>
<div style="margin-left: 8px"> <div style="margin-left: 8px">
<ButtonGroupComponent OnClick="choice => { EntityDisplayService.SetDisplayType(choice); }" Choice="@EntityDisplayService.GetDisplayType()" Choices="@EntityDisplayService.DefaultChoices()"></ButtonGroupComponent> <ButtonGroupComponent OnClick="choice => { EntityDisplayService.SetDisplayType(choice); }"
Choice="@EntityDisplayService.GetDisplayType()"
Choices="@EntityDisplayService.DefaultChoices()"></ButtonGroupComponent>
</div> </div>
@ -61,8 +63,7 @@
@code { @code {
[Parameter] [Parameter] public string? Text { get; set; }
public string? Text { get; set; }
private EntityModel? _entity; private EntityModel? _entity;

6
IGP/Pages/Database/Entity/EntityViewComponent.razor

@ -49,10 +49,8 @@
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; }
[CascadingParameter] [CascadingParameter] public string? StyleType { get; set; }
public string? StyleType { get; set; }
} }

15
IGP/Pages/Database/Entity/Parts/EntityAbilitiesComponent.razor

@ -33,18 +33,21 @@
<b>- Energy: </b> @production.Energy <b>- Energy: </b> @production.Energy
</div> </div>
} }
@if (!production.DefensiveLayer.Equals(0)) @if (!production.DefensiveLayer.Equals(0))
{ {
<div> <div>
<b>- Shields:</b> @production.DefensiveLayer <b>- Shields:</b> @production.DefensiveLayer
</div> </div>
} }
if (production.BuildTime != 0) if (production.BuildTime != 0)
{ {
<div> <div>
<b>- BuildTime: </b> @production.BuildTime <b>- BuildTime: </b> @production.BuildTime
</div> </div>
} }
if (production.Cooldown != 0) if (production.Cooldown != 0)
{ {
<div> <div>
@ -68,7 +71,8 @@
<div> <div>
<div> <div>
<b>Name:</b> <EntityLabelComponent EntityId="@spell.DataType"/> <b>Name:</b>
<EntityLabelComponent EntityId="@spell.DataType"/>
</div> </div>
<div> <div>
<b>Description:</b> @((MarkupString)info.Description) <b>Description:</b> @((MarkupString)info.Description)
@ -90,18 +94,21 @@
<b> Energy: </b> @production.Energy <b> Energy: </b> @production.Energy
</div> </div>
} }
@if (!production.DefensiveLayer.Equals(0)) @if (!production.DefensiveLayer.Equals(0))
{ {
<div> <div>
<b>Shields:</b> @production.DefensiveLayer <b>Shields:</b> @production.DefensiveLayer
</div> </div>
} }
if (production.BuildTime != 0) if (production.BuildTime != 0)
{ {
<div> <div>
<b> BuildTime: </b> @production.BuildTime <b> BuildTime: </b> @production.BuildTime
</div> </div>
} }
if (production.Cooldown != 0) if (production.Cooldown != 0)
{ {
<div> <div>
@ -119,11 +126,9 @@
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; } = default!;
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
} }

6
IGP/Pages/Database/Entity/Parts/EntityHeaderComponent.razor

@ -53,11 +53,9 @@ else
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; } = default!;
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
} }

6
IGP/Pages/Database/Entity/Parts/EntityInfoComponent.razor

@ -117,10 +117,8 @@ else
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; } = default!;
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
} }

6
IGP/Pages/Database/Entity/Parts/EntityMechanicsComponent.razor

@ -23,10 +23,8 @@
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; } = default!;
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
} }

9
IGP/Pages/Database/Entity/Parts/EntityPassivesComponent.razor

@ -77,7 +77,8 @@
<div> <div>
<div> <div>
<b>Name:</b> <EntityLabelComponent EntityId="@passive.DataType"/> <b>Name:</b>
<EntityLabelComponent EntityId="@passive.DataType"/>
</div> </div>
<div> <div>
<b>Description:</b> @((MarkupString)info.Description) <b>Description:</b> @((MarkupString)info.Description)
@ -130,11 +131,9 @@
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; } = default!;
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
} }

10
IGP/Pages/Database/Entity/Parts/EntityProductionComponent.razor

@ -72,6 +72,7 @@
} }
</div> </div>
} }
@if (Supply != null) @if (Supply != null)
{ {
<div> <div>
@ -103,7 +104,8 @@
<div> <div>
<span> <span>
<b>@requirement.Requirement.Replace("_", " "):</b> <EntityLabelComponent EntityId="@requirement.Id"/> <b>@requirement.Requirement.Replace("_", " "):</b> <EntityLabelComponent
EntityId="@requirement.Id"/>
</span> </span>
</div> </div>
} }
@ -203,12 +205,10 @@
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; }
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
private EntityProductionModel Production => Entity!.Production(); private EntityProductionModel Production => Entity!.Production();

13
IGP/Pages/Database/Entity/Parts/EntityPyreSpellsComponent.razor

@ -24,11 +24,13 @@
<b>- Pyre: </b> <b>- Pyre: </b>
@production.Pyre @production.Pyre
} }
if (production.BuildTime != 0) if (production.BuildTime != 0)
{ {
<b>- BuildTime: </b> <b>- BuildTime: </b>
@production.BuildTime @production.BuildTime
} }
if (production.Cooldown != 0) if (production.Cooldown != 0)
{ {
<b>- Cooldown: </b> <b>- Cooldown: </b>
@ -51,7 +53,8 @@
<div> <div>
<div> <div>
<b>Name:</b> <EntityLabelComponent EntityId="@spell.DataType"/> <b>Name:</b>
<EntityLabelComponent EntityId="@spell.DataType"/>
</div> </div>
<div> <div>
<b>Description:</b> @((MarkupString)info.Description) <b>Description:</b> @((MarkupString)info.Description)
@ -64,11 +67,13 @@
<b> Pyre: </b> <b> Pyre: </b>
@production.Pyre @production.Pyre
} }
if (production.BuildTime != 0) if (production.BuildTime != 0)
{ {
<b> BuildTime: </b> <b> BuildTime: </b>
@production.BuildTime @production.BuildTime
} }
if (production.Cooldown != 0) if (production.Cooldown != 0)
{ {
<b> Cooldown: </b> <b> Cooldown: </b>
@ -85,11 +90,9 @@
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; } = default!;
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
} }

6
IGP/Pages/Database/Entity/Parts/EntityStatsComponent.razor

@ -169,12 +169,10 @@
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; } = default!;
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
private EntityVitalityModel Vitality => Entity!.Vitality(); private EntityVitalityModel Vitality => Entity!.Vitality();

9
IGP/Pages/Database/Entity/Parts/EntityUpgradesComponent.razor

@ -24,7 +24,8 @@
var entity = EntityModel.Get(upgradeId.Id); var entity = EntityModel.Get(upgradeId.Id);
<div> <div>
<div> <div>
<b>Name:</b> <EntityLabelComponent EntityId="@entity.DataType"/> <b>Name:</b>
<EntityLabelComponent EntityId="@entity.DataType"/>
</div> </div>
<div> <div>
<b>Description:</b> @entity.Info().Description <b>Description:</b> @entity.Info().Description
@ -54,11 +55,9 @@
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; } = default!;
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
} }

13
IGP/Pages/Database/Entity/Parts/EntityVanguardAddedComponent.razor

@ -22,12 +22,14 @@
<EntityDisplayComponent Title="Vanguard"> <EntityDisplayComponent Title="Vanguard">
<div> <div>
<div> <div>
<b>Immortal:</b> <EntityLabelComponent EntityId="@immortal.DataType"/> <b>Immortal:</b>
<EntityLabelComponent EntityId="@immortal.DataType"/>
</div> </div>
@if (!Vanguard.ReplaceId.Equals("")) @if (!Vanguard.ReplaceId.Equals(""))
{ {
<div> <div>
<b>Replaces:</b> <EntityLabelComponent EntityId="@Vanguard.ReplaceId"></EntityLabelComponent> <b>Replaces:</b>
<EntityLabelComponent EntityId="@Vanguard.ReplaceId"></EntityLabelComponent>
</div> </div>
} }
</div> </div>
@ -37,14 +39,11 @@
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; } = default!;
private EntityVanguardAddedModel? Vanguard => Entity?.VanguardAdded(); private EntityVanguardAddedModel? Vanguard => Entity?.VanguardAdded();
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
} }

15
IGP/Pages/Database/Entity/Parts/EntityVanguardsComponent.razor

@ -44,13 +44,16 @@
<div> <div>
<div> <div>
<b>Name:</b> <EntityLabelComponent EntityId="@entity.DataType"/> <b>Name:</b>
<EntityLabelComponent EntityId="@entity.DataType"/>
</div> </div>
<div> <div>
<b>Replaces:</b> <EntityLabelComponent EntityId="@vanguard.ReplaceId"/> <b>Replaces:</b>
<EntityLabelComponent EntityId="@vanguard.ReplaceId"/>
</div> </div>
<div> <div>
<b>Built From:</b> <EntityLabelComponent EntityId="@productionBuilding"/> <b>Built From:</b>
<EntityLabelComponent EntityId="@productionBuilding"/>
</div> </div>
</div> </div>
} }
@ -60,11 +63,9 @@
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; } = default!;
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
} }

12
IGP/Pages/Database/Entity/Parts/EntityWeaponsComponent.razor

@ -91,12 +91,14 @@
<i>- Light DPS: @(Math.Round(data.LightDamage * data.AttacksPerSecond))</i>&nbsp; <i>- Light DPS: @(Math.Round(data.LightDamage * data.AttacksPerSecond))</i>&nbsp;
</span> </span>
} }
@if (data.MediumDamage != 0) @if (data.MediumDamage != 0)
{ {
<span> <span>
<i>- Medium DPS: @(Math.Round(data.MediumDamage * data.AttacksPerSecond))</i>&nbsp; <i>- Medium DPS: @(Math.Round(data.MediumDamage * data.AttacksPerSecond))</i>&nbsp;
</span> </span>
} }
@if (data.HeavyDamage != 0) @if (data.HeavyDamage != 0)
{ {
<span> <span>
@ -188,12 +190,14 @@
<i>Light DPS: @(Math.Round(data.LightDamage * data.AttacksPerSecond))</i>&nbsp; <i>Light DPS: @(Math.Round(data.LightDamage * data.AttacksPerSecond))</i>&nbsp;
</div> </div>
} }
@if (data.MediumDamage != 0) @if (data.MediumDamage != 0)
{ {
<div> <div>
<i>Medium DPS: @(Math.Round(data.MediumDamage * data.AttacksPerSecond))</i>&nbsp; <i>Medium DPS: @(Math.Round(data.MediumDamage * data.AttacksPerSecond))</i>&nbsp;
</div> </div>
} }
@if (data.HeavyDamage != 0) @if (data.HeavyDamage != 0)
{ {
<div> <div>
@ -232,14 +236,12 @@
@code { @code {
[CascadingParameter] [CascadingParameter] public EntityModel? Entity { get; set; }
public EntityModel? Entity { get; set; } = default!;
[CascadingParameter] [CascadingParameter] public string StyleType { get; set; } = "Detailed";
public string StyleType { get; set; } = "Detailed";
private bool _isDynamicFormatting = false; private bool _isDynamicFormatting;
protected override void OnInitialized() protected override void OnInitialized()
{ {

14
IGP/Pages/Database/Parts/EntityFilterComponent.razor

@ -9,6 +9,7 @@
{ {
styleClass = "selected"; styleClass = "selected";
} }
<button @onclick="@(e => OnChangeFaction(choice))" <button @onclick="@(e => OnChangeFaction(choice))"
class="choiceButton @styleClass"> class="choiceButton @styleClass">
@(choice == DataType.Any @(choice == DataType.Any
@ -30,7 +31,9 @@
{ {
styleClass = "selected"; styleClass = "selected";
} }
<button class="choiceButton @styleClass" @onclick="@(e => OnChangeImmortal(choice))">@name</button>
<button class="choiceButton @styleClass"
@onclick="@(e => OnChangeImmortal(choice))">@name</button>
} }
</div> </div>
} }
@ -44,10 +47,12 @@
styleClass = "selected"; styleClass = "selected";
} }
<button class="choiceButton @styleClass" @onclick="@(e => OnChangeEntity(choice))">@choice.Replace("_", " ")</button> <button class="choiceButton @styleClass"
@onclick="@(e => OnChangeEntity(choice))">@choice.Replace("_", " ")</button>
} }
</div> </div>
<FormTextComponent Id="filterName" Label="Filter Name" Placeholder="Throne..." OnChange="@(e => EntityFilterService.EnterSearchText(e.Value!.ToString()!))"/> <FormTextComponent Id="filterName" Label="Filter Name" Placeholder="Throne..."
OnChange="@(e => EntityFilterService.EnterSearchText(e.Value!.ToString()!))"/>
</div> </div>
</div> </div>
@ -209,8 +214,7 @@
@code { @code {
[Inject] [Inject] public IEntityFilterService EntityFilterService { get; set; } = default!;
public IEntityFilterService EntityFilterService { get; set; } = default!;
protected override void OnInitialized() protected override void OnInitialized()
{ {

4
IGP/Pages/Documentation/Parts/DocumentComponent.razor

@ -47,6 +47,7 @@ else
padding: 8px; padding: 8px;
border: 1px solid gray; border: 1px solid gray;
} }
td { td {
padding: 8px; padding: 8px;
border: 1px solid gray; border: 1px solid gray;
@ -55,8 +56,7 @@ else
@code { @code {
[Parameter] [Parameter] public DocContentModel DocContentModel { get; set; } = default!;
public DocContentModel DocContentModel { get; set; } = default!;
DocFrontMatterModel docFrontMatter = null!; DocFrontMatterModel docFrontMatter = null!;
private string? content; private string? content;

8
IGP/Pages/EconomyComparison/Parts/ChartComponent.razor

@ -13,7 +13,8 @@
index++; index++;
<div style="width: 0; height: @chart.ValueDisplayMax.ToString()px"> <div style="width: 0; height: @chart.ValueDisplayMax.ToString()px">
<div style="left: calc(-@width.ToString()px / 2); position: relative; border: 2px solid gray; border-radius:2px; width: @chart.IntervalDisplayMax.ToString()px; height: @chart.ValueDisplayMax.ToString()px"> <div
style="left: calc(-@width.ToString()px / 2); position: relative; border: 2px solid gray; border-radius:2px; width: @chart.IntervalDisplayMax.ToString()px; height: @chart.ValueDisplayMax.ToString()px">
@foreach (var point in chart.Points) @foreach (var point in chart.Points)
{ {
var xCoord = point.GetInterval(chart.HighestIntervalPoint, chart.IntervalDisplayMax); var xCoord = point.GetInterval(chart.HighestIntervalPoint, chart.IntervalDisplayMax);
@ -28,7 +29,8 @@
left:@point.GetInterval(chart.HighestIntervalPoint, chart.IntervalDisplayMax)px; left:@point.GetInterval(chart.HighestIntervalPoint, chart.IntervalDisplayMax)px;
width: 0px; width: 0px;
height: 0px;"> height: 0px;">
<div style="width:1px; height: 1px; border-top-right-radius:10px; border-top-left-radius:10px; border: 2px solid @chart.ChartColor; background-color:@chart.ChartColor"> <div
style="width:1px; height: 1px; border-top-right-radius:10px; border-top-left-radius:10px; border: 2px solid @chart.ChartColor; background-color:@chart.ChartColor">
</div> </div>
</div> </div>
} }
@ -57,7 +59,7 @@
private List<ChartModel> charts = new(); private List<ChartModel> charts = new();
float highestAlloyPoint = 0; float highestAlloyPoint;
protected override void OnInitialized() protected override void OnInitialized()

10
IGP/Pages/EconomyComparison/Parts/EconomyDifferenceComponent.razor

@ -62,13 +62,13 @@
</style> </style>
@code { @code {
private int StartingAdvantageAtTime = 0; private int StartingAdvantageAtTime;
private int PeakAdvantageByAlloy = 0; private int PeakAdvantageByAlloy;
private int PeakAdvantageAtTime = 0; private int PeakAdvantageAtTime;
private int WorseningTime = 0; private int WorseningTime;
private int MiracleTime = 0; private int MiracleTime;
protected override void OnInitialized() protected override void OnInitialized()
{ {

3
IGP/Pages/EconomyComparison/Parts/EconomyInputComponent.razor

@ -39,8 +39,7 @@
@code { @code {
[Parameter] [Parameter] public int ForPlayer { get; set; }
public int ForPlayer { get; set; }
private int TownHallCount => economyComparisonService.GetTownHallCount(ForPlayer); private int TownHallCount => economyComparisonService.GetTownHallCount(ForPlayer);
private string ChartColor => economyComparisonService.GetColor(ForPlayer); private string ChartColor => economyComparisonService.GetColor(ForPlayer);

32
IGP/Pages/HarassCalculatorPage.razor

@ -36,7 +36,11 @@
<FormNumberComponent Min="1" <FormNumberComponent Min="1"
Id="numberOfWorkersLostToHarass" Id="numberOfWorkersLostToHarass"
Value="@((int)NumberOfWorkersLostToHarass)" Value="@((int)NumberOfWorkersLostToHarass)"
OnChange="@(e => { NumberOfWorkersLostToHarass = int.Parse(e.Value!.ToString()!); Calculate();})"> OnChange="@(e =>
{
NumberOfWorkersLostToHarass = int.Parse(e.Value!.ToString()!);
Calculate();
})">
<FormLabelComponent>Number of workers lost to harass</FormLabelComponent> <FormLabelComponent>Number of workers lost to harass</FormLabelComponent>
</FormNumberComponent> </FormNumberComponent>
@ -58,12 +62,14 @@
{ {
continue; continue;
} }
var id = $"numberOfTownHallsExisting_{index}"; var id = $"numberOfTownHallsExisting_{index}";
<FormNumberComponent Min="0" <FormNumberComponent Min="0"
Id="@id" Id="@id"
Value="@((int)travelTime.Value)" Value="@((int)travelTime.Value)"
OnChange="e => { OnTownHallTravelTimeChanged(e, travelTime); }"> OnChange="e => { OnTownHallTravelTimeChanged(e, travelTime); }">
<FormLabelComponent>Worker travel time from other base @(travelTime.Index + 1)</FormLabelComponent> <FormLabelComponent>Worker travel time from other
base @(travelTime.Index + 1)</FormLabelComponent>
</FormNumberComponent> </FormNumberComponent>
} }
</div> </div>
@ -110,7 +116,8 @@
<b> <b>
Number of workers lost to Number of workers lost to
harass harass
</b> to 6. This would determine a loss of <span id="exampleTotalAlloyLoss">@ExampleTotalAlloyLoss</span> alloy. Quite </b> to 6. This would determine a loss of <span id="exampleTotalAlloyLoss">@ExampleTotalAlloyLoss</span>
alloy. Quite
the large number. the large number.
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
@ -127,8 +134,10 @@
<br/><br/> <br/><br/>
If you were to set the <b>Number of townhalls you have</b> to 2, the calculator will consider worker If you were to set the <b>Number of townhalls you have</b> to 2, the calculator will consider worker
transfer micro. Allowing you to cut the total cost by roughly transfer micro. Allowing you to cut the total cost by roughly
<span id="exampleTotalAlloyLossDifference">@ExampleTotalAlloyLossDifference</span> alloy. However, that number isn't <span id="exampleTotalAlloyLossDifference">@ExampleTotalAlloyLossDifference</span> alloy. However, that
entirely accurate, you are also going to have to bump up the <b>Worker travel time to alloy</b> to account for the time it takes the transferred workers to arrive at the decimated alloy line. number isn't
entirely accurate, you are also going to have to bump up the <b>Worker travel time to alloy</b> to
account for the time it takes the transferred workers to arrive at the decimated alloy line.
<br/><br/> <br/><br/>
Let's say it takes 10 seconds for workers to transfer from your second base. Let's enter that for the Let's say it takes 10 seconds for workers to transfer from your second base. Let's enter that for the
second base travel time for the more accurate loss of second base travel time for the more accurate loss of
@ -136,7 +145,8 @@
id="exampleTotalAlloyLossAccurate"> id="exampleTotalAlloyLossAccurate">
@ExampleTotalAlloyLossAccurate @ExampleTotalAlloyLossAccurate
</span> alloy </span> alloy
(saving you <span id="exampleTotalAlloyLossAccurateDifference">@ExampleTotalAlloyLossAccurateDifference</span> alloy.) (saving you <span
id="exampleTotalAlloyLossAccurateDifference">@ExampleTotalAlloyLossAccurateDifference</span> alloy.)
<i> <i>
Which is Which is
much better than not transferring workers! much better than not transferring workers!
@ -160,8 +170,10 @@
<LoopEnd> <LoopEnd>
<MathDivisionComponent> <MathDivisionComponent>
<Dividee>m</Dividee><Divider>a</Divider> <Dividee>m</Dividee>
</MathDivisionComponent>⌋ <Divider>a</Divider>
</MathDivisionComponent>
</LoopEnd> </LoopEnd>
<IndexSymbol> <IndexSymbol>
<i>x</i> <i>x</i>
@ -192,7 +204,8 @@
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
<br/> <br/>
<LinkButtonComponent Href="https://git.jonathanmccaffrey.ca/JonathanMcCaffrey/IGP-Fan-Reference/src/branch/main/IGP/Pages/HarassCalculatorPage.razor#L226"> <LinkButtonComponent
Href="https://git.jonathanmccaffrey.ca/JonathanMcCaffrey/IGP-Fan-Reference/src/branch/main/IGP/Pages/HarassCalculatorPage.razor#L226">
View Here View Here
</LinkButtonComponent> </LinkButtonComponent>
</InfoAnswerComponent> </InfoAnswerComponent>
@ -222,6 +235,7 @@
</style> </style>
@code { @code {
// Example calcs // Example calcs
float ExampleTotalAlloyLoss => Calculate( float ExampleTotalAlloyLoss => Calculate(
WorkerReplacementCost(6), WorkerReplacementCost(6),

12
IGP/Pages/Home/Parts/ContentHighlightComponent.razor

@ -62,17 +62,13 @@
@code { @code {
[Parameter] [Parameter] public string Href { get; set; } = default!;
public string Href { get; set; } = default!;
[Parameter] [Parameter] public string Title { get; set; } = default!;
public string Title { get; set; } = default!;
[Parameter] [Parameter] public string Description { get; set; } = default!;
public string Description { get; set; } = default!;
[Parameter] [Parameter] public string ImageHref { get; set; } = default!;
public string ImageHref { get; set; } = default!;
} }

13
IGP/Pages/MemoryTester/MemoryTesterPage.razor

@ -19,10 +19,16 @@
What is this tool? What is this tool?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
A tool to test your memory of unit stats. Look at the first unit given, and fill in the remaining stats based on how they should compare. A tool to test your memory of unit stats. Look at the first unit given, and fill in the remaining stats
based on how they should compare.
<br/><br/> <br/><br/>
For example, if the first unit you see is the Masked Hunter of range 400, do you remember the range of the Scepter? Are they the same? Does the Scepter have double the range of the Masked Hunter? Less range than it? Well, enter your guess and submit! <SpoilerTextComponent>The range is 200 longer, so if you remember that, you know you are going to need more than Masked Hunters to deal with hard to reach enemy Scepters.</SpoilerTextComponent> For example, if the first unit you see is the Masked Hunter of range 400, do you remember the range of
the Scepter? Are they the same? Does the Scepter have double the range of the Masked Hunter? Less range
than it? Well, enter your guess and submit!
<SpoilerTextComponent>The range is 200 longer, so if you remember that, you know you are going to need
more than Masked Hunters to deal with hard to reach enemy Scepters.
</SpoilerTextComponent>
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
@ -31,7 +37,8 @@
Why is this tool here? Why is this tool here?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
It was just a tool to quickly develop for fun when I didn't want to cover something larger on the 02/27/2022 live coding stream. It was just a tool to quickly develop for fun when I didn't want to cover something larger on the
02/27/2022 live coding stream.
<br/><br/> <br/><br/>
It may get expanded upon later. It may get expanded upon later.
</InfoAnswerComponent> </InfoAnswerComponent>

9
IGP/Pages/MemoryTester/Parts/UnitMemory.razor

@ -49,14 +49,13 @@
@code { @code {
[Parameter] [Parameter] public MemoryEntityModel EntityMemory { get; set; } = default!;
public MemoryEntityModel EntityMemory { get; set; } = default!;
private List<MemoryQuestionModel> questions { get; set; } = default!; private List<MemoryQuestionModel> questions { get; set; } = default!;
private bool hasBeenSubmitted = false; private bool hasBeenSubmitted;
private bool isCorrect = false; private bool isCorrect;
private bool isWrong = false; private bool isWrong;
public int Guess { get; set; } public int Guess { get; set; }

15
IGP/Pages/Notes/NotesIndexPage.razor

@ -107,20 +107,15 @@ else
@code { @code {
[Parameter] [Parameter] public string? Href1 { get; set; }
public string? Href1 { get; set; }
[Parameter] [Parameter] public string? Href2 { get; set; }
public string? Href2 { get; set; }
[Parameter] [Parameter] public string? Href3 { get; set; }
public string? Href3 { get; set; }
[Parameter] [Parameter] public string? Href4 { get; set; }
public string? Href4 { get; set; }
[Parameter] [Parameter] public string? Href5 { get; set; }
public string? Href5 { get; set; }
private string Href => Href5 ?? Href4 ?? Href3 ?? Href2 ?? Href1 ?? ""; private string Href => Href5 ?? Href4 ?? Href3 ?? Href2 ?? Href1 ?? "";

16
IGP/Pages/Notes/NotesPage.razor

@ -30,6 +30,7 @@ else
{ {
continue; continue;
} }
<NoteComponent NoteContentModel="note"/> <NoteComponent NoteContentModel="note"/>
} }
</PaperComponent> </PaperComponent>
@ -92,20 +93,15 @@ else
@code { @code {
[Parameter] [Parameter] public string? Href1 { get; set; }
public string? Href1 { get; set; }
[Parameter] [Parameter] public string? Href2 { get; set; }
public string? Href2 { get; set; }
[Parameter] [Parameter] public string? Href3 { get; set; }
public string? Href3 { get; set; }
[Parameter] [Parameter] public string? Href4 { get; set; }
public string? Href4 { get; set; }
[Parameter] [Parameter] public string? Href5 { get; set; }
public string? Href5 { get; set; }
private string Href => Href5 ?? Href4 ?? Href3 ?? Href2 ?? Href1 ?? ""; private string Href => Href5 ?? Href4 ?? Href3 ?? Href2 ?? Href1 ?? "";

5
IGP/Pages/Notes/Parts/NoteComponent.razor

@ -48,11 +48,10 @@ else
@code { @code {
[Parameter] [Parameter] public NoteContentModel NoteContentModel { get; set; } = default!;
public NoteContentModel NoteContentModel { get; set; } = default!;
NoteFrontMatterModel noteFrontMatter = null!; NoteFrontMatterModel noteFrontMatter = null!;
private string? content = null; private string? content;
private string Filepath => $"content/notes/{NoteContentModel.Content}.md"; private string Filepath => $"content/notes/{NoteContentModel.Content}.md";
private string GitUrl => $"{Project.GitResourcesUrl}/{Filepath}"; private string GitUrl => $"{Project.GitResourcesUrl}/{Filepath}";

8
IGP/Pages/Notes/Parts/NoteInnerNavComponent.razor

@ -49,17 +49,13 @@
} }
</style> </style>
@code { @code {
[Parameter] [Parameter] public NoteContentModel? Note { get; set; }
public NoteContentModel? Note { get; set; } = default!;
[Parameter] [Parameter] public int Layers { get; set; } = 1;
public int Layers { get; set; } = 1;
public int IncrementLayers() public int IncrementLayers()
{ {

6
IGP/Pages/Notes/Parts/NoteNavComponent.razor

@ -35,10 +35,8 @@
@code { @code {
[Parameter] [Parameter] public List<NoteContentModel> Notes { get; set; } = default!;
public List<NoteContentModel> Notes { get; set; } = default!;
[Parameter] [Parameter] public List<NoteConnectionModel> Connections { get; set; } = default!;
public List<NoteConnectionModel> Connections { get; set; } = default!;
} }

18
IGP/Pages/PermissionsPage.razor

@ -32,17 +32,22 @@
<PaperComponent> <PaperComponent>
<InfoBodyComponent> <InfoBodyComponent>
<InfoQuestionComponent>What's this page?</InfoQuestionComponent> <InfoQuestionComponent>What's this page?</InfoQuestionComponent>
<InfoAnswerComponent>This page has options to enable and disable certain permissions settings. Such as Storage and Data Collection.</InfoAnswerComponent> <InfoAnswerComponent>This page has options to enable and disable certain permissions settings. Such as
Storage and Data Collection.
</InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
<InfoBodyComponent> <InfoBodyComponent>
<InfoQuestionComponent>What does this website store?</InfoQuestionComponent> <InfoQuestionComponent>What does this website store?</InfoQuestionComponent>
<InfoAnswerComponent>This website usages storage to track user defined default on the Storage page.</InfoAnswerComponent> <InfoAnswerComponent>This website usages storage to track user defined default on the Storage page.
</InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
<InfoBodyComponent> <InfoBodyComponent>
<InfoQuestionComponent>Why would I enable storage?</InfoQuestionComponent> <InfoQuestionComponent>Why would I enable storage?</InfoQuestionComponent>
<InfoAnswerComponent>Enable storage if you want to website to remeber past settings whenever you visit the website on the same web browser.</InfoAnswerComponent> <InfoAnswerComponent>Enable storage if you want to website to remeber past settings whenever you visit the
website on the same web browser.
</InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
<InfoBodyComponent> <InfoBodyComponent>
@ -50,13 +55,16 @@
<InfoAnswerComponent> <InfoAnswerComponent>
This website usages Google Analytics to collect data on usage of this website. This website usages Google Analytics to collect data on usage of this website.
<br/><br/> <br/><br/>
Items include: if people use keyboard or mouse in build calculator, what pages people visit, and other usages. Items include: if people use keyboard or mouse in build calculator, what pages people visit, and other
usages.
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
<InfoBodyComponent> <InfoBodyComponent>
<InfoQuestionComponent>Why would I enable data collection?</InfoQuestionComponent> <InfoQuestionComponent>Why would I enable data collection?</InfoQuestionComponent>
<InfoAnswerComponent>Enable data tracking if you want the website maintainer to know how your using the website.</InfoAnswerComponent> <InfoAnswerComponent>Enable data tracking if you want the website maintainer to know how your using the
website.
</InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>
</PaperComponent> </PaperComponent>
</LayoutMediumContentComponent> </LayoutMediumContentComponent>

4
IGP/Pages/RawDatabase.razor

@ -5,7 +5,9 @@
<div class="page"> <div class="page">
<AlertComponent> <AlertComponent>
<Title>Placeholders and Speculative</Title> <Title>Placeholders and Speculative</Title>
<Message>The data I am using contains placeholders and speculation on future mechanics. Ignore said data when using this JSON.</Message> <Message>The data I am using contains placeholders and speculation on future mechanics. Ignore said data when
using this JSON.
</Message>
</AlertComponent> </AlertComponent>
<CodeComponent> <CodeComponent>
@DATA.AsJson() @DATA.AsJson()

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save