Change DLC icon (thanks, nemo!)
authorWuzzy <almikes@aol.com>
Tue, 10 Oct 2017 23:42:56 +0200
changeset 12691 d5e09024d722
parent 12690 ad1fd7ae479d
child 12692 ebb32d3021a5
Change DLC icon (thanks, nemo!)
ChangeLog.txt
QTfrontend/hedgewars.qrc
QTfrontend/model/GameStyleModel.cpp
QTfrontend/model/MapModel.cpp
QTfrontend/res/dlcMarker.png
QTfrontend/res/dlcMarkerSelected.png
QTfrontend/ui/page/pageeditteam.cpp
--- a/ChangeLog.txt	Tue Oct 10 22:45:48 2017 +0200
+++ b/ChangeLog.txt	Tue Oct 10 23:42:56 2017 +0200
@@ -273,7 +273,7 @@
  + Allow to randomize hog names, hats, team name, flag, grave, voice and fort separately
  + “Random team” button is now able to randomly select from all available hats
  + Creating new game/weapon schemes guarantees unique names
- + Custom maps and styles are now marked with a circle instead of an asterisk symbol
+ + Custom maps and styles are now marked with an icon instead of an asterisk
  + Mark custom forts in team editor
  * Fix flag being selectable for computer players although it had no effect
  * Campaign screen does no longer show AI-controlled teams
--- a/QTfrontend/hedgewars.qrc	Tue Oct 10 22:45:48 2017 +0200
+++ b/QTfrontend/hedgewars.qrc	Tue Oct 10 23:42:56 2017 +0200
@@ -88,6 +88,7 @@
         <file>res/missionFinished.png</file>
         <file>res/missionFinishedSelected.png</file>
         <file>res/dlcMarker.png</file>
+        <file>res/dlcMarkerSelected.png</file>
         <file>res/graphicsicon.png</file>
         <file>res/frontendicon.png</file>
         <file>res/folder.png</file>
--- a/QTfrontend/model/GameStyleModel.cpp	Tue Oct 10 22:45:48 2017 +0200
+++ b/QTfrontend/model/GameStyleModel.cpp	Tue Oct 10 23:42:56 2017 +0200
@@ -34,6 +34,7 @@
 
     QIcon dlcIcon;
     dlcIcon.addFile(":/res/dlcMarker.png", QSize(), QIcon::Normal, QIcon::On);
+    dlcIcon.addFile(":/res/dlcMarkerSelected.png", QSize(), QIcon::Selected, QIcon::On);
     QPixmap emptySpace = QPixmap(7, 15);
     emptySpace.fill(QColor(0, 0, 0, 0));
     QIcon notDlcIcon = QIcon(emptySpace);
--- a/QTfrontend/model/MapModel.cpp	Tue Oct 10 22:45:48 2017 +0200
+++ b/QTfrontend/model/MapModel.cpp	Tue Oct 10 23:42:56 2017 +0200
@@ -83,6 +83,7 @@
 
     QIcon dlcIcon;
     dlcIcon.addFile(":/res/dlcMarker.png", QSize(), QIcon::Normal, QIcon::On);
+    dlcIcon.addFile(":/res/dlcMarkerSelected.png", QSize(), QIcon::Selected, QIcon::On);
     QPixmap emptySpace = QPixmap(7, 15);
     emptySpace.fill(QColor(0, 0, 0, 0));
     QIcon notDlcIcon = QIcon(emptySpace);
Binary file QTfrontend/res/dlcMarker.png has changed
Binary file QTfrontend/res/dlcMarkerSelected.png has changed
--- a/QTfrontend/ui/page/pageeditteam.cpp	Tue Oct 10 22:45:48 2017 +0200
+++ b/QTfrontend/ui/page/pageeditteam.cpp	Tue Oct 10 23:42:56 2017 +0200
@@ -314,6 +314,7 @@
 
     QIcon dlcIcon;
     dlcIcon.addFile(":/res/dlcMarker.png", QSize(), QIcon::Normal, QIcon::On);
+    dlcIcon.addFile(":/res/dlcMarkerSelected.png", QSize(), QIcon::Selected, QIcon::On);
     QPixmap emptySpace = QPixmap(7, 15);
     emptySpace.fill(QColor(0, 0, 0, 0));
     QIcon notDlcIcon = QIcon(emptySpace);