diff options
| author | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2023-10-08 13:05:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-08 13:05:11 -0500 |
| commit | 16977b5159d2cabeb9b7be088c0a8a9d998710a1 (patch) | |
| tree | 576f522936c2efe121cc181729842ecd7931c174 /src/pluginlistview.cpp | |
| parent | 48e8fdff0df30fa807e61d4df7b6116a9d190f2f (diff) | |
| parent | 028c8eafa982a5b126544f733880dd7711e0786a (diff) | |
Merge pull request #1899 from ModOrganizer2/overlay_support
Additional overlay plugin support
Diffstat (limited to 'src/pluginlistview.cpp')
| -rw-r--r-- | src/pluginlistview.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/pluginlistview.cpp b/src/pluginlistview.cpp index 3c2bf000..28f77821 100644 --- a/src/pluginlistview.cpp +++ b/src/pluginlistview.cpp @@ -58,9 +58,11 @@ void PluginListView::updatePluginCount() { int activeMasterCount = 0; int activeLightMasterCount = 0; + int activeOverlayCount = 0; int activeRegularCount = 0; int masterCount = 0; int lightMasterCount = 0; + int overlayCount = 0; int regularCount = 0; int activeVisibleCount = 0; @@ -78,6 +80,10 @@ void PluginListView::updatePluginCount() masterCount++; activeMasterCount += active; activeVisibleCount += visible && active; + } else if (list->isOverlayFlagged(plugin)) { + overlayCount++; + activeOverlayCount += active; + activeVisibleCount += visible && active; } else { regularCount++; activeRegularCount += active; @@ -85,8 +91,9 @@ void PluginListView::updatePluginCount() } } - int activeCount = activeMasterCount + activeLightMasterCount + activeRegularCount; - int totalCount = masterCount + lightMasterCount + regularCount; + int activeCount = activeMasterCount + activeLightMasterCount + activeOverlayCount + + activeRegularCount; + int totalCount = masterCount + lightMasterCount + overlayCount + regularCount; ui.counter->display(activeVisibleCount); ui.counter->setToolTip( @@ -99,6 +106,7 @@ void PluginListView::updatePluginCount() "<tr><td>ESMs+ESPs:</td><td align=right>%9 </td><td " "align=right>%10</td></tr>" "<tr><td>ESLs:</td><td align=right>%5 </td><td align=right>%6</td></tr>" + "<tr><td>Overlay:</td><td align=right>%11 </td><td align=right>%12</td></tr>" "</table>") .arg(activeCount) .arg(totalCount) @@ -109,7 +117,9 @@ void PluginListView::updatePluginCount() .arg(activeRegularCount) .arg(regularCount) .arg(activeMasterCount + activeRegularCount) - .arg(masterCount + regularCount)); + .arg(masterCount + regularCount) + .arg(activeOverlayCount) + .arg(overlayCount)); } void PluginListView::onFilterChanged(const QString& filter) |
