Merge with develop

This commit is contained in:
kervala 2016-09-20 21:59:11 +02:00
parent 333a80bad4
commit e20e3b4866
4 changed files with 42 additions and 39 deletions

View file

@ -10,7 +10,7 @@ end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- called when server send an invitaion we receive a text id containing the string to display (invitor name) -- called when server send an invitaion we receive a text id containing the string to display (invitor name)
function game:onTeamInvation(textID) function game:onTeamInvation(textID)
local ui = getUI('ui:interface:join_team_proposal'); local ui = getUI('ui:interface:join_team_proposal');
ui.content.inside.invitor_name.textid = textID; ui.content.inside.invitor_name.textid = textID;
ui.active = true; ui.active = true;
@ -20,7 +20,7 @@ function game:onTeamInvation(textID)
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- --
function game:teamInvitationAccept() function game:teamInvitationAccept()
local ui = getUI('ui:interface:join_team_proposal'); local ui = getUI('ui:interface:join_team_proposal');
@ -29,7 +29,7 @@ function game:teamInvitationAccept()
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- --
function game:teamInvitationRefuse() function game:teamInvitationRefuse()
local ui = getUI('ui:interface:join_team_proposal'); local ui = getUI('ui:interface:join_team_proposal');
@ -38,7 +38,7 @@ function game:teamInvitationRefuse()
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- --
function game:switchChatTab(dbEntry) function game:switchChatTab(dbEntry)
local db= 'UI:SAVE:ISENABLED:' .. dbEntry; local db= 'UI:SAVE:ISENABLED:' .. dbEntry;
local val= getDbProp(db); local val= getDbProp(db);
@ -51,13 +51,13 @@ function game:switchChatTab(dbEntry)
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- --
function game:updateEmoteMenu(prop, tooltip, tooltip_pushed, name, param) function game:updateEmoteMenu(prop, tooltip, tooltip_pushed, name, param)
for i=0,9 do for i=0,9 do
-- Get key shortcut -- Get key shortcut
local text = i18n.get('uiTalkMemMsg0' .. i); local text = i18n.get('uiTalkMemMsg0' .. i);
local key = runExpr( "getKey('talk_message','0" .. i .. "',1)" ); local key = runExpr( "getKey('talk_message','0" .. i .. "',1)" );
if (key ~= nil and key ~= '') then if (key ~= nil and key ~= '') then
key = ' @{T25}@{2F2F}(' .. key .. ')'; key = ' @{T25}@{2F2F}(' .. key .. ')';
text = concatUCString(text, 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); local uiQC= getUI("ui:interface:user_chat_emote_menu:quick_chat:" .. "qc" .. i);
uiQC.uc_hardtext_format= text; uiQC.uc_hardtext_format= text;
end end
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- --
if (ui_free_chat_h == nil) then if (ui_free_chat_h == nil) then
ui_free_chat_h = {} ui_free_chat_h = {}
end end
@ -81,14 +81,14 @@ if (ui_free_chat_w == nil) then
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- --
function game:closeTellHeader(uiID) function game:closeTellHeader(uiID)
local ui = getUI('ui:interface:' .. uiID); local ui = getUI('ui:interface:' .. uiID);
-- save size -- save size
ui_free_chat_h[uiID] = ui.h; ui_free_chat_h[uiID] = ui.h;
ui_free_chat_w[uiID] = ui.w; ui_free_chat_w[uiID] = ui.w;
-- reduce window size -- reduce window size
ui.pop_min_h = 32; ui.pop_min_h = 32;
ui.h = 0; ui.h = 0;
@ -96,7 +96,7 @@ function game:closeTellHeader(uiID)
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- --
function game:openTellHeader(uiID) function game:openTellHeader(uiID)
local ui = getUI('ui:interface:' .. uiID); local ui = getUI('ui:interface:' .. uiID);
ui.pop_min_h = 96; ui.pop_min_h = 96;
@ -105,7 +105,7 @@ function game:openTellHeader(uiID)
if (ui_free_chat_h[uiID] ~= nil) then if (ui_free_chat_h[uiID] ~= nil) then
ui.h = ui_free_chat_h[uiID]; ui.h = ui_free_chat_h[uiID];
end end
if (ui_free_chat_w[uiID] ~= nil) then if (ui_free_chat_w[uiID] ~= nil) then
ui.w = ui_free_chat_w[uiID]; ui.w = ui_free_chat_w[uiID];
end end
@ -127,12 +127,12 @@ local function levelToForceRegion(level)
return 6 return 6
else else
return math.floor(level / 50) + 2 return math.floor(level / 50) + 2
end end
end end
local function levelToLevelForce(level) local function levelToLevelForce(level)
return math.floor(math.fmod(level, 50) * 5 / 50) + 1 return math.floor(math.fmod(level, 50) * 5 / 50) + 1
end end
@ -186,7 +186,7 @@ end
local function twIsTargetPlayer() local function twIsTargetPlayer()
if config.Local == 1 then if config.Local == 1 then
return twTargetPlayer return twTargetPlayer
else else
return isTargetPlayer() return isTargetPlayer()
end end
end end
@ -195,7 +195,7 @@ end
local function twIsPlayerInPVPMode() local function twIsPlayerInPVPMode()
if config.Local == 1 then if config.Local == 1 then
return twPlayerInPVPMode return twPlayerInPVPMode
else else
return isPlayerInPVPMode() return isPlayerInPVPMode()
end end
end end
@ -204,7 +204,7 @@ end
local function twIsTargetInPVPMode() local function twIsTargetInPVPMode()
if config.Local == 1 then if config.Local == 1 then
return twTargetInPVPMode return twTargetInPVPMode
else else
return isTargetInPVPMode() return isTargetInPVPMode()
end end
end end
@ -219,15 +219,15 @@ end
function game:updateTargetConsiderUI() function game:updateTargetConsiderUI()
--debugInfo("Updating consider widget") --debugInfo("Updating consider widget")
local targetWindow = getUI("ui:interface:target") local targetWindow = getUI("ui:interface:target")
-- --
local wgTargetSlotForce = targetWindow:find("slot_force") local wgTargetSlotForce = targetWindow:find("slot_force")
local wgTargetLevel = targetWindow:find("target_level") local wgTargetLevel = targetWindow:find("target_level")
local wgImpossible = targetWindow:find("impossible") local wgImpossible = targetWindow:find("impossible")
local wgSlotRing = targetWindow:find("slot_ring") local wgSlotRing = targetWindow:find("slot_ring")
local wgToolTip = targetWindow:find("target_tooltip") local wgToolTip = targetWindow:find("target_tooltip")
local wgPvPTag = targetWindow:find("pvp_tags") local wgPvPTag = targetWindow:find("pvp_tags")
local wgHeader = targetWindow:find("header_opened") local wgHeader = targetWindow:find("header_opened")
wgTargetSlotForce.active = true wgTargetSlotForce.active = true
wgImpossible.active = true wgImpossible.active = true
@ -237,7 +237,7 @@ function game:updateTargetConsiderUI()
wgTargetSlotForce.active = false wgTargetSlotForce.active = false
wgTargetLevel.active = false wgTargetLevel.active = false
wgImpossible.active = false wgImpossible.active = false
wgSlotRing.active = false wgSlotRing.active = false
if (isTargetUser() and twIsPlayerInPVPMode()) then if (isTargetUser() and twIsPlayerInPVPMode()) then
wgToolTip.tooltip = "" wgToolTip.tooltip = ""
wgPvPTag.active = true wgPvPTag.active = true
@ -288,14 +288,14 @@ function game:updateTargetConsiderUI()
local impossible = (twGetTargetLevel() - twGetPlayerLevel() > maxDiffLevel) local impossible = (twGetTargetLevel() - twGetPlayerLevel() > maxDiffLevel)
wgSlotRing.active = false wgSlotRing.active = false
if impossible then if impossible then
-- targeted object is too hard too beat, display a skull -- targeted object is too hard too beat, display a skull
wgTargetLevel.active = false wgTargetLevel.active = false
wgImpossible.y = -5 wgImpossible.y = -5
wgImpossible.color = "255 50 50 255" wgImpossible.color = "255 50 50 255"
else else
-- player can see the level of the targeted creature -- player can see the level of the targeted creature
wgTargetLevel.active = true wgTargetLevel.active = true
wgImpossible.y = 6 wgImpossible.y = 6
wgTargetLevel.hardtext = tostring(twGetTargetLevel()) wgTargetLevel.hardtext = tostring(twGetTargetLevel())
@ -309,7 +309,7 @@ function game:updateTargetConsiderUI()
wgImpossible.texture = getDefine("force_level_" .. tostring(levelForce)) wgImpossible.texture = getDefine("force_level_" .. tostring(levelForce))
wgImpossible.active = true wgImpossible.active = true
if levelForce < 6 then if levelForce < 6 then
wgToolTip.tooltip = i18n.get("uittConsiderTargetLevel") wgToolTip.tooltip = i18n.get("uittConsiderTargetLevel")
elseif levelForce == 6 then elseif levelForce == 6 then
-- Named creature -- Named creature
@ -342,7 +342,6 @@ function game:updateTargetConsiderUI()
if impossible then if impossible then
wgToolTip.tooltip = concatUCString(wgToolTip.tooltip, ucstring("\n"), i18n.get("uittConsiderUnknownLevel")) wgToolTip.tooltip = concatUCString(wgToolTip.tooltip, ucstring("\n"), i18n.get("uittConsiderUnknownLevel"))
end end
end end
---------------------- ----------------------
@ -505,18 +504,18 @@ function twGroup(groupSize)
else else
setDbProp("SERVER:GROUP:" .. tostring(gm) .. ":PRESENT", 0) setDbProp("SERVER:GROUP:" .. tostring(gm) .. ":PRESENT", 0)
end end
end end
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- --
function game:closeWebIGBrowserHeader() function game:closeWebIGBrowserHeader()
local ui = getUI('ui:interface:webig'); local ui = getUI('ui:interface:webig');
-- save size -- save size
ui_webig_browser_h = ui.h; ui_webig_browser_h = ui.h;
ui_webig_browser_w = ui.w; ui_webig_browser_w = ui.w;
-- reduce window size -- reduce window size
ui.pop_min_h = 32; ui.pop_min_h = 32;
ui.h = 0; ui.h = 0;
@ -524,7 +523,7 @@ function game:closeWebIGBrowserHeader()
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- --
function game:openWebIGBrowserHeader() function game:openWebIGBrowserHeader()
local ui = getUI('ui:interface:webig'); local ui = getUI('ui:interface:webig');
ui.pop_min_h = 96; ui.pop_min_h = 96;
@ -533,7 +532,7 @@ function game:openWebIGBrowserHeader()
if (ui_webig_browser_h ~= nil) then if (ui_webig_browser_h ~= nil) then
ui.h = ui_webig_browser_h; ui.h = ui_webig_browser_h;
end end
if (ui_webig_browser_w ~= nil) then if (ui_webig_browser_w ~= nil) then
ui.w = ui_webig_browser_w; ui.w = ui_webig_browser_w;
end end

