Only show load order indices for active plugins.

When copying the load order. For #437.
This commit is contained in:
Oliver Hamlet
2015-05-28 12:57:11 +01:00
parent 759bd180b8
commit f19dffdf99
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ var {
<p>A few items in the main menu are not self-explanatory:
<ul>
<li><q>Redate Plugins</q> is provided so that Skyrim modders may set the load order for the Creation Kit. It is only enabled for Skyrim, and changes the timestamps of the plugins in its Data folder to match their current load order. A side effect of changing the timestamps is that any Steam Workshop mods installed will be re-downloaded.
<li><q>Copy Load Order</q> copies the displayed list of plugins together with their decimal and hexadecimal indices.
<li><q>Copy Load Order</q> copies the displayed list of plugins and the decimal and hexadecimal indices of active plugins.
<li><q>Copy Content</q> copies the data displayed in LOOT's cards as YAML-formatted text.
<li><q>Refresh Content</q> re-scans the installed plugins' headers and regenerates the content LOOT displays. This can be useful if you have made changes to your installed plugins while LOOT was open. Refreshing content will also discard any CRCs that were previously calculated, as they may have changed.
</ul>
+10 -2
View File
@@ -336,8 +336,16 @@ namespace loot {
else if (plugins.size() > 9) {
decLength = 2;
}
for (size_t i = 0; i < plugins.size(); ++i) {
ss << setw(decLength) << i << " " << hex << setw(2) << i << dec << " " << plugins[i] << "\r\n";
size_t i = 0;
for (const auto& plugin : plugins) {
if (g_app_state.CurrentGame().IsActive(plugin)) {
ss << setw(decLength) << i << " " << hex << setw(2) << i << dec << " ";
++i;
}
else {
ss << setw(decLength + 4) << " ";
}
ss << plugin << "\r\n";
}
CopyToClipboard(ss.str());
callback->Success("");