From f5c0cbcdf39a519b8e8bef4d5075e0e23613d5e9 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Wed, 15 Jan 2020 19:21:28 +0200 Subject: [PATCH 1/3] Changed: Also show item parts quantity on craft sbrick info window --- code/ryzom/client/src/interface_v3/action_handler_help.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/interface_v3/action_handler_help.cpp b/code/ryzom/client/src/interface_v3/action_handler_help.cpp index 43797b960..ac1480e0c 100644 --- a/code/ryzom/client/src/interface_v3/action_handler_help.cpp +++ b/code/ryzom/client/src/interface_v3/action_handler_help.cpp @@ -3053,7 +3053,7 @@ void getSabrinaBrickText(CSBrickSheet *pBR, ucstring &brickText) // Display the part this slot build. mpInfo+= "@{T4}"; - mpInfo+= RM_FABER_TYPE::toLocalString(mpSlot.FaberTypeFilter); + mpInfo+= toString("%dx ", mpSlot.Quantity) + RM_FABER_TYPE::toLocalString(mpSlot.FaberTypeFilter); mpInfo+= "\n"; } // replace in brickText @@ -3074,7 +3074,7 @@ void getSabrinaBrickText(CSBrickSheet *pBR, ucstring &brickText) // Display the required item mpInfo+= "@{T4}"; - mpInfo+= STRING_MANAGER::CStringManagerClient::getItemLocalizedName(mpSlot.ItemRequired); + mpInfo+= toString("%dx ", mpSlot.Quantity) + STRING_MANAGER::CStringManagerClient::getItemLocalizedName(mpSlot.ItemRequired); mpInfo+= "\n"; } // replace in brickText From 45b1bab23fdd0e103cde08f8b0496a91eaf243f5 Mon Sep 17 00:00:00 2001 From: Ulukyn Date: Tue, 21 Jan 2020 15:01:42 +0100 Subject: [PATCH 2/3] Changed: Updated PrintfCommands for next Season --- code/ryzom/client/client_default.cfg | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/code/ryzom/client/client_default.cfg b/code/ryzom/client/client_default.cfg index 7431807cf..66c260273 100644 --- a/code/ryzom/client/client_default.cfg +++ b/code/ryzom/client/client_default.cfg @@ -416,23 +416,15 @@ SystemInfoColors = }; PrintfCommands = { - "52", "15", "55 55 0 255", "28", "uiChapterV", "624", - "428", "0 0 0 255", "18", "", "624", "378", - "0 0 0 255", "14", "", "644", "278", "0 0 0 255", - "18", "", "52", "17", "255 255 255 255", "28", - "uiChapterV", "622", "430", "255 255 255 255", "18", "", - "622", "380", "255 255 255 255", "14", "", "642", - "280", "255 255 255 255", "18", "" + "0", "132", "30 144 255 255", "18", "uiS2", + "0", "105", "255 188 0 255", "14", "uiS2E0", + "0", "65", "255 255 255 255", "12", "NEWS" }; PrintfCommandsFreeTrial = { - "52", "15", "55 55 0 255", "28", "uiChapterV", "624", - "428", "0 0 0 255", "18", "", "624", "378", - "0 0 0 255", "14", "", "644", "278", "0 0 0 255", - "18", "", "52", "17", "255 255 255 255", "28", - "uiChapterV", "622", "430", "255 255 255 255", "18", "", - "622", "380", "255 255 255 255", "14", "", "642", - "280", "255 255 255 255", "18", "" + "0", "132", "30 144 255 255", "18", "uiS2", + "0", "105", "255 188 0 255", "14", "uiS2E0", + "0", "65", "255 255 255 255", "12", "NEWS" }; DisplayMissingAnimFile = 0; From 954151ca7328fd9d19550a327f4f5433ee4dbd4b Mon Sep 17 00:00:00 2001 From: Ulukyn Date: Tue, 21 Jan 2020 15:04:43 +0100 Subject: [PATCH 3/3] Added: new way to manage news at loading screen --- code/ryzom/client/src/global.cpp | 1 + code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp | 11 +++++++++++ code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h | 1 + code/ryzom/client/src/progress.cpp | 10 ++++++++-- 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/global.cpp b/code/ryzom/client/src/global.cpp index 4b8e1aad7..d5113e0a9 100644 --- a/code/ryzom/client/src/global.cpp +++ b/code/ryzom/client/src/global.cpp @@ -78,6 +78,7 @@ std::vector LogoBitmaps; extern uint TipsOfTheDayIndex; extern ucstring TipsOfTheDay; +extern string NewsAtProgress; extern bool UseEscapeDuringLoading; CProgress::CProgress () @@ -379,10 +380,15 @@ void CProgress::internalProgress (float value) float x = 0.5f;//((*itpc).X / 1024.f); float y = ((*itpc).Y / 768.f); TextContext->setColor( (*itpc).Color ); - TextContext->setFontSize( (uint)(16.f * fontFactor)); + TextContext->setFontSize( (uint)((*itpc).FontSize * fontFactor)); // build the ucstr(s) - ucstring ucstr = CI18N::get((*itpc).Text); + string text = (*itpc).Text; + ucstring ucstr; + if (text == "NEWS") + ucstr.fromUtf8(NewsAtProgress); + else + ucstr = CI18N::get(text); vector vucstr; ucstring sep("\n"); splitUCString(ucstr,sep,vucstr);