-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
111 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Dalamud.Interface.Utility.Raii; | ||
|
||
namespace BossMod; | ||
|
||
public class BossModuleConfigWindow : UIWindow | ||
{ | ||
private ModuleRegistry.Info _info; | ||
private WorldState _ws; | ||
private UITree _tree = new(); | ||
|
||
public BossModuleConfigWindow(ModuleRegistry.Info info, WorldState ws) : base($"{info.ModuleType.Name} config", true, new(1200, 800)) | ||
{ | ||
_info = info; | ||
_ws = ws; | ||
} | ||
|
||
public override void Draw() | ||
{ | ||
if (_info.ConfigType == null) | ||
return; // nothing to do... | ||
|
||
using var tabs = ImRaii.TabBar("Tabs"); | ||
if (tabs) | ||
{ | ||
using (var tab = ImRaii.TabItem("Encounter-specific config")) | ||
if (tab) | ||
ConfigUI.DrawNode(Service.Config.Get<ConfigNode>(_info.ConfigType), Service.Config, _tree, _ws); | ||
if (_ws.Party.Player() != null) | ||
using (var tab = ImRaii.TabItem("Party roles assignment")) | ||
if (tab) | ||
ConfigUI.DrawNode(Service.Config.Get<PartyRolesConfig>(), Service.Config, _tree, _ws); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters