mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-13 12:14:18 +01:00
Change API Version.
This commit is contained in:
parent
6efd89e0ab
commit
91138176e0
2 changed files with 3 additions and 5 deletions
|
|
@ -5,8 +5,8 @@ namespace Glamourer.Api;
|
||||||
|
|
||||||
public class GlamourerApi(DesignsApi designs, StateApi state, ItemsApi items) : IGlamourerApi, IApiService
|
public class GlamourerApi(DesignsApi designs, StateApi state, ItemsApi items) : IGlamourerApi, IApiService
|
||||||
{
|
{
|
||||||
public const int CurrentApiVersionMajor = 2;
|
public const int CurrentApiVersionMajor = 1;
|
||||||
public const int CurrentApiVersionMinor = 0;
|
public const int CurrentApiVersionMinor = 1;
|
||||||
|
|
||||||
public (int Major, int Minor) ApiVersion
|
public (int Major, int Minor) ApiVersion
|
||||||
=> (CurrentApiVersionMajor, CurrentApiVersionMinor);
|
=> (CurrentApiVersionMajor, CurrentApiVersionMinor);
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,6 @@ public sealed class DesignQuickBar : Window, IDisposable
|
||||||
|
|
||||||
private void Draw(float width)
|
private void Draw(float width)
|
||||||
{
|
{
|
||||||
_objects.Update();
|
|
||||||
using var group = ImRaii.Group();
|
using var group = ImRaii.Group();
|
||||||
var spacing = ImGui.GetStyle().ItemInnerSpacing;
|
var spacing = ImGui.GetStyle().ItemInnerSpacing;
|
||||||
using var style = ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, spacing);
|
using var style = ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, spacing);
|
||||||
|
|
@ -132,7 +131,6 @@ public sealed class DesignQuickBar : Window, IDisposable
|
||||||
|
|
||||||
private void PrepareButtons()
|
private void PrepareButtons()
|
||||||
{
|
{
|
||||||
_objects.Update();
|
|
||||||
(_playerIdentifier, _playerData) = _objects.PlayerData;
|
(_playerIdentifier, _playerData) = _objects.PlayerData;
|
||||||
(_targetIdentifier, _targetData) = _objects.TargetData;
|
(_targetIdentifier, _targetData) = _objects.TargetData;
|
||||||
_playerState = _stateManager.GetValueOrDefault(_playerIdentifier);
|
_playerState = _stateManager.GetValueOrDefault(_playerIdentifier);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue