Changed: Removed extraneous spaces

--HG--
branch : develop
This commit is contained in:
kervala 2016-09-20 21:40:17 +02:00
parent e4d3407be5
commit dc2dad8c77

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