Stream Patch plus WIP and quick fixes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{
|
||||
var isVanguard = Entity.VanguardAdded() != null ? " vanguard" : "";
|
||||
|
||||
<div class="enititiesContainer @isVanguard">
|
||||
<div class="entitiesContainer @isVanguard">
|
||||
<EntityHeaderComponent></EntityHeaderComponent>
|
||||
<div class="entityPartsContainer">
|
||||
<EntityVanguardAddedComponent></EntityVanguardAddedComponent>
|
||||
@@ -21,7 +21,7 @@
|
||||
}
|
||||
|
||||
<style>
|
||||
.enititiesContainer {
|
||||
.entitiesContainer {
|
||||
margin-bottom: 12px;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
@@ -41,7 +41,7 @@
|
||||
}
|
||||
|
||||
@@media only screen and (max-width: 1025px) {
|
||||
.enititiesContainer {
|
||||
.entitiesContainer {
|
||||
padding: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
@if (Entity.Faction() != null)
|
||||
{
|
||||
<div>
|
||||
<b>Faction:</b> @Entity.Faction().Faction
|
||||
<b>Faction:</b> @DATA.Get()[Entity.Faction().Faction].Info().Name
|
||||
</div>
|
||||
}
|
||||
@if (Entity.Tier() != null)
|
||||
@@ -70,7 +70,7 @@ else
|
||||
@if (Entity.Faction() != null)
|
||||
{
|
||||
<div>
|
||||
<b>Faction:</b> @Entity.Faction().Faction
|
||||
<b>Faction:</b> @DATA.Get()[Entity.Faction().Faction].Info().Name
|
||||
</div>
|
||||
}
|
||||
@if (Entity.Tier() != null)
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
@if (Entity!.Weapons().Count > 0)
|
||||
@inject IStorageService StorageService
|
||||
@using Services.Website
|
||||
@implements IDisposable
|
||||
|
||||
|
||||
@if (Entity!.Weapons().Count > 0)
|
||||
{
|
||||
@if (StyleType.Equals("Plain"))
|
||||
{
|
||||
@@ -72,6 +77,7 @@
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
<div>
|
||||
<b>- Targets:</b> @data.Targets
|
||||
</div>
|
||||
@@ -149,6 +155,7 @@
|
||||
<div>
|
||||
<b>Range:</b> @data.Range
|
||||
</div>
|
||||
|
||||
@if (data.SecondsBetweenAttacks > 0)
|
||||
{
|
||||
<div>
|
||||
@@ -233,4 +240,22 @@
|
||||
[CascadingParameter]
|
||||
public string StyleType { get; set; } = "Detailed";
|
||||
|
||||
private bool _isDynamicFormatting = false;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
StorageService.Subscribe(RefreshDefaults);
|
||||
}
|
||||
|
||||
|
||||
void RefreshDefaults()
|
||||
{
|
||||
_isDynamicFormatting = StorageService.GetValue<bool>(StorageKeys.IsDynamicFormatting);
|
||||
}
|
||||
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
StorageService.Unsubscribe(RefreshDefaults);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,7 +9,11 @@
|
||||
{
|
||||
styleClass = "selected";
|
||||
}
|
||||
<button @onclick="@(e => OnChangeFaction(choice))" class="choiceButton @styleClass">@choice</button>
|
||||
<button @onclick="@(e => OnChangeFaction(choice))"
|
||||
class="choiceButton @styleClass">@(choice == DataType.Any
|
||||
? DataType.Any
|
||||
: DATA.Get()[choice].Info().Name)
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
+87
-56
@@ -19,9 +19,21 @@
|
||||
<FormLayoutComponent>
|
||||
<FormToggleComponent
|
||||
Label="Is Plain View"
|
||||
Info="Should Entity view be in plain text?"
|
||||
Value="@_isEntityPlainView"
|
||||
OnChange="EntityViewChanged"/>
|
||||
</FormLayoutComponent>
|
||||
|
||||
<DevOnlyComponent>
|
||||
<FormLayoutComponent>
|
||||
<FormToggleComponent
|
||||
Label="Is Dynamic Formatting"
|
||||
Info="Should [Attacks Per Second/Seconds Between Attack] match in-game values?"
|
||||
Value="@_isDynamicFormatting"
|
||||
OnChange="DynamicFormattingChanged"/>
|
||||
</FormLayoutComponent>
|
||||
</DevOnlyComponent>
|
||||
|
||||
</PaperComponent>
|
||||
|
||||
<PaperComponent>
|
||||
@@ -51,60 +63,72 @@
|
||||
}
|
||||
</FormInfoComponent>
|
||||
</FormNumberComponent>
|
||||
|
||||
|
||||
<FormSelectComponent OnChange="@OnFactionChanged">
|
||||
<FormLabelComponent>Faction</FormLabelComponent>
|
||||
<ChildContent>
|
||||
<option value="@DataType.FACTION_Aru"
|
||||
selected="@(Faction.Equals(DataType.FACTION_Aru))">Aru</option>
|
||||
<option value="@DataType.FACTION_QRath"
|
||||
selected="@(Faction.Equals(DataType.FACTION_QRath))">Q'Rath</option>
|
||||
<option value="@DataType.FACTION_Aru"
|
||||
selected="@(Faction.Equals(DataType.FACTION_Aru))">
|
||||
Aru
|
||||
</option>
|
||||
<option value="@DataType.FACTION_QRath"
|
||||
selected="@(Faction.Equals(DataType.FACTION_QRath))">
|
||||
Q'Rath
|
||||
</option>
|
||||
</ChildContent>
|
||||
</FormSelectComponent>
|
||||
|
||||
<FormSelectComponent OnChange="@OnImmortalChanged">
|
||||
<FormLabelComponent>Immortal</FormLabelComponent>
|
||||
<ChildContent>
|
||||
@if (Faction == DataType.FACTION_QRath)
|
||||
{
|
||||
<option value="@DataType.IMMORTAL_Orzum"
|
||||
selected="@(Immortal.Equals(DataType.IMMORTAL_Orzum))">Orzum</option>
|
||||
<option value="@DataType.IMMORTAL_Ajari"
|
||||
selected="@(Immortal.Equals(DataType.IMMORTAL_Ajari))">Ajari</option>
|
||||
}
|
||||
@if (Faction == DataType.FACTION_Aru)
|
||||
{
|
||||
<option value="@DataType.IMMORTAL_Mala"
|
||||
selected="@(Immortal.Equals(DataType.IMMORTAL_Mala))">Mala</option>
|
||||
<option value="@DataType.IMMORTAL_Xol"
|
||||
selected="@(Immortal.Equals(DataType.IMMORTAL_Xol))">Xol</option>
|
||||
}
|
||||
</ChildContent>
|
||||
</FormSelectComponent>
|
||||
|
||||
|
||||
<FormNumberComponent Max="600"
|
||||
Min="0"
|
||||
Value="@(_buildingInputDelay == null ? 0 : (int)_buildingInputDelay)"
|
||||
OnChange="OnBuildingInputDelayChanged">
|
||||
<FormLabelComponent>Building Input Delay</FormLabelComponent>
|
||||
<FormInfoComponent>Add a input delay to constructing buildings for simulating worker movement and player micro.</FormInfoComponent>
|
||||
</FormNumberComponent>
|
||||
<FormNumberComponent Max="600"
|
||||
Min="1"
|
||||
Value="@(_waitTime == null ? 0 : (int)_waitTime)"
|
||||
OnChange="@OnWaitTimeChanged">
|
||||
<FormLabelComponent>Wait Time</FormLabelComponent>
|
||||
</FormNumberComponent>
|
||||
</FormLayoutComponent>
|
||||
<FormLayoutComponent>
|
||||
<FormNumberComponent Max="2048"
|
||||
Min="1"
|
||||
Value="@(_waitTo == null ? 0 : (int)_waitTo)"
|
||||
OnChange="@OnWaitToChanged">
|
||||
<FormLabelComponent>Wait To</FormLabelComponent>
|
||||
</FormNumberComponent>
|
||||
|
||||
<FormSelectComponent OnChange="@OnImmortalChanged">
|
||||
<FormLabelComponent>Immortal</FormLabelComponent>
|
||||
<ChildContent>
|
||||
@if (Faction == DataType.FACTION_QRath)
|
||||
{
|
||||
<option value="@DataType.IMMORTAL_Orzum"
|
||||
selected="@(Immortal.Equals(DataType.IMMORTAL_Orzum))">
|
||||
Orzum
|
||||
</option>
|
||||
<option value="@DataType.IMMORTAL_Ajari"
|
||||
selected="@(Immortal.Equals(DataType.IMMORTAL_Ajari))">
|
||||
Ajari
|
||||
</option>
|
||||
}
|
||||
@if (Faction == DataType.FACTION_Aru)
|
||||
{
|
||||
<option value="@DataType.IMMORTAL_Mala"
|
||||
selected="@(Immortal.Equals(DataType.IMMORTAL_Mala))">
|
||||
Mala
|
||||
</option>
|
||||
<option value="@DataType.IMMORTAL_Xol"
|
||||
selected="@(Immortal.Equals(DataType.IMMORTAL_Xol))">
|
||||
Xol
|
||||
</option>
|
||||
}
|
||||
</ChildContent>
|
||||
</FormSelectComponent>
|
||||
|
||||
|
||||
<FormNumberComponent Max="600"
|
||||
Min="0"
|
||||
Value="@(_buildingInputDelay == null ? 0 : (int)_buildingInputDelay)"
|
||||
OnChange="OnBuildingInputDelayChanged">
|
||||
<FormLabelComponent>Building Input Delay</FormLabelComponent>
|
||||
<FormInfoComponent>Add a input delay to constructing buildings for simulating worker movement and player micro.</FormInfoComponent>
|
||||
</FormNumberComponent>
|
||||
<FormNumberComponent Max="600"
|
||||
Min="1"
|
||||
Value="@(_waitTime == null ? 0 : (int)_waitTime)"
|
||||
OnChange="@OnWaitTimeChanged">
|
||||
<FormLabelComponent>Wait Time</FormLabelComponent>
|
||||
</FormNumberComponent>
|
||||
</FormLayoutComponent>
|
||||
<FormLayoutComponent>
|
||||
<FormNumberComponent Max="2048"
|
||||
Min="1"
|
||||
Value="@(_waitTo == null ? 0 : (int)_waitTo)"
|
||||
OnChange="@OnWaitToChanged">
|
||||
<FormLabelComponent>Wait To</FormLabelComponent>
|
||||
</FormNumberComponent>
|
||||
|
||||
</FormLayoutComponent>
|
||||
</PaperComponent>
|
||||
}
|
||||
@@ -127,7 +151,7 @@
|
||||
|
||||
StorageService.Subscribe(RefreshDefaults);
|
||||
}
|
||||
|
||||
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
StorageService.Unsubscribe(RefreshDefaults);
|
||||
@@ -138,28 +162,28 @@
|
||||
|
||||
private string? _faction = null;
|
||||
private string? _immortal = null;
|
||||
|
||||
|
||||
private string? Faction => _faction == null ? DataType.FACTION_QRath : _faction;
|
||||
private string? Immortal => _immortal == null ? DataType.IMMORTAL_Orzum : _immortal;
|
||||
|
||||
|
||||
|
||||
private int? _buildingInputDelay;
|
||||
private int? _waitTime;
|
||||
private int? _waitTo;
|
||||
|
||||
|
||||
|
||||
void RefreshDefaults()
|
||||
{
|
||||
_isEntityPlainView = StorageService.GetValue<bool>(StorageKeys.IsPlainView);
|
||||
_isDynamicFormatting = StorageService.GetValue<bool>(StorageKeys.IsDynamicFormatting);
|
||||
|
||||
_attackTime = StorageService.GetValue<int?>(StorageKeys.AttackTime);
|
||||
_travelTime = StorageService.GetValue<int?>(StorageKeys.TravelTime);
|
||||
|
||||
|
||||
|
||||
|
||||
_faction = StorageService.GetValue<string?>(StorageKeys.SelectedFaction);
|
||||
_immortal = StorageService.GetValue<string?>(StorageKeys.SelectedImmortal);
|
||||
|
||||
|
||||
_buildingInputDelay = StorageService.GetValue<int?>(StorageKeys.BuildInputDelay);
|
||||
_waitTime = StorageService.GetValue<int?>(StorageKeys.WaitTime);
|
||||
_waitTo = StorageService.GetValue<int?>(StorageKeys.WaitTo);
|
||||
@@ -168,12 +192,18 @@
|
||||
}
|
||||
|
||||
private bool _isEntityPlainView;
|
||||
private bool _isDynamicFormatting;
|
||||
|
||||
private void EntityViewChanged(ChangeEventArgs obj)
|
||||
{
|
||||
StorageService.SetValue(StorageKeys.IsPlainView, obj.Value);
|
||||
}
|
||||
|
||||
private void DynamicFormattingChanged(ChangeEventArgs obj)
|
||||
{
|
||||
StorageService.SetValue(StorageKeys.IsDynamicFormatting, obj.Value);
|
||||
}
|
||||
|
||||
private void AttackTimeChanged(ChangeEventArgs obj)
|
||||
{
|
||||
StorageService.SetValue(StorageKeys.AttackTime, obj.Value);
|
||||
@@ -193,6 +223,7 @@
|
||||
{
|
||||
StorageService.SetValue(StorageKeys.SelectedImmortal, obj.Value);
|
||||
}
|
||||
|
||||
private void OnBuildingInputDelayChanged(ChangeEventArgs obj)
|
||||
{
|
||||
StorageService.SetValue(StorageKeys.BuildInputDelay, obj.Value);
|
||||
@@ -202,7 +233,7 @@
|
||||
{
|
||||
StorageService.SetValue(StorageKeys.WaitTime, obj.Value);
|
||||
}
|
||||
|
||||
|
||||
private void OnWaitToChanged(ChangeEventArgs obj)
|
||||
{
|
||||
StorageService.SetValue(StorageKeys.WaitTo, obj.Value);
|
||||
|
||||
Reference in New Issue
Block a user