diff --git a/ryzom/client/data/gamedev/interfaces_v3/bg_downloader.lua b/ryzom/client/data/gamedev/interfaces_v3/bg_downloader.lua index 161012d9e..f133eae27 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.uc_hardtext = ucstr + text.text = 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.uc_hardtext = pausedText + text.text = 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(concatUCString(i18n.get("uiBGD_Progress"), ucstring(progressPercentText)), color, progress, progressSymbol[progressPostfix + 1]) + self:setProgressText(concatString(i18n.get("uiBGD_Progress"), progressPercentText), color, progress, progressSymbol[progressPostfix + 1]) end ------------------------------------------------------------------------------------------------------------ @@ -110,7 +110,7 @@ function bgdownloader:setPatchError() self:getProgressGroup().active = true end local errMsg = getPatchLastErrorMessage() - if errMsg == ucstring() then + if errMsg == "" 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/bot_chat_v4.xml b/ryzom/client/data/gamedev/interfaces_v3/bot_chat_v4.xml index f3e3e7899..efca1e889 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/bot_chat_v4.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/bot_chat_v4.xml @@ -366,7 +366,7 @@ - + @@ -376,7 +376,7 @@ - + diff --git a/ryzom/client/data/gamedev/interfaces_v3/game_r2_loading.lua b/ryzom/client/data/gamedev/interfaces_v3/game_r2_loading.lua index 33a3810d3..6ebb82bf0 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/game_r2_loading.lua +++ b/ryzom/client/data/gamedev/interfaces_v3/game_r2_loading.lua @@ -100,7 +100,7 @@ function GameR2Loading:setScenarioLanguage(header) local lvlWidget = win:find("Language") if header.Language then local language = "uiR2ED"..header.Language - lvlWidget.hardtext = i18n.get(language):toUtf8() + lvlWidget.hardtext = i18n.get(language) else lvlWidget.hardtext = "" end @@ -124,7 +124,7 @@ function GameR2Loading:setScenarioRingAccess(header) local okButton = win:find("validate") if getDbProp("SERVER:USER:IS_NEWBIE") == 1 and isPlayerFreeTrial() and not header.OtherCharAccess or header.OtherCharAccess ~= "RoSOnly" then - accessWidget.hardtext = i18n.get("uiR2EDLoadScenario_No"):toUtf8() + accessWidget.hardtext = i18n.get("uiR2EDLoadScenario_No") okButton.frozen = true end @@ -132,9 +132,9 @@ function GameR2Loading:setScenarioRingAccess(header) self.RingAccess = game.checkRingAccess(header.RingPointLevel) if self.RingAccess == true then - accessWidget.hardtext = i18n.get("uiR2EDLoadScenario_Yes"):toUtf8() + accessWidget.hardtext = i18n.get("uiR2EDLoadScenario_Yes") else - accessWidget.hardtext = i18n.get("uiR2EDLoadScenario_No"):toUtf8() + accessWidget.hardtext = i18n.get("uiR2EDLoadScenario_No") end okButton.frozen = not self.RingAccess @@ -561,9 +561,9 @@ function GameR2Loading:getTreeTooltip() local isInNoobLand = getDbProp("SERVER:USER:IS_NEWBIE") if isInNoobLand == 1 and isPlayerFreeTrial() then - tree.tooltip = i18n.get("uiR2EdPropertyToolTip_LoadScenario_LoadScenario_NewbieTreeInfo"):toUtf8() + tree.tooltip = i18n.get("uiR2EdPropertyToolTip_LoadScenario_LoadScenario_NewbieTreeInfo") else - tree.tooltip = i18n.get("uiR2EdPropertyToolTip_LoadScenario_LoadScenario_TreeInfo"):toUtf8() + tree.tooltip = i18n.get("uiR2EdPropertyToolTip_LoadScenario_LoadScenario_TreeInfo") end end diff --git a/ryzom/client/data/gamedev/interfaces_v3/guild.lua b/ryzom/client/data/gamedev/interfaces_v3/guild.lua index 4c3bc0646..06a804cfd 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/guild.lua +++ b/ryzom/client/data/gamedev/interfaces_v3/guild.lua @@ -61,13 +61,13 @@ function game:guildBuildInterface() uiMember.name.hardtext = getGuildMemberName(i); local memberGrade = getGuildMemberGrade(i); if (memberGrade == 'Leader') then - uiMember.grade.uc_hardtext = i18n.get('uiGuildLeader'); + uiMember.grade.text = i18n.get('uiGuildLeader'); elseif (memberGrade == 'HighOfficer') then - uiMember.grade.uc_hardtext = i18n.get('uiGuildHighOfficer'); + uiMember.grade.text = i18n.get('uiGuildHighOfficer'); elseif (memberGrade == 'Officer') then - uiMember.grade.uc_hardtext = i18n.get('uiGuildOfficer'); + uiMember.grade.text = i18n.get('uiGuildOfficer'); else - uiMember.grade.uc_hardtext = i18n.get('uiGuildMember'); + uiMember.grade.text = i18n.get('uiGuildMember'); end uiMemberList:addChild(uiMember); end diff --git a/ryzom/client/data/gamedev/interfaces_v3/info_player.lua b/ryzom/client/data/gamedev/interfaces_v3/info_player.lua index beefdcab7..9ee0416ed 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/info_player.lua +++ b/ryzom/client/data/gamedev/interfaces_v3/info_player.lua @@ -121,7 +121,7 @@ function game:displayMagicProtect(dbVal) local uiText= ui.val; -- set the text (percentage) - uiText.uc_hardtext= tostring(val) .. "%"; + uiText.text= tostring(val) .. "%"; -- set color and global color according to maximum reached or not if(val >= vMax) then @@ -215,7 +215,7 @@ function game:displayMagicResist(dbVal) local uiText= ui.val; -- set the text (final value) - uiText.uc_hardtext= tostring(val); + uiText.text= tostring(val); -- set color and global color according to maximum reached or not if(val >= vMax) then @@ -273,14 +273,14 @@ function game:onDrawNpcWebPage() if(available) then local ucUrl if config.Local == 1 then - ucUrl = ucstring(NicoMagicURL) -- for test in local mode + ucUrl = NicoMagicURL -- for test in local mode else ucUrl = getDynString(self.NpcWebPage.UrlTextId); end -- browse local uiStr= getUIId(getUICaller()); -- if the url - local utf8Url = ucUrl:toUtf8() + local utf8Url = ucUrl local isRing = string.find(utf8Url, "ring_access_point=1") ~= nil if isRing then -- when in ring mode, add the parameters ourselves. 60 sec timeout because of zope... @@ -585,30 +585,30 @@ function game:getPvpEffects() fmt = i18n.get('uiPvPEffect_' .. getRegionByAlias(id) .. '_Bonus'); fmt = replacePvpEffectParam(fmt, param); if (textBonus ~= '') then - textBonus = concatUCString(textBonus, '\n\n'); + textBonus = concatString(textBonus, '\n\n'); end - textBonus = concatUCString(textBonus, fmt); + textBonus = concatString(textBonus, fmt); else hasMalus = true; fmt = i18n.get('uiPvPEffect_' .. getRegionByAlias(id) .. '_Malus'); fmt = replacePvpEffectParam(fmt, param); if (textMalus ~= '') then - textMalus = concatUCString(textMalus, '\n\n'); + textMalus = concatString(textMalus, '\n\n'); end - textMalus = concatUCString(textMalus, fmt); + textMalus = concatString(textMalus, fmt); end; end end if (hasBonus) then - uiGroup.pvpEffectsBonusMalusInfo.uc_hardtext_format = i18n.get('uiPvpEffectBonus'); - uiGroup.pvpEffectsBonusMalus.uc_hardtext_format = textBonus; + uiGroup.pvpEffectsBonusMalusInfo.text_format = i18n.get('uiPvpEffectBonus'); + uiGroup.pvpEffectsBonusMalus.text_format = textBonus; elseif (hasMalus) then - uiGroup.pvpEffectsBonusMalusInfo.uc_hardtext_format = i18n.get('uiPvpEffectMalus'); - uiGroup.pvpEffectsBonusMalus.uc_hardtext_format = textMalus; + uiGroup.pvpEffectsBonusMalusInfo.text_format = i18n.get('uiPvpEffectMalus'); + uiGroup.pvpEffectsBonusMalus.text_format = textMalus; else - uiGroup.pvpEffectsBonusMalusInfo.uc_hardtext_format = ''; - uiGroup.pvpEffectsBonusMalus.uc_hardtext_format = ''; + uiGroup.pvpEffectsBonusMalusInfo.text_format = ''; + uiGroup.pvpEffectsBonusMalus.text_format = ''; end end @@ -651,7 +651,7 @@ function game:getAllegiancePoints() text = findReplaceAll(text, '%faction', self:getFactionName(civ)); text = findReplaceAll(text, '%points', tostring(civPoints)); end - uiGroup.civ_allegiance_pts.uc_hardtext_format = text; + uiGroup.civ_allegiance_pts.text_format = text; -- cult allegiance if (cult == self.TPVPClan.None or cult == self.TPVPClan.Neutral) then @@ -661,7 +661,7 @@ function game:getAllegiancePoints() text = findReplaceAll(text, '%faction', self:getFactionName(cult)); text = findReplaceAll(text, '%points', tostring(cultPoints)); end - uiGroup.cult_allegiance_pts.uc_hardtext_format = text; + uiGroup.cult_allegiance_pts.text_format = text; end ------------------------------------------------------------------------------------------------------------ @@ -669,7 +669,7 @@ function game:updateAllegiance(path, uiText) local alleg = getDbProp(path); local text = i18n.get('uiFameAllegiance' .. tostring(alleg) ); - getUICaller()[uiText].uc_hardtext= text; + getUICaller()[uiText].text= text; end ------------------------------------------------------------------------------------------------------------ @@ -708,28 +708,28 @@ function game:tooltipDeltaValue(base, max) local text; if (val == 0) then - text = concatUCString('@{FFFF}', tostring(max)); + text = concatString('@{FFFF}', tostring(max)); else if (val > 0) then -- bonus - text = concatUCString('@{FFFF}', tostring(max)); - text = concatUCString(text, ' ('); - text = concatUCString(text, tostring(base)); - text = concatUCString(text, '@{0F0F}'); - text = concatUCString(text, ' + '); - text = concatUCString(text, tostring(val)); - text = concatUCString(text, '@{FFFF}'); - text = concatUCString(text, ')'); + text = concatString('@{FFFF}', tostring(max)); + text = concatString(text, ' ('); + text = concatString(text, tostring(base)); + text = concatString(text, '@{0F0F}'); + text = concatString(text, ' + '); + text = concatString(text, tostring(val)); + text = concatString(text, '@{FFFF}'); + text = concatString(text, ')'); else -- malus - text = concatUCString('@{FFFF}', tostring(max)); - text = concatUCString(text, ' ('); - text = concatUCString(text, tostring(base)); - text = concatUCString(text, '@{E42F}'); - text = concatUCString(text, ' - '); - text = concatUCString(text, tostring(math.abs(val))); - text = concatUCString(text, '@{FFFF}'); - text = concatUCString(text, ')'); + text = concatString('@{FFFF}', tostring(max)); + text = concatString(text, ' ('); + text = concatString(text, tostring(base)); + text = concatString(text, '@{E42F}'); + text = concatString(text, ' - '); + text = concatString(text, tostring(math.abs(val))); + text = concatString(text, '@{FFFF}'); + text = concatString(text, ')'); end end @@ -958,7 +958,7 @@ function RingPlayerInfo:updateRRPSLevel(dbVal, tooltip) local uiText= ui.val; -- set the text - uiText.uc_hardtext= tostring(val) + uiText.text= tostring(val) self:tooltipRRPs(dbVal, tooltip) end @@ -1299,10 +1299,10 @@ function game:updateMissionJournalHeader() win.header_active = headerActive win.right_button_enabled = headerActive if headerActive then - win.uc_title_opened = i18n.get("uiJournalTitle") + win.title_opened = i18n.get("uiJournalTitle") win.content_y_offset = 0 else - win.uc_title_opened = ucstring("") + win.title_opened = "" win.content_y_offset = win.header_opened.h_real + 3 end end @@ -1336,8 +1336,8 @@ function game:updateMissionJournalFixedEntry() id = id .. "_Mainland_" .. getUserRace() end end - fixedEntryMain.uc_hardtext = i18n.get(id) - fixedEntryRing.uc_hardtext = i18n.get(id) + fixedEntryMain.text = i18n.get(id) + fixedEntryRing.text = i18n.get(id) self:updateMissionWindowLayout() end diff --git a/ryzom/client/data/gamedev/interfaces_v3/info_player.xml b/ryzom/client/data/gamedev/interfaces_v3/info_player.xml index 98dab16a8..4e4ba4a53 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/info_player.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/info_player.xml @@ -796,7 +796,7 @@ - + @@ -884,7 +884,7 @@ - + diff --git a/ryzom/client/data/gamedev/interfaces_v3/interaction.lua b/ryzom/client/data/gamedev/interfaces_v3/interaction.lua index bdf838f88..526852420 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/interaction.lua +++ b/ryzom/client/data/gamedev/interfaces_v3/interaction.lua @@ -60,12 +60,12 @@ function game:updateEmoteMenu(prop, tooltip, tooltip_pushed, name, param) if (key ~= nil and key ~= '') then key = ' @{T25}@{2F2F}(' .. key .. ')'; - text = concatUCString(text, key); + text = concatString(text, key); end -- if we don't do the full getUI, it doesn't work (don't understand why) local uiQC= getUI("ui:interface:user_chat_emote_menu:quick_chat:" .. "qc" .. i); - uiQC.uc_hardtext_format= text; + uiQC.text_format= text; end end @@ -358,7 +358,7 @@ function game:updateTargetConsiderUI() end if impossible then - wgToolTip.tooltip = concatUCString(wgToolTip.tooltip, ucstring("\n"), i18n.get("uittConsiderUnknownLevel")) + wgToolTip.tooltip = concatString(wgToolTip.tooltip, "\n", i18n.get("uittConsiderUnknownLevel")) end end diff --git a/ryzom/client/data/gamedev/interfaces_v3/interaction.xml b/ryzom/client/data/gamedev/interfaces_v3/interaction.xml index 2140e5f80..b323813a3 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/interaction.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/interaction.xml @@ -28,7 +28,7 @@ - + @@ -469,7 +469,7 @@ - + - - + + diff --git a/ryzom/client/data/gamedev/interfaces_v3/login_widgets.xml b/ryzom/client/data/gamedev/interfaces_v3/login_widgets.xml index e2dd4b881..d80d16fdc 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/login_widgets.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/login_widgets.xml @@ -67,7 +67,7 @@ id="eb" posparent="parent" onenter="chat_box_entry" params="" reset_focus_on_hide="true" on_focus="" on_focus_params="" enter_loose_focus="true" prompt=">" enter_recover_focus="true" - max_num_chars="256" + max_num_chars="255" menu_r="" onchange="" onchange_params="" @@ -404,7 +404,7 @@ sizeref="" id="eb" posparent="parent" onenter="chat_box_entry" params="" reset_focus_on_hide="true" enter_loose_focus="true" prompt=">" enter_recover_focus="true" - max_num_chars="256" + max_num_chars="255" menu_r="" onchange="" onchange_params="" @@ -447,7 +447,7 @@ sizeref="" id="eb" posparent="parent" onenter="chat_box_entry" params="" reset_focus_on_hide="true" enter_loose_focus="true" prompt=">" enter_recover_focus="true" - max_num_chars="256" + max_num_chars="255" menu_r="" onchange="" onchange_params="" diff --git a/ryzom/client/data/gamedev/interfaces_v3/map.xml b/ryzom/client/data/gamedev/interfaces_v3/map.xml index b93028b82..88a633878 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/map.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/map.xml @@ -456,8 +456,8 @@ - - + + diff --git a/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.lua b/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.lua index 43727200a..605a5be18 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.lua +++ b/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.lua @@ -353,7 +353,7 @@ end -- local text = self:getProgressGroup():find("text") -- local ellipsisTxt = self:getProgressGroup():find("ellipsis") -- text.color = color --- text.uc_hardtext = ucstr +-- text.text = ucstr -- if ellipsis then -- ellipsisTxt.hardtext = ellipsis -- else @@ -378,7 +378,7 @@ end -- 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(concatUCString(i18n.get("uiBGD_Progress"), ucstring(progressPercentText)), color, progress, progressSymbol[progressPostfix + 1]) +-- self:setProgressText(concatString(i18n.get("uiBGD_Progress"), progressPercentText), color, progress, progressSymbol[progressPostfix + 1]) --end -- --function outgame:setPatchSuccess() diff --git a/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.xml b/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.xml index e03027d54..d009d9c62 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.xml @@ -1560,7 +1560,7 @@ - + diff --git a/ryzom/client/data/gamedev/interfaces_v3/out_v2_select.xml b/ryzom/client/data/gamedev/interfaces_v3/out_v2_select.xml index 50655a82b..b52674ba6 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/out_v2_select.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/out_v2_select.xml @@ -146,7 +146,7 @@ - + diff --git a/ryzom/client/data/gamedev/interfaces_v3/outgame_select.xml b/ryzom/client/data/gamedev/interfaces_v3/outgame_select.xml index 55bb28abc..34df347eb 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/outgame_select.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/outgame_select.xml @@ -109,11 +109,11 @@ - - + + - + @@ -160,11 +160,11 @@ used to change at the end of full_to_full_1 anim the 3D view of the character and launch the second part --> - - + + - + diff --git a/ryzom/client/data/gamedev/interfaces_v3/outgame_summary.xml b/ryzom/client/data/gamedev/interfaces_v3/outgame_summary.xml index 34004be1f..beef8bd96 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/outgame_summary.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/outgame_summary.xml @@ -184,12 +184,12 @@ - + - + diff --git a/ryzom/client/data/gamedev/interfaces_v3/outgame_widgets.xml b/ryzom/client/data/gamedev/interfaces_v3/outgame_widgets.xml index b1f4b5716..0774c4de8 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/outgame_widgets.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/outgame_widgets.xml @@ -90,7 +90,8 @@ @@ -530,14 +530,14 @@ - + - + - + @@ -572,8 +572,8 @@ - - + + @@ -631,7 +631,7 @@ + target="explain_edit:hardtext_format" /> @@ -665,7 +665,7 @@ - + - + @@ -689,7 +689,7 @@ + target="building_info:hardtext" /> @@ -773,12 +773,12 @@ - + - + @@ -804,7 +804,7 @@ + target="outpost_att_period:hardtext" /> @@ -966,9 +966,9 @@ - + - + @@ -1005,7 +1005,7 @@ + getSquadDesc(@%outpost_selected:SQUAD_SHOP:[UI:TEMP:OUTPOST:SQUAD_TO_BUY]:SHEET))" target="squad_desc:hardtext" /> - + - + @@ -291,7 +291,7 @@ - + diff --git a/ryzom/client/data/gamedev/interfaces_v3/r2ed.xml b/ryzom/client/data/gamedev/interfaces_v3/r2ed.xml index a522c9df0..eef554572 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/r2ed.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/r2ed.xml @@ -1227,7 +1227,7 @@ @@ -3019,7 +3019,7 @@ text_y="-2" diff --git a/ryzom/client/data/gamedev/interfaces_v3/r2ed_scenario.xml b/ryzom/client/data/gamedev/interfaces_v3/r2ed_scenario.xml index 3095cbc48..d95833ea6 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/r2ed_scenario.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/r2ed_scenario.xml @@ -667,7 +667,7 @@ - + diff --git a/ryzom/client/data/gamedev/interfaces_v3/reset.xml b/ryzom/client/data/gamedev/interfaces_v3/reset.xml index 6cdeac1ff..c83eb141c 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/reset.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/reset.xml @@ -446,7 +446,7 @@ - + diff --git a/ryzom/client/data/gamedev/interfaces_v3/ring_access_point.lua b/ryzom/client/data/gamedev/interfaces_v3/ring_access_point.lua index 0cfd27fee..92573ef38 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/ring_access_point.lua +++ b/ryzom/client/data/gamedev/interfaces_v3/ring_access_point.lua @@ -200,7 +200,7 @@ end --*********************************************************************** function RingAccessPoint:initScenarioTypes() for k = 0, 6 do - self.ScenarioTypeToUtf8[k] = i18n.get("uiRAP_ST_" .. tostring(k)):toUtf8() + self.ScenarioTypeToUtf8[k] = i18n.get("uiRAP_ST_" .. tostring(k)) end end @@ -227,16 +227,12 @@ function RingAccessPoint:getColumn(name) return getUI("ui:interface:ring_sessions:content:main:enclosing:columns:getw:column_group:" .. name .. ":values") end - --*********************************************************************** function RingAccessPoint:getSelectList() return getUI("ui:interface:ring_sessions:content:main:enclosing:columns:getw:select") --return getUI("ui:interface:checkpass:content:enclosing:select") end - -local scratchUCStr = ucstring() - --*********************************************************************** function RingAccessPoint:newTemplate(name, cache) local group @@ -249,16 +245,15 @@ function RingAccessPoint:newTemplate(name, cache) return group end -local lineFeed = ucstring("\n") -local lineEnd = ucstring(". ") +local lineFeed = "\n" +local lineEnd = ". " --*********************************************************************** -- build a new text group from utf8 text function RingAccessPoint:newTextLabel(value) local group = self:newTemplate("rap_text", self.TextCache) - scratchUCStr:fromUtf8(value) - scratchUCStr = findReplaceAll(scratchUCStr, lineFeed, lineEnd) - group:find("t").uc_hardtext_single_line_format = scratchUCStr + local str = findReplaceAll(value, lineFeed, lineEnd) + group:find("t").text_single_line_format = str return group end @@ -266,15 +261,14 @@ end -- build a new text group from utf8 text function RingAccessPoint:newCenteredTextLabel(value) local group = self:newTemplate("rap_text_centered", self.CenteredTextCache) - scratchUCStr:fromUtf8(value) - group:find("t").uc_hardtext_single_line_format = scratchUCStr + group:find("t").text_single_line_format = value return group end --*********************************************************************** function RingAccessPoint:newNumberLabel(value) local group = self:newTemplate("rap_number", self.NumberCache) - group:find("t").uc_hardtext_single_line_format = tostring(value) + group:find("t").text_single_line_format = tostring(value) return group end @@ -324,7 +318,7 @@ function RingAccessPoint:addLine(line) local level = line.Level-1 if level >= 0 and level <= 5 then - self:getColumn("level"):addChild(self:newNumberLabel(i18n.get("uiRAP_Level" .. tostring(level)):toUtf8())) + self:getColumn("level"):addChild(self:newNumberLabel(i18n.get("uiRAP_Level" .. tostring(level)))) else self:getColumn("level"):addChild(self:newNumberLabel("?")) end @@ -333,7 +327,7 @@ function RingAccessPoint:addLine(line) if self.LangToTex[line.Language] ~= nil then self:getColumn("language"):addChild(self:newBitmap(self.LangToTex[line.Language])) elseif i18n.hasTranslation("uiR2ED" .. line.Language) then - self:getColumn("language"):addChild(self:newCenteredTextLabel(i18n.get("uiR2ED" .. line.Language):toUtf8())) + self:getColumn("language"):addChild(self:newCenteredTextLabel(i18n.get("uiR2ED" .. line.Language))) else self:getColumn("language"):addChild(self:newCenteredTextLabel(line.Language)) end @@ -527,7 +521,7 @@ function RingAccessPoint:setMessage(msg, color) -- The version below set the msg in the middle of the window --local errorTxt = self:getWindow():find("errorMsg") - errorTxt.uc_hardtext = msg + errorTxt.text = msg errorTxt.color = color errorTxt.active=true --self:getWindow():invalidateCoords() @@ -631,20 +625,20 @@ function RingAccessPoint:onLineSessionTooltip() local activeLine = self.CurrActiveList[self:getSelectList():getElementIndex(getUICaller().parent) + 1] local contextHelpText if self:isInvited(activeLine.Flags) then - contextHelpText = i18n.get("uiRAP_HowToJoin"):toUtf8() + contextHelpText = i18n.get("uiRAP_HowToJoin") else - contextHelpText = i18n.get("uiRAP_HowToBeInvited"):toUtf8() + contextHelpText = i18n.get("uiRAP_HowToBeInvited") end local desc = activeLine.Desc if desc=="" then desc="-" end - contextHelpText = contextHelpText .. "\n\n@{6F6F}" .. i18n.get("uiR2EDProp_LoadScenario_Description"):toUtf8() .. " : @{FFFF}" .. ucstring(desc):toUtf8() .. "\n\n" + contextHelpText = contextHelpText .. "\n\n@{6F6F}" .. i18n.get("uiR2EDProp_LoadScenario_Description") .. " : @{FFFF}" .. desc .. "\n\n" - local rateFun = "@{6F6F}" .. i18n.get("uiRAP_RateFun"):toUtf8() .. " : @{FFFF}" - local rateDiff = "@{6F6F}" .. i18n.get("uiRAP_RateDifficulty"):toUtf8() .. " : @{FFFF}" - local rateAccess = "@{6F6F}" .. i18n.get("uiRAP_RateAccessibility"):toUtf8() .. " : @{FFFF}" - local rateOrig = "@{6F6F}" .. i18n.get("uiRAP_RateOriginality"):toUtf8() .. " : @{FFFF}" - local rateDirection = "@{6F6F}" .. i18n.get("uiRAP_RateDirection"):toUtf8() .. " : @{FFFF}" + local rateFun = "@{6F6F}" .. i18n.get("uiRAP_RateFun") .. " : @{FFFF}" + local rateDiff = "@{6F6F}" .. i18n.get("uiRAP_RateDifficulty") .. " : @{FFFF}" + local rateAccess = "@{6F6F}" .. i18n.get("uiRAP_RateAccessibility") .. " : @{FFFF}" + local rateOrig = "@{6F6F}" .. i18n.get("uiRAP_RateOriginality") .. " : @{FFFF}" + local rateDirection = "@{6F6F}" .. i18n.get("uiRAP_RateDirection") .. " : @{FFFF}" if activeLine.NbRating>0 then rateFun = rateFun .. tostring(math.min(100, activeLine.RateFun)) .. "/100" @@ -653,11 +647,11 @@ function RingAccessPoint:onLineSessionTooltip() rateOrig = rateOrig .. tostring(math.min(100, activeLine.RateOriginality)) .. "/100" rateDirection = rateDirection .. tostring(math.min(100, activeLine.RateDirection)) .. "/100" else - rateFun = rateFun .. i18n.get("uiRAP_NoRate"):toUtf8() - rateDiff = rateDiff .. i18n.get("uiRAP_NoRate"):toUtf8() - rateAccess = rateAccess .. i18n.get("uiRAP_NoRate"):toUtf8() - rateOrig = rateOrig .. i18n.get("uiRAP_NoRate"):toUtf8() - rateDirection = rateDirection .. i18n.get("uiRAP_NoRate"):toUtf8() + rateFun = rateFun .. i18n.get("uiRAP_NoRate") + rateDiff = rateDiff .. i18n.get("uiRAP_NoRate") + rateAccess = rateAccess .. i18n.get("uiRAP_NoRate") + rateOrig = rateOrig .. i18n.get("uiRAP_NoRate") + rateDirection = rateDirection .. i18n.get("uiRAP_NoRate") end -- contextHelpText = contextHelpText .. rateFun .. "\n" @@ -666,9 +660,7 @@ function RingAccessPoint:onLineSessionTooltip() -- contextHelpText = contextHelpText .. rateOrig .. "\n" -- contextHelpText = contextHelpText .. rateDirection .. "\n" - local uc_contextHelpText = ucstring() - uc_contextHelpText:fromUtf8(contextHelpText) - setContextHelpText(uc_contextHelpText) + setContextHelpText(contextHelpText) end @@ -724,10 +716,9 @@ end --*********************************************************************** function RingAccessPoint:onTell() --debugInfo("tell to owner of session" .. self.SelectedSessionId) - player = ucstring() - player:fromUtf8(self:getSessionFromId(self.SelectedSessionId).Owner) + player = self:getSessionFromId(self.SelectedSessionId).Owner tell(player, i18n.get("uiRAP_AskForInvite")) - displaySystemInfo(concatUCString(i18n.get("uiRAP_TellSentTo"), player), "BC") + displaySystemInfo(concatString(i18n.get("uiRAP_TellSentTo"), player), "BC") end --*********************************************************************** @@ -915,7 +906,7 @@ function RingAccessPoint:onDraw() -- refreshText.active = false --else -- refreshText.active = true - -- refreshText.uc_hardtext = waitText + -- refreshText.text = waitText --end end else diff --git a/ryzom/client/data/gamedev/interfaces_v3/ring_access_point_filter.lua b/ryzom/client/data/gamedev/interfaces_v3/ring_access_point_filter.lua index 44a0451d7..372db9d42 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/ring_access_point_filter.lua +++ b/ryzom/client/data/gamedev/interfaces_v3/ring_access_point_filter.lua @@ -45,24 +45,24 @@ function game.RingAccessPointFilter:init() local levelCB = filterScenarioWnd:find("level"):find("combo_box") assert(levelCB) levelCB:resetTexts() - levelCB:addText(ucstring(i18n.get("uiScenarioLevel_Any"))) - levelCB:addText(ucstring("1-50")) - levelCB:addText(ucstring("51-100")) - levelCB:addText(ucstring("101-150")) - levelCB:addText(ucstring("151-200")) - levelCB:addText(ucstring("201-250")) + levelCB:addText(i18n.get("uiScenarioLevel_Any")) + levelCB:addText("1-50") + levelCB:addText("51-100") + levelCB:addText("101-150") + levelCB:addText("151-200") + levelCB:addText("201-250") levelCB.selection = 0 local genreCB = filterScenarioWnd:find("genre"):find("combo_box") assert(genreCB) genreCB:resetTexts() - genreCB:addText(ucstring(i18n.get("uiScenarioOrient_Any"))) - genreCB:addText(ucstring(i18n.get("uiScenarioOrient_NewbieTraining"))) - genreCB:addText(ucstring(i18n.get("uiScenarioOrient_StoryTelling"))) - genreCB:addText(ucstring(i18n.get("uiScenarioOrient_Mistery"))) - genreCB:addText(ucstring(i18n.get("uiScenarioOrient_HackSlash"))) - genreCB:addText(ucstring(i18n.get("uiScenarioOrient_GuildTraining"))) - genreCB:addText(ucstring(i18n.get("uiScenarioOrient_Other"))) + genreCB:addText(i18n.get("uiScenarioOrient_Any")) + genreCB:addText(i18n.get("uiScenarioOrient_NewbieTraining")) + genreCB:addText(i18n.get("uiScenarioOrient_StoryTelling")) + genreCB:addText(i18n.get("uiScenarioOrient_Mistery")) + genreCB:addText(i18n.get("uiScenarioOrient_HackSlash")) + genreCB:addText(i18n.get("uiScenarioOrient_GuildTraining")) + genreCB:addText(i18n.get("uiScenarioOrient_Other")) genreCB.selection = 0 local name = filterScenarioWnd:find("name"):find("edit_box_group") @@ -85,10 +85,10 @@ function game.RingAccessPointFilter:getURLParameters() local filterScenarioWnd = self:getWnd() assert(filterScenarioWnd) - local owner = filterScenarioWnd:find("owner"):find("edit_box_group").uc_input_string + local owner = filterScenarioWnd:find("owner"):find("edit_box_group").input_string local level = self.LevelToURLParam[filterScenarioWnd:find("level"):find("combo_box").selection] local orientation = self.OrientationToURLParam[filterScenarioWnd:find("genre"):find("combo_box").selection] - local name = filterScenarioWnd:find("name"):find("edit_box_group").uc_input_string + local name = filterScenarioWnd:find("name"):find("edit_box_group").input_string local charSlot = getCharSlot() local result = string.format("&owner=%s&level=%s&orientation=%s&name=%s&charSlot=%u", encodeURLUnicodeParam(owner), level, orientation, encodeURLUnicodeParam(name), charSlot) @@ -107,12 +107,12 @@ function game.RingAccessPointFilter:validate() end local ucUrl if config.Local == 1 then - ucUrl = ucstring(NicoMagicURL) -- for test in local mode + ucUrl = NicoMagicURL -- for test in local mode else ucUrl = getDynString(game.NpcWebPage.UrlTextId) end debugInfo(tostring(ucUrl)) - local utf8Url = ucUrl:toUtf8() + local utf8Url = ucUrl local browser = getUI("ui:interface:npc_web_browser"):find("html") -- when in ring mode, add the parameters ourselves. 60 second is the timout for zope.... browseNpcWebPage(getUIId(browser), utf8Url .. self:getURLParameters(), false, 60) diff --git a/ryzom/client/data/gamedev/interfaces_v3/ring_window.xml b/ryzom/client/data/gamedev/interfaces_v3/ring_window.xml index b92614e31..c9c505f4c 100644 --- a/ryzom/client/data/gamedev/interfaces_v3/ring_window.xml +++ b/ryzom/client/data/gamedev/interfaces_v3/ring_window.xml @@ -621,7 +621,7 @@ - + -