Modules -> game_interface -> gameinterface.lua.
And instead of + use double dot ( .. )
LUA:g_window.setTitle(name .. ' - OTClient')
how did you added can you copy the whole line sin show functions and hide @kennyubuntuThanks
g_window.setTitle(name .. ' - OTClient')
When i put that code in the same way as i did with your code ( that only shows character name when log in)What error?
g_window.setTitle(name .. ' - Warera')
local name = g_game.getCharacterName()
g_window.setTitle(name)
it's posible to edit the name?I have tested it, and it works :d
![]()
function show()
connect(g_app, { onClose = tryExit })
modules.client_background.terminate()
gameRootPanel:show()
gameRootPanel:focus()
gameMapPanel:followCreature(g_game.getLocalPlayer())
updateStretchShrink()
--logoutButton:setTooltip(tr('Logout'))
local name = g_game.getCharacterName()
g_window.setTitle(name .. ' - ' .. g_app.getName())
addEvent(function()
if not limitedZoom or g_game.isGM() then
gameMapPanel:setMaxZoomOut(513)
gameMapPanel:setLimitVisibleRange(false)
else
gameMapPanel:setMaxZoomOut(11)
gameMapPanel:setLimitVisibleRange(true)
end
end)
end
function hide()
disconnect(g_app, { onClose = tryExit })
--logoutButton:setTooltip(tr('Exit'))
if logoutWindow then
logoutWindow:destroy()
logoutWindow = nil
end
if exitWindow then
exitWindow:destroy()
exitWindow = nil
end
if countWindow then
countWindow:destroy()
countWindow = nil
end
gameRootPanel:hide()
modules.client_background.init()
g_window.setTitle(g_app.getName())
end
function init()
g_window.setTitle('My Window Name Is Cool :D')
function init()
g_window.setTitle('My Window Name Is Cool :D')