From e20e3b48669849026087f5c2878c369276916ef7 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 20 Sep 2016 21:59:11 +0200 Subject: [PATCH] Merge with develop --- .../gamedev/interfaces_v3/interaction.lua | 69 +++++++++---------- .../ryzom_installer/res/ryzom_installer.ini | 6 +- .../client/ryzom_installer/src/mainwindow.cpp | 2 + .../ryzom_installer/src/operationdialog.cpp | 4 +- 4 files changed, 42 insertions(+), 39 deletions(-) diff --git a/code/ryzom/client/data/gamedev/interfaces_v3/interaction.lua b/code/ryzom/client/data/gamedev/interfaces_v3/interaction.lua index e10ad2f6f..489484ee8 100644 --- a/code/ryzom/client/data/gamedev/interfaces_v3/interaction.lua +++ b/code/ryzom/client/data/gamedev/interfaces_v3/interaction.lua @@ -10,7 +10,7 @@ end ------------------------------------------------------------------------------------------------------------ -- called when server send an invitaion we receive a text id containing the string to display (invitor name) function game:onTeamInvation(textID) - + local ui = getUI('ui:interface:join_team_proposal'); ui.content.inside.invitor_name.textid = textID; ui.active = true; @@ -20,7 +20,7 @@ function game:onTeamInvation(textID) end ------------------------------------------------------------------------------------------------------------ --- +-- function game:teamInvitationAccept() local ui = getUI('ui:interface:join_team_proposal'); @@ -29,7 +29,7 @@ function game:teamInvitationAccept() end ------------------------------------------------------------------------------------------------------------ --- +-- function game:teamInvitationRefuse() local ui = getUI('ui:interface:join_team_proposal'); @@ -38,7 +38,7 @@ function game:teamInvitationRefuse() end ------------------------------------------------------------------------------------------------------------ --- +-- function game:switchChatTab(dbEntry) local db= 'UI:SAVE:ISENABLED:' .. dbEntry; local val= getDbProp(db); @@ -51,13 +51,13 @@ function game:switchChatTab(dbEntry) end ------------------------------------------------------------------------------------------------------------ --- +-- function game:updateEmoteMenu(prop, tooltip, tooltip_pushed, name, param) for i=0,9 do -- Get key shortcut local text = i18n.get('uiTalkMemMsg0' .. i); local key = runExpr( "getKey('talk_message','0" .. i .. "',1)" ); - + if (key ~= nil and key ~= '') then key = ' @{T25}@{2F2F}(' .. key .. ')'; text = concatUCString(text, key); @@ -67,11 +67,11 @@ function game:updateEmoteMenu(prop, tooltip, tooltip_pushed, name, param) local uiQC= getUI("ui:interface:user_chat_emote_menu:quick_chat:" .. "qc" .. i); uiQC.uc_hardtext_format= text; end - + end ------------------------------------------------------------------------------------------------------------ --- +-- if (ui_free_chat_h == nil) then ui_free_chat_h = {} end @@ -81,14 +81,14 @@ if (ui_free_chat_w == nil) then end ------------------------------------------------------------------------------------------------------------ --- +-- function game:closeTellHeader(uiID) local ui = getUI('ui:interface:' .. uiID); - + -- save size ui_free_chat_h[uiID] = ui.h; ui_free_chat_w[uiID] = ui.w; - + -- reduce window size ui.pop_min_h = 32; ui.h = 0; @@ -96,7 +96,7 @@ function game:closeTellHeader(uiID) end ------------------------------------------------------------------------------------------------------------ --- +-- function game:openTellHeader(uiID) local ui = getUI('ui:interface:' .. uiID); ui.pop_min_h = 96; @@ -105,7 +105,7 @@ function game:openTellHeader(uiID) if (ui_free_chat_h[uiID] ~= nil) then ui.h = ui_free_chat_h[uiID]; end - + if (ui_free_chat_w[uiID] ~= nil) then ui.w = ui_free_chat_w[uiID]; end @@ -127,12 +127,12 @@ local function levelToForceRegion(level) return 6 else return math.floor(level / 50) + 2 - end -end + end +end local function levelToLevelForce(level) - return math.floor(math.fmod(level, 50) * 5 / 50) + 1 -end + return math.floor(math.fmod(level, 50) * 5 / 50) + 1 +end @@ -186,7 +186,7 @@ end local function twIsTargetPlayer() if config.Local == 1 then return twTargetPlayer - else + else return isTargetPlayer() end end @@ -195,7 +195,7 @@ end local function twIsPlayerInPVPMode() if config.Local == 1 then return twPlayerInPVPMode - else + else return isPlayerInPVPMode() end end @@ -204,7 +204,7 @@ end local function twIsTargetInPVPMode() if config.Local == 1 then return twTargetInPVPMode - else + else return isTargetInPVPMode() end end @@ -219,15 +219,15 @@ end function game:updateTargetConsiderUI() --debugInfo("Updating consider widget") - local targetWindow = getUI("ui:interface:target") - -- + local targetWindow = getUI("ui:interface:target") + -- local wgTargetSlotForce = targetWindow:find("slot_force") local wgTargetLevel = targetWindow:find("target_level") local wgImpossible = targetWindow:find("impossible") local wgSlotRing = targetWindow:find("slot_ring") local wgToolTip = targetWindow:find("target_tooltip") - local wgPvPTag = targetWindow:find("pvp_tags") - local wgHeader = targetWindow:find("header_opened") + local wgPvPTag = targetWindow:find("pvp_tags") + local wgHeader = targetWindow:find("header_opened") wgTargetSlotForce.active = true wgImpossible.active = true @@ -237,7 +237,7 @@ function game:updateTargetConsiderUI() wgTargetSlotForce.active = false wgTargetLevel.active = false wgImpossible.active = false - wgSlotRing.active = false + wgSlotRing.active = false if (isTargetUser() and twIsPlayerInPVPMode()) then wgToolTip.tooltip = "" wgPvPTag.active = true @@ -288,14 +288,14 @@ function game:updateTargetConsiderUI() local impossible = (twGetTargetLevel() - twGetPlayerLevel() > maxDiffLevel) wgSlotRing.active = false - + if impossible then -- targeted object is too hard too beat, display a skull wgTargetLevel.active = false wgImpossible.y = -5 wgImpossible.color = "255 50 50 255" else - -- player can see the level of the targeted creature + -- player can see the level of the targeted creature wgTargetLevel.active = true wgImpossible.y = 6 wgTargetLevel.hardtext = tostring(twGetTargetLevel()) @@ -309,7 +309,7 @@ function game:updateTargetConsiderUI() wgImpossible.texture = getDefine("force_level_" .. tostring(levelForce)) wgImpossible.active = true - if levelForce < 6 then + if levelForce < 6 then wgToolTip.tooltip = i18n.get("uittConsiderTargetLevel") elseif levelForce == 6 then -- Named creature @@ -342,7 +342,6 @@ function game:updateTargetConsiderUI() if impossible then wgToolTip.tooltip = concatUCString(wgToolTip.tooltip, ucstring("\n"), i18n.get("uittConsiderUnknownLevel")) end - end ---------------------- @@ -505,18 +504,18 @@ function twGroup(groupSize) else setDbProp("SERVER:GROUP:" .. tostring(gm) .. ":PRESENT", 0) end - end + end end ------------------------------------------------------------------------------------------------------------ --- +-- function game:closeWebIGBrowserHeader() local ui = getUI('ui:interface:webig'); - + -- save size ui_webig_browser_h = ui.h; ui_webig_browser_w = ui.w; - + -- reduce window size ui.pop_min_h = 32; ui.h = 0; @@ -524,7 +523,7 @@ function game:closeWebIGBrowserHeader() end ------------------------------------------------------------------------------------------------------------ --- +-- function game:openWebIGBrowserHeader() local ui = getUI('ui:interface:webig'); ui.pop_min_h = 96; @@ -533,7 +532,7 @@ function game:openWebIGBrowserHeader() if (ui_webig_browser_h ~= nil) then ui.h = ui_webig_browser_h; end - + if (ui_webig_browser_w ~= nil) then ui.w = ui_webig_browser_w; end diff --git a/code/ryzom/tools/client/ryzom_installer/res/ryzom_installer.ini b/code/ryzom/tools/client/ryzom_installer/res/ryzom_installer.ini index 692d71067..75aa58e09 100644 --- a/code/ryzom/tools/client/ryzom_installer/res/ryzom_installer.ini +++ b/code/ryzom/tools/client/ryzom_installer/res/ryzom_installer.ini @@ -20,9 +20,9 @@ display_url="http://app.ryzom.com/app_releasenotes/index.php?lang=$LANG" data_download_url="http://downloads.sourceforge.net/project/ryzom/ryzom_live_data.7z?r=&ts=$TIMESTAMP" data_download_filename=ryzom_live_data.7z data_compressed_size=1500000000 -data_uncompressed_size=10000000000 -client_download_url="http://downloads.sourceforge.net/project/ryzom/ryzom_live_client_$ARCH.zip?r=&ts=$TIMESTAMP" -client_download_filename=ryzom_live_client_$ARCH.zip +data_uncompressed_size=7000000000 +client_download_url="http://downloads.sourceforge.net/project/ryzom/ryzom_live_client_$ARCH.7z?r=&ts=$TIMESTAMP" +client_download_filename=ryzom_live_client_$ARCH.7z client_filename_windows=ryzom_client_r.exe client_filename_osx=Ryzom.app/Contents/MacOS/Ryzom client_filename_linux=ryzom_client diff --git a/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp b/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp index 0f196a787..daab29bb8 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp @@ -43,8 +43,10 @@ CMainWindow::CMainWindow():QMainWindow() connect(actionProfiles, SIGNAL(triggered()), SLOT(onProfiles())); // remove debug options +#ifndef _DEBUG actionSettings->setVisible(false); actionUninstall->setVisible(false); +#endif connect(actionSettings, SIGNAL(triggered()), SLOT(onSettings())); connect(actionUninstall, SIGNAL(triggered()), SLOT(onUninstall())); diff --git a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp index 23ba8c761..36ea6d6f2 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp @@ -1193,16 +1193,18 @@ void COperationDialog::deleteComponentsDownloadedFiles() QDir dir(path); QStringList filter; + filter << "*.log"; filter << "*.7z"; filter << "*.bnp"; filter << "*.zip"; filter << "*.part"; + filter << "ryzom_installer_uninstalling_old_client"; QStringList files = dir.entryList(filter, QDir::Files); foreach(const QString &file, files) { - if (!QFile::remove(file)) + if (!QFile::remove(dir.filePath(file))) { qDebug() << "Unable to delete" << file; }