generated from karashiiro/DalamudPluginProjectTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
GameUIhelpers.cs
36 lines (29 loc) · 961 Bytes
/
GameUIhelpers.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// <copyright file="GameUIhelpers.cs" company="lokinmodar">
// Copyright (c) lokinmodar. All rights reserved.
// Licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License license.
// </copyright>
using System.Collections.Generic;
using System.Linq;
using Lumina.Excel;
using Lumina.Excel.Sheets;
namespace Echoglossian
{
public partial class Echoglossian
{
public HashSet<string> UiElementsLabels = new();
public void ParseUi()
{
ExcelSheet<Addon> uiStuffz = DManager.GetExcelSheet<Addon>(ClientStateInterface.ClientLanguage);
var addonList = uiStuffz?.ToList();
PluginLog.Debug($"Addon list: {uiStuffz?.Count.ToString()}");
if (uiStuffz != null)
{
foreach (var a in uiStuffz)
{
this.UiElementsLabels.Add(a.Text.ToString());
PluginLog.Debug($"Sheet row: {a.RowId}: {a.Text.ToString()}");
}
}
}
}
}