fixed squares after names

..'		'
This commit is contained in:
badgamernl
2017-06-01 18:39:16 +02:00
committed by GitHub
parent 9a92d07e19
commit fd7c25a33a

View File

@@ -410,8 +410,8 @@ function drawPlayerList()
for i, player in pairs(game.connected_players) do for i, player in pairs(game.connected_players) do
playerRank = getRank(player) playerRank = getRank(player)
if playerRank.power <= 3 or playerRank.name == 'Jail' then if playerRank.power <= 3 or playerRank.name == 'Jail' then
if playerRank.shortHand ~= '' then Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , ' - '..playerRank.shortHand..' '}} if playerRank.shortHand ~= '' then Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , ' - '..playerRank.shortHand}}
else Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name..' '}} end else Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name}} end
Plist[player.name].style.font_color = playerRank.colour Plist[player.name].style.font_color = playerRank.colour
player.tag = playerRank.tag player.tag = playerRank.tag
end end
@@ -419,8 +419,8 @@ function drawPlayerList()
for i, player in pairs(game.connected_players) do for i, player in pairs(game.connected_players) do
playerRank = getRank(player) playerRank = getRank(player)
if playerRank.power > 3 and playerRank.name ~= 'Jail' then if playerRank.power > 3 and playerRank.name ~= 'Jail' then
if playerRank.shortHand ~= '' then Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , ' - '..playerRank.shortHand..' '}} if playerRank.shortHand ~= '' then Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , ' - '..playerRank.shortHand}}
else Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name..' '}} end else Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name}} end
Plist[player.name].style.font_color = playerRank.colour Plist[player.name].style.font_color = playerRank.colour
player.tag = playerRank.tag player.tag = playerRank.tag
end end