From fd7c25a33a635597f84942d67837ff33945fbeb9 Mon Sep 17 00:00:00 2001 From: badgamernl Date: Thu, 1 Jun 2017 18:39:16 +0200 Subject: [PATCH] fixed squares after names ..' ' --- control.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/control.lua b/control.lua index 861a0057..da7ca0d8 100644 --- a/control.lua +++ b/control.lua @@ -410,8 +410,8 @@ function drawPlayerList() for i, player in pairs(game.connected_players) do playerRank = getRank(player) 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..' '}} - else Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name..' '}} end + 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 Plist[player.name].style.font_color = playerRank.colour player.tag = playerRank.tag end @@ -419,8 +419,8 @@ function drawPlayerList() for i, player in pairs(game.connected_players) do playerRank = getRank(player) 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..' '}} - else Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name..' '}} end + 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 Plist[player.name].style.font_color = playerRank.colour player.tag = playerRank.tag end @@ -770,4 +770,4 @@ addTab('Admin+', 'Modifiers', 'Edit in game modifiers', frame.modifierTable.add{name=modifier .. "_current", type="label", caption=tostring(player.force[modifier])} end drawButton(frame.flowNavigation,"btn_Modifier_apply","Apply","Apply the new values to the game") -end) \ No newline at end of file +end)