Skip to content

Commit

Permalink
Show reason for denied launch request clearer.
Browse files Browse the repository at this point in the history
...Since when just echoing it to comms
it's not seen behind the Lobby window.
  • Loading branch information
impaktor committed Sep 7, 2015
1 parent 0b5fed9 commit b375768
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/ui/StationView/Lobby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local Lang = import("Lang")
local Comms = import("Comms")

local InfoFace = import("ui/InfoFace")
local MessageBox = import("ui/MessageBox")

local l = Lang.GetResource("ui-core")

Expand All @@ -25,10 +26,13 @@ local lobby = function (tab)
local crimes, fine = Game.player:GetCrime()

if not Game.player:HasCorrectCrew() then
MessageBox.Message(l.LAUNCH_PERMISSION_DENIED_CREW)
Comms.ImportantMessage(l.LAUNCH_PERMISSION_DENIED_CREW, station.label)
elseif fine > 0 then
MessageBox.Message(l.LAUNCH_PERMISSION_DENIED_FINED)
Comms.ImportantMessage(l.LAUNCH_PERMISSION_DENIED_FINED, station.label)
elseif not Game.player:Undock() then
MessageBox.Message(l.LAUNCH_PERMISSION_DENIED_BUSY)
Comms.ImportantMessage(l.LAUNCH_PERMISSION_DENIED_BUSY, station.label)
else
Game.SwitchView()
Expand Down

0 comments on commit b375768

Please sign in to comment.