mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-30 04:13:43 +01:00
Services here, too!
This commit is contained in:
parent
1eb16b98a8
commit
85adc3626e
47 changed files with 1015 additions and 562 deletions
|
|
@ -4,6 +4,7 @@ using System.Reflection;
|
|||
using System.Runtime.InteropServices;
|
||||
using Dalamud.Plugin;
|
||||
using Glamourer.Customization;
|
||||
using Glamourer.Services;
|
||||
using ImGuiNET;
|
||||
using OtterGui;
|
||||
using OtterGui.Raii;
|
||||
|
|
@ -40,8 +41,13 @@ public partial class CustomizationDrawer : IDisposable
|
|||
private float _comboSelectorSize;
|
||||
private float _raceSelectorWidth;
|
||||
|
||||
public CustomizationDrawer(DalamudPluginInterface pi)
|
||||
private readonly CustomizationService _service;
|
||||
private readonly ItemManager _items;
|
||||
|
||||
public CustomizationDrawer(DalamudPluginInterface pi, CustomizationService service, ItemManager items)
|
||||
{
|
||||
_service = service;
|
||||
_items = items;
|
||||
_legacyTattoo = GetLegacyTattooIcon(pi);
|
||||
unsafe
|
||||
{
|
||||
|
|
@ -120,7 +126,7 @@ public partial class CustomizationDrawer : IDisposable
|
|||
try
|
||||
{
|
||||
DrawRaceGenderSelector();
|
||||
_set = Glamourer.Customization.GetList(_customize.Clan, _customize.Gender);
|
||||
_set = _service.AwaitedService.GetList(_customize.Clan, _customize.Gender);
|
||||
|
||||
foreach (var id in _set.Order[CharaMakeParams.MenuType.Percentage])
|
||||
PercentageSelector(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue