Author: mir3x
Date: Tue Aug  2 17:22:00 2016
New Revision: 33424

URL: http://svn.gna.org/viewcvs/freeciv?rev=33424&view=rev
Log:
Qt client - Added icons to pregame page, to distinct humans or ai.

See patch #7525



Added:
    branches/S2_6/data/themes/gui-qt/icons/ai.png   (with props)
    branches/S2_6/data/themes/gui-qt/icons/human.png   (with props)
Modified:
    branches/S2_6/client/gui-qt/pages.cpp
    branches/S2_6/data/themes/gui-qt/icons/Makefile.am

Modified: branches/S2_6/client/gui-qt/pages.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/pages.cpp?rev=33424&r1=33423&r2=33424&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/pages.cpp       (original)
+++ branches/S2_6/client/gui-qt/pages.cpp       Tue Aug  2 17:22:00 2016
@@ -1541,6 +1541,9 @@
         if (pplayer->ai_controlled) {
           str = str + " <" + 
(ai_level_translated_name(pplayer->ai_common.skill_level))
               + ">";
+          item->setIcon(col, fc_icons::instance()->get_icon("ai"));
+        } else {
+          item->setIcon(col, fc_icons::instance()->get_icon("human"));
         }
 
         item->setText(col, str);

Modified: branches/S2_6/data/themes/gui-qt/icons/Makefile.am
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/data/themes/gui-qt/icons/Makefile.am?rev=33424&r1=33423&r2=33424&view=diff
==============================================================================
--- branches/S2_6/data/themes/gui-qt/icons/Makefile.am  (original)
+++ branches/S2_6/data/themes/gui-qt/icons/Makefile.am  Tue Aug  2 17:22:00 2016
@@ -4,10 +4,12 @@
 pkgdatadir = $(datadir)/$(PACKAGE)/themes/gui-qt/icons
 
 pkgdata_DATA =                 \
+       ai.png                  \
        flag.png                \
        go-down.png             \
        go-up.png               \
        help-donate.png         \
+       human.png               \
        list-add.png            \
        meeting-observer.png    \
        preferences-other.png

Added: branches/S2_6/data/themes/gui-qt/icons/ai.png
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/data/themes/gui-qt/icons/ai.png?rev=33424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: branches/S2_6/data/themes/gui-qt/icons/ai.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: branches/S2_6/data/themes/gui-qt/icons/human.png
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/data/themes/gui-qt/icons/human.png?rev=33424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: branches/S2_6/data/themes/gui-qt/icons/human.png
------------------------------------------------------------------------------
    svn:mime-type = image/png


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to