Skip to content

Commit

Permalink
List illegal goods in station Police tab
Browse files Browse the repository at this point in the history
  • Loading branch information
impaktor committed Aug 23, 2024
1 parent 93a1ef5 commit 9963fce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data/pigui/modules/station-view/07-police.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ local utils = require "utils"
local PiGuiFace = require 'pigui.libs.face'
local Format = require "Format"
local Character = require "Character"
local Commodities = require 'Commodities'
local l = Lang.GetResource("ui-core")

local ModalWindow = require 'pigui.libs.modal-win'
Expand Down Expand Up @@ -150,6 +151,16 @@ local function drawPolice()
drawRulesAndRegulations()
ui.endTabItem()
end

if ui.beginTabItem(l.ILLEGAL_IN_SYSTEM) then

for key, comm in pairs(Commodities) do
if not Game.system:IsCommodityLegal(comm.name) then
ui.text(comm:GetName())
end
end
ui.endTabItem()
end
ui.endTabBar()
end

Expand Down

0 comments on commit 9963fce

Please sign in to comment.