Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2018, 1:24:26 PM (6 years ago)
Author:
kunzro
Message:

highlight and dehighlight function added for province and WagnisHUD info adjusts colour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wagnis_HS18/src/modules/wagnis/WagnisHUDinfo.cc

    r12158 r12159  
    2121 *
    2222 *   Author:
    23  *      Florian Zinggeler
     23 *      Roman Kunz
    2424 *
    2525 */
     
    5050            findWagnis();
    5151        }
    52     enum GameStage { NOT_READY, CHOOSE_PROVINCE_STAGE, REINFORCEMENT_STAGE, ATTACK_STAGE, MOVE_STAGE };
     52        switch(wagnisgame->active_player){
     53            case 1: setColour( colour({255,0,0}, 100.0f) );
     54                    break;
     55            case 2: setColour( colour({0,255,0}, 100.0f) );
     56                    break;
     57            case 3: setColour( colour({255,255,0}, 100.0f) );
     58                    break;
     59            case 4: setColour( colour({0,0,255}, 100.0f) );
     60                    break;
     61            case 5: setColour( colour({255,0,255}, 100.0f) );
     62                    break;
     63            case 6: setColour( colour({128,128,0}, 40.0f) );
     64                    break;
     65            case 7: setColour( colour({0,255,255}, 100.0f) );
     66                    break;
     67            case 8: setColour( colour({153,255,204}, 100.0f) );
     68                    break;
     69            case 9: setColour( colour({102,51,0}, 100.0f) );
     70                    break;
     71        }
     72
    5373        std::stringstream ss;
    5474        switch(wagnisgame->gameStage){
Note: See TracChangeset for help on using the changeset viewer.