private void DrawLoot() { // show loot overlay var showLootOverlay = this.plugin.Configuration.ShowLootOverlay; if (ImGui.Checkbox( Loc.Localize("ShowLootOverlay", "Show Loot Overlay") + "###Kapture_ShowLootOverlay_Checkbox", ref showLootOverlay)) { this.plugin.Configuration.ShowLootOverlay = showLootOverlay; this.Plugin.WindowManager.LootWindow !.IsOpen = showLootOverlay; this.plugin.SaveConfig(); } ImGuiComponents.HelpMarker(Loc.Localize( "ShowLootOverlay_HelpMarker", "show loot overlay window")); ImGui.Spacing(); // display mode ImGui.Text(Loc.Localize("LootDisplayMode", "Display Mode")); ImGuiComponents.HelpMarker(Loc.Localize( "LootDisplayMode_HelpMarker", "when to show loot overlay")); ImGui.Spacing(); var pluginLootDisplayMode = this.plugin.Configuration.LootDisplayMode; if (ImGui.Combo( "###Kapture_LootDisplayMode_Combo", ref pluginLootDisplayMode, DisplayModeNames.ToArray(), DisplayModeNames.Count)) { this.plugin.Configuration.LootDisplayMode = pluginLootDisplayMode; this.plugin.SaveConfig(); } ImGui.Spacing(); }
private void DrawRolls() { // show roll overlay var showRollOverlay = this.plugin.Configuration.ShowRollMonitorOverlay; if (ImGui.Checkbox( Loc.Localize("ShowRollOverlay", "Show Roll Monitor Overlay") + "###Kapture_ShowRollOverlay_Checkbox", ref showRollOverlay)) { this.plugin.Configuration.ShowRollMonitorOverlay = showRollOverlay; this.Plugin.WindowManager.RollWindow !.IsOpen = showRollOverlay; this.plugin.SaveConfig(); } ImGuiComponents.HelpMarker(Loc.Localize( "ShowRollOverlay_HelpMarker", "show roll monitor overlay window")); ImGui.Spacing(); // show roll reminder var showRollReminder = this.plugin.Configuration.SendRollReminder; if (ImGui.Checkbox( Loc.Localize("ShowRollReminder", "Show Roll Reminder in Chat") + "###Kapture_ShowRollReminder_Checkbox", ref showRollReminder)) { this.plugin.Configuration.SendRollReminder = showRollReminder; this.plugin.SaveConfig(); } ImGuiComponents.HelpMarker(Loc.Localize( "ShowRollReminder_HelpMarker", "send roll reminder before item drops")); ImGui.Spacing(); // display mode ImGui.Text(Loc.Localize("RollDisplayMode", "Display Mode")); ImGuiComponents.HelpMarker(Loc.Localize( "RollDisplayMode_HelpMarker", "when to show roll monitor overlay")); ImGui.Spacing(); var pluginRollDisplayMode = this.plugin.Configuration.RollDisplayMode; if (ImGui.Combo( "###Kapture_RollDisplayMode_Combo", ref pluginRollDisplayMode, DisplayModeNames.ToArray(), DisplayModeNames.Count)) { this.plugin.Configuration.RollDisplayMode = pluginRollDisplayMode; this.plugin.SaveConfig(); } ImGui.Spacing(); // roll timeout ImGui.Text(Loc.Localize("RollMonitorAddedTimeout", "Show Added Items (minutes)")); ImGuiComponents.HelpMarker(Loc.Localize( "RollMonitorAddedTimeout_HelpMarker", "amount of time before removing added items from roll monitor")); var rollMonitorAddedTimeout = this.plugin.Configuration.RollMonitorAddedTimeout.FromMillisecondsToMinutes(); if (ImGui.SliderInt("###PlayerTrack_RollMonitorAddedTimeout_Slider", ref rollMonitorAddedTimeout, 5, 60)) { this.plugin.Configuration.RollMonitorAddedTimeout = rollMonitorAddedTimeout.FromMinutesToMilliseconds(); this.plugin.SaveConfig(); } ImGui.Spacing(); // roll timeout ImGui.Text(Loc.Localize("RollMonitorObtainedTimeout", "Show Obtained Items (seconds)")); ImGuiComponents.HelpMarker(Loc.Localize( "RollMonitorObtainedTimeout_HelpMarker", "amount of time before removing obtained/lost items from roll monitor")); var rollMonitorObtainedTimeout = this.plugin.Configuration.RollMonitorObtainedTimeout.FromMillisecondsToSeconds(); if (ImGui.SliderInt("###PlayerTrack_RollMonitorObtainedTimeout_Slider", ref rollMonitorObtainedTimeout, 5, 300)) { this.plugin.Configuration.RollMonitorObtainedTimeout = rollMonitorObtainedTimeout.FromSecondsToMilliseconds(); this.plugin.SaveConfig(); } ImGui.Spacing(); // roll reminder warning ImGui.Text(Loc.Localize("RollReminderTime", "Roll Reminder Warning (seconds)")); ImGuiComponents.HelpMarker(Loc.Localize( "RollReminderTime_HelpMarker", "amount of time in advanced of missing roll to send reminder")); var rollReminderTime = this.plugin.Configuration.RollReminderTime.FromMillisecondsToSeconds(); if (ImGui.SliderInt("###PlayerTrack_RollReminderTime_Slider", ref rollReminderTime, 5, 60)) { this.plugin.Configuration.RollReminderTime = rollReminderTime.FromSecondsToMilliseconds(); this.plugin.SaveConfig(); } ImGui.Spacing(); }