Added icon to report viewer, fixed filter-related oddness.

This commit is contained in:
WrinklyNinja
2013-05-13 18:37:18 +01:00
parent 5f7ba7332d
commit fd3bd7c6e0
4 changed files with 10 additions and 4 deletions
+3
View File
@@ -58,6 +58,7 @@ I'm considering using glog to handle logging, should really get that implemented
- [x] Add a setting that lets users choose whether to use the viewer window or their own browser when viewing BOSS's report.
- [x] Somehow implement filter settings memory for the BOSS report.
- [ ] Implement checking of details part of report against previous report.
- [x] Either remove the Bash Tag suggestions filter or implement their display in the report as a non-note message type.
## Optimisation
@@ -77,6 +78,7 @@ LOOT will be a self-contained installation that can be dropped anywhere. It will
Directory structure will be:
```
/
BOSS.exe
resource/
@@ -95,6 +97,7 @@ Directory structure will be:
userlist.yaml
report.html
...other game folders with same structure as Oblivion...
```
## Required Libraries
+2 -2
View File
@@ -109,11 +109,11 @@ function toggleMessages(evt) {
var filterMatch = false;
if (evt.target.id == 'hideAllPluginMessages') {
filterMatch = true;
} else if (evt.target.id == 'hideNotes' && listItems[i].className.indexOf('note') != -1) {
} else if (evt.target.id == 'hideNotes' && listItems[i].className.indexOf('say') != -1) {
filterMatch = true;
} else if (evt.target.id == 'hideBashTags' && listItems[i].className.indexOf('tag') != -1) {
filterMatch = true;
} else if (evt.target.id == 'hideDoNotCleanMessages' && listItems[i].className.indexOf('dirty') != -1 && (listItems[i].textContent.indexOf('Do not clean.') != -1 || listItems[i].textContent.indexOf('Do not clean.') != -1)) {
} else if (evt.target.id == 'hideDoNotCleanMessages' && listItems[i].textContent.indexOf('Do not clean.') != -1) {
filterMatch = true;
}
if (filterMatch) {
+4 -2
View File
@@ -38,7 +38,9 @@ namespace boss {
if (type == "say")
content = "Note: " + content;
else if (type == "warn")
else if (type == "tag") {
content = "Bash Tag Suggestion(s): " + content;
} else if (type == "warn")
content = "Warning: " + content;
else
content = "Error: " + content;
@@ -324,7 +326,7 @@ namespace boss {
content += "Bash Tags suggested for addition are " + add.substr(2) + ". ";
if (!remove.empty())
content += "Bash Tags suggested for removal are " + remove.substr(2) + ". ";
messages.push_back(Message("say", content));
messages.push_back(Message("tag", content)); //Special type just for tag suggestions.
}
AppendMessages(plugin, messages, warnNo, errorNo);
+1
View File
@@ -40,4 +40,5 @@ Viewer::Viewer(wxWindow *parent, const wxString& title, const boss::Game& game)
SetSizer(topsizer);
SetSize(800,600);
SetIcon(wxIconLocation("BOSS.exe"));
}