View file

@ -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_url="http://downloads.sourceforge.net/project/ryzom/ryzom_live_data.7z?r=&ts=$TIMESTAMP"
data_download_filename=ryzom_live_data.7z data_download_filename=ryzom_live_data.7z
data_compressed_size=1500000000 data_compressed_size=1500000000
data_uncompressed_size=10000000000 data_uncompressed_size=7000000000
client_download_url="http://downloads.sourceforge.net/project/ryzom/ryzom_live_client_$ARCH.zip?r=&ts=$TIMESTAMP" client_download_url="http://downloads.sourceforge.net/project/ryzom/ryzom_live_client_$ARCH.7z?r=&ts=$TIMESTAMP"
client_download_filename=ryzom_live_client_$ARCH.zip client_download_filename=ryzom_live_client_$ARCH.7z
client_filename_windows=ryzom_client_r.exe client_filename_windows=ryzom_client_r.exe
client_filename_osx=Ryzom.app/Contents/MacOS/Ryzom client_filename_osx=Ryzom.app/Contents/MacOS/Ryzom
client_filename_linux=ryzom_client client_filename_linux=ryzom_client

View file

@ -43,8 +43,10 @@ CMainWindow::CMainWindow():QMainWindow()
connect(actionProfiles, SIGNAL(triggered()), SLOT(onProfiles())); connect(actionProfiles, SIGNAL(triggered()), SLOT(onProfiles()));
// remove debug options // remove debug options
#ifndef _DEBUG
actionSettings->setVisible(false); actionSettings->setVisible(false);
actionUninstall->setVisible(false); actionUninstall->setVisible(false);
#endif
connect(actionSettings, SIGNAL(triggered()), SLOT(onSettings())); connect(actionSettings, SIGNAL(triggered()), SLOT(onSettings()));
connect(actionUninstall, SIGNAL(triggered()), SLOT(onUninstall())); connect(actionUninstall, SIGNAL(triggered()), SLOT(onUninstall()));

View file

@ -1193,16 +1193,18 @@ void COperationDialog::deleteComponentsDownloadedFiles()
QDir dir(path); QDir dir(path);
QStringList filter; QStringList filter;
filter << "*.log";
filter << "*.7z"; filter << "*.7z";
filter << "*.bnp"; filter << "*.bnp";
filter << "*.zip"; filter << "*.zip";
filter << "*.part"; filter << "*.part";
filter << "ryzom_installer_uninstalling_old_client";
QStringList files = dir.entryList(filter, QDir::Files); QStringList files = dir.entryList(filter, QDir::Files);
foreach(const QString &file, files) foreach(const QString &file, files)
{ {
if (!QFile::remove(file)) if (!QFile::remove(dir.filePath(file)))
{ {
qDebug() << "Unable to delete" << file; qDebug() << "Unable to delete" << file;
} }