From 34a0e4b8b5f570851173208db4661cb95b5efad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 13 Sep 2017 22:17:27 +0200 Subject: [PATCH] Version 17.0.1 --- css/swad17.0.css | 16 ++++++++++------ swad_changelog.h | 4 ++++ swad_game.c | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 6 deletions(-) diff --git a/css/swad17.0.css b/css/swad17.0.css index 5e510caea..c54a677cd 100644 --- a/css/swad17.0.css +++ b/css/swad17.0.css @@ -695,10 +695,6 @@ a:hover /* Default ==> underlined */ text-transform:uppercase; } } -.TAB_OFF a:hover, .TAB_ON a:hover - { - text-decoration:none; - } .TAB_ON_WHITE {background-color:rgba(247, 246, 245, 0.99);} .TAB_ON_GREY {background-color:rgba(247, 246, 245, 0.99);} @@ -2397,6 +2393,10 @@ a:hover img.CENTRE_PHOTO_SHOW text-align:left; vertical-align:middle; } +.GAM_PLAY_CONTAINER a + { + text-decoration:none; + } .GAM_PLAY_NUM_QST { display:inline-block; @@ -2405,7 +2405,7 @@ a:hover img.CENTRE_PHOTO_SHOW position:relative; color:#808080; font-size:48pt; - background:yellow; + font-weight:bold; } .GAM_PLAY_QST_STEM { @@ -2415,7 +2415,11 @@ a:hover img.CENTRE_PHOTO_SHOW position:relative; color:#404040; font-size:24pt; - background:pink; + } +.GAM_PLAY_CONTINUE + { + color:#404040; + font-size:24pt; } /******************************* Time table **********************************/ diff --git a/swad_changelog.h b/swad_changelog.h index 30afe93be..7e877f93b 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -257,6 +257,10 @@ // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 /* + Version 17.0.1: Sep 13, 2017 Icon to show question answers when playing a game. (227283 lines) +Copy the following icon to icon public directory: +sudo cp icon/step-forward64x64.png /var/www/html/swad/icon/ + Version 17.0: Sep 13, 2017 New action to display a game question. (227245 lines) Version 16.254.2: Sep 13, 2017 Removed notifications in games. Start playing a game. diff --git a/swad_game.c b/swad_game.c index 207008292..c93638376 100644 --- a/swad_game.c +++ b/swad_game.c @@ -151,6 +151,8 @@ static void Gam_ExchangeQuestions (long GamCod, unsigned QstIndTop,unsigned QstIndBottom); static void Gam_PutBigButtonToStartGame (long GamCod); +static void Gam_PutBigButtonToContinue (Act_Action_t NextAction, + long GamCod,unsigned QstInd); static void Gam_ReceiveAndStoreUserAnswersToAGame (long GamCod); static void Gam_IncreaseAnswerInDB (long QstCod,unsigned AnsInd); @@ -3550,6 +3552,43 @@ void Gam_PlayGameNextQuestion (void) "TEST_IMG_EDIT_LIST_STEM_CONTAINER", "TEST_IMG_EDIT_LIST_STEM"); + /***** Put button to show answers *****/ + Gam_PutBigButtonToContinue (ActPlyGamNxtQst,Game.GamCod,QstInd); + + fprintf (Gbl.F.Out,""); + } + +/*****************************************************************************/ +/*********************** Put a big button to continue ************************/ +/*****************************************************************************/ + +static void Gam_PutBigButtonToContinue (Act_Action_t NextAction, + long GamCod,unsigned QstInd) + { + extern const char *Txt_Continue; + + /***** Start container *****/ + fprintf (Gbl.F.Out,"
"); + + /***** Start form *****/ + Act_FormStart (NextAction); + Gam_PutParamGameCod (GamCod); + Gam_PutParamQstInd (QstInd); + + /***** Put icon with link *****/ + Act_LinkFormSubmit (Txt_Continue,"GAM_PLAY_CONTINUE ICO_HIGHLIGHT",NULL); + fprintf (Gbl.F.Out,"\"%s\"" + "
" + "%s", + Gbl.Prefs.IconsURL,Txt_Continue,Txt_Continue, + Txt_Continue); + fprintf (Gbl.F.Out,""); + + /***** End form *****/ + Act_FormEnd (); + + /***** End container *****/ fprintf (Gbl.F.Out,"
"); }