diff --git a/CMakeLists.txt b/CMakeLists.txt index e7b3cc942..45c00c241 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,8 +41,8 @@ OPTION(HUNTER_ENABLED "Enable Hunter package manager" OFF) IF(HUNTER_ENABLED) INCLUDE("CMakeModules/HunterGate.cmake") HunterGate( - URL "https://github.com/cpp-pm/hunter/archive/v0.23.317.tar.gz" - SHA1 "fbdd94b1966d351384e27b02c8d134915b1131d6" + URL "https://github.com/cpp-pm/hunter/archive/v0.23.321.tar.gz" + SHA1 "5e53cbb0429037ea8e2592bfd92704b8ff3ab492" FILEPATH "${CMAKE_CURRENT_LIST_DIR}/CMakeModules/HunterConfig.cmake" ) diff --git a/ryzom/client/data/gamedev/interfaces_v3/actions.xml b/ryzom/client/data/gamedev/interfaces_v3/actions.xml index de2df5798..bfd245806 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/actions.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/actions.xml @@ -1,659 +1,612 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ryzom/client/data/gamedev/interfaces_v3/appzone.xml b/ryzom/client/data/gamedev/interfaces_v3/appzone.xml index 79595ffe1..55e11fb86 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/appzone.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/appzone.xml @@ -1,260 +1,56 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + diff --git a/ryzom/client/data/gamedev/interfaces_v3/ark.lua b/ryzom/client/data/gamedev/interfaces_v3/ark.lua index 8666be557..fa08c5e00 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/ark.lua +++ b/ryzom/client/data/gamedev/interfaces_v3/ark.lua @@ -22,31 +22,55 @@ if ArkMissionCatalog == nil then } end -function ArkMissionCatalog:OpenWindow(urlA, urlB) - local winframe = WebBrowser:addWindow("ark_mission_catalog", "Mission Catalog", getUI(ArkMissionCatalog.window_id)) +function ArkMissionCatalog:OpenWindow(urlA, urlB, dont_active) + ArkMissionCatalog.window_id = "ui:interface:encyclopedia" + local winframe = getUI(ArkMissionCatalog.window_id) winframe.opened=true - winframe.active=true - winframe.w = 950 + if dont_active ~= true then + winframe.active=true + end ArkMissionCatalog.window = winframe - getUI(ArkMissionCatalog.window_id..":content:htmlA"):browse(urlA) + getUI("ui:interface:encyclopedia:content:htmlA"):browse(urlA) - local htmlb = getUI(ArkMissionCatalog.window_id..":content:htmlB") - if htmlb.home == "" then - htmlb.home = urlB - end + local htmlb = getUI("ui:interface:encyclopedia:content:htmlB") + htmlb.home = urlB htmlb:browse("home") - end - -function ArkMissionCatalog:OpenCat(url) +function ArkMissionCatalog:OpenCat(cat, url) + local ency = getUI("ui:interface:encyclopedia") + setOnDraw(ency, "") + ArkMissionCatalog.cat = cat local htmlb = getUI(ArkMissionCatalog.window_id..":content:htmlB") - htmlb.home = url+"&continent="+getContinentSheet() + local htmlc = getUI(ArkMissionCatalog.window_id..":content:htmlC") + if cat == "title" then + ArkMissionCatalog.posxB = 180 + ArkMissionCatalog.widthB = 240 + ArkMissionCatalog.widthC = 530 + ArkMissionCatalog.posxC = 405 + + local htmlB = getUI(ArkMissionCatalog.window_id..":content:htmlB") + local htmlC = getUI(ArkMissionCatalog.window_id..":content:htmlC") + htmlB.x = ArkMissionCatalog.posxB + htmlB.w = ArkMissionCatalog.widthB + htmlC.w = ArkMissionCatalog.widthC + htmlC.x = ArkMissionCatalog.posxC + htmlC.active = true + else + ArkMissionCatalog.widthB = 740 + htmlb.w = ArkMissionCatalog.widthB + if htmlc then + htmlc.active = false + end + end + htmlb.home = url.."&continent="..getContinentSheet() htmlb:browse("home") + setOnDraw(ency, "ArkMissionCatalog:autoResize()") end +-- TODO: check removing fromUTF8 function ArkMissionCatalog:UpdateMissionTexts(win, id, text1, text2) local w = win:find("ark_mission_"..id) local text = ucstring() @@ -72,36 +96,59 @@ function ArkMissionCatalog:autoResize() local ui = getUI(ArkMissionCatalog.window_id) local htmlA = getUI(ArkMissionCatalog.window_id..":content:htmlA") local htmlB = getUI(ArkMissionCatalog.window_id..":content:htmlB") + local htmlC = getUI(ArkMissionCatalog.window_id..":content:htmlC") - if ArkMissionCatalog.cat == "storyline" then - if ui.w < 784 then - if ArkMissionCatalog.cat == "storyline" then + if htmlC.active == false then + if ArkMissionCatalog.cat == "storyline" then + if ui.w < 784 then local td30 = htmlB:find("storyline_content") if td30 ~= nil then td30.x = math.max(0, 200-784+ui.w) ArkMissionCatalog.need_restore_td30 = true end - end - else - if ArkMissionCatalog.need_restore_td30 then - local td30 = htmlB:find("storyline_content") - if td30 ~= nil then - td30.x = 200 - ArkMissionCatalog.need_restore_td30 = false + else + if ArkMissionCatalog.need_restore_td30 then + local td30 = htmlB:find("storyline_content") + if td30 ~= nil then + td30.x = 200 + ArkMissionCatalog.need_restore_td30 = false + end end end end - end - if ui.w < 950 then - htmlA.w = math.max(60, 220-950+ui.w) - htmlB.x = math.max(35, 190-950+ui.w) - ArkMissionCatalog.need_restore = true + if ui.w < 950 then + htmlA.w = math.max(60, 220-950+ui.w) + htmlB.x = math.max(35, 190-950+ui.w) + ArkMissionCatalog.need_restore = true + else + if ArkMissionCatalog.need_restore then + htmlA.w = 220 + htmlB.x = 190 + ArkMissionCatalog.need_restore = false + end + end else - if ArkMissionCatalog.need_restore then - htmlA.w = 220 - htmlB.x = 190 - ArkMissionCatalog.need_restore = false + if ui.w < 950 then + htmlA.w = math.max(68, 220-950+ui.w) + htmlB.x = math.max(35, ArkMissionCatalog.posxB-950+ui.w) + if htmlB:find("scroll_bar").h > 0 then + htmlC.x = math.max(80, ui.w-htmlC.w) + htmlB.w = math.max(62, ui.w-htmlA.w-htmlC.x+16) + else + htmlC.x = math.max(75, ui.w-htmlC.w-16) + htmlB.w = math.max(55, htmlC.x-htmlB.x+16) + end + ArkMissionCatalog.need_restore = true + else + if ArkMissionCatalog.need_restore then + htmlA.w = 220 + htmlB.w = ArkMissionCatalog.widthB + htmlB.x = ArkMissionCatalog.posxB + htmlC.w = ArkMissionCatalog.widthC + htmlC.x = ArkMissionCatalog.posxC + ArkMissionCatalog.need_restore = false + end end end end diff --git a/ryzom/client/data/gamedev/interfaces_v3/bg_downloader.lua b/ryzom/client/data/gamedev/interfaces_v3/bg_downloader.lua index f133eae27..161012d9e 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/bg_downloader.lua +++ b/ryzom/client/data/gamedev/interfaces_v3/bg_downloader.lua @@ -48,7 +48,7 @@ function bgdownloader:setProgressText(ucstr, color, progress, ellipsis) local text = self:getProgressGroup():find("text") local ellipsisTxt = self:getProgressGroup():find("ellipsis") text.color = color - text.text = ucstr + text.uc_hardtext = ucstr if ellipsis then ellipsisTxt.hardtext = ellipsis else @@ -60,7 +60,7 @@ function bgdownloader:setProgressText(ucstr, color, progress, ellipsis) -- any current download to finish, otherwise connection may be lost) self:setIcon("bgd_pause.tga") ellipsisTxt.hardtext = "" - text.text = pausedText + text.uc_hardtext = pausedText else self:setIcon("") local progressCtrl = self:getProgressBar() @@ -88,7 +88,7 @@ function bgdownloader:setPatchProgress(progress) local progressDate = nltime.getLocalTime() / 500 local colValue = math.floor(230 + 24 * math.sin(progressDate)) local color = string.format("%d %d %d %d", colValue, colValue, colValue, 255) - self:setProgressText(concatString(i18n.get("uiBGD_Progress"), progressPercentText), color, progress, progressSymbol[progressPostfix + 1]) + self:setProgressText(concatUCString(i18n.get("uiBGD_Progress"), ucstring(progressPercentText)), color, progress, progressSymbol[progressPostfix + 1]) end ------------------------------------------------------------------------------------------------------------ @@ -110,7 +110,7 @@ function bgdownloader:setPatchError() self:getProgressGroup().active = true end local errMsg = getPatchLastErrorMessage() - if errMsg == "" then + if errMsg == ucstring() then self:setProgressText(i18n.get("uiBGD_PatchError"), "255 0 0 255", 0) else self:setProgressText(errMsg, "255 0 0 255", 0) diff --git a/ryzom/client/data/gamedev/interfaces_v3/bg_downloader.xml b/ryzom/client/data/gamedev/interfaces_v3/bg_downloader.xml index 914b4f2ff..48c26b720 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/bg_downloader.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/bg_downloader.xml @@ -1,74 +1,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ryzom/client/data/gamedev/interfaces_v3/bot_chat_v4.xml b/ryzom/client/data/gamedev/interfaces_v3/bot_chat_v4.xml index 69cf329f4..e1d76646b 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/bot_chat_v4.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/bot_chat_v4.xml @@ -1,1590 +1,1030 @@ - - - - - - - - - - - - - - - - - - - - - - -