mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-30 20:33:43 +01:00
Change selectiontype to an Enum
This commit is contained in:
parent
53c17bef48
commit
a84f2cda6f
4 changed files with 11 additions and 7 deletions
|
|
@ -613,7 +613,7 @@ namespace Penumbra.UI
|
|||
conf[g.Key] = 0;
|
||||
}
|
||||
switch(g.Value.SelectionType) {
|
||||
case "Multi":
|
||||
case SelectType.Multi:
|
||||
{
|
||||
var i = 0;
|
||||
var flag = conf[g.Key];
|
||||
|
|
@ -629,7 +629,7 @@ namespace Penumbra.UI
|
|||
}
|
||||
break;
|
||||
}
|
||||
case "Single":
|
||||
case SelectType.Single:
|
||||
{
|
||||
var code = conf[g.Key];
|
||||
if(g.Value.Options.Count >1) {
|
||||
|
|
@ -644,7 +644,7 @@ namespace Penumbra.UI
|
|||
default: {
|
||||
ImGui.Text("I dunno what this is, please report it!");
|
||||
ImGui.Text(g.Value.GroupName);
|
||||
ImGui.Text(g.Value.SelectionType);
|
||||
ImGui.Text(g.Value.SelectionType.ToString());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue