From e57e44d93c27949bf191dc7a16cd21ddf85f9d1d Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Mon, 27 May 2019 14:41:45 +0100 Subject: [PATCH] Added click to open to tooltip --- locale/en/gui.cfg | 3 ++- modules/gui/player-list.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/locale/en/gui.cfg b/locale/en/gui.cfg index 210f4ad1..80a9e80d 100644 --- a/locale/en/gui.cfg +++ b/locale/en/gui.cfg @@ -12,4 +12,5 @@ jail-player=Jail player temp-ban-player=Temp ban player kick-player=Kick player ban-player=Ban player -afk-time=__1__% of total map time\nLast moved __2__ ago \ No newline at end of file +afk-time=__1__% of total map time\nLast moved __2__ ago +open-map=__1__ __2__\n__3__\nClick to open map \ No newline at end of file diff --git a/modules/gui/player-list.lua b/modules/gui/player-list.lua index 9987b341..79339dd4 100644 --- a/modules/gui/player-list.lua +++ b/modules/gui/player-list.lua @@ -226,7 +226,7 @@ local function add_player(list_table,player,role_name) name=zoom_to_map_name, type='label', caption=player.name, - tooltip=player.name..' '..player.tag..'\n'..role_name + tooltip={'player-list.open-map',player.name,player.tag,role_name} } Gui.set_padding(player_name,0,0,0,2) player_name.style.font_color = player.chat_color