Skip to content

Commit

Permalink
Show description in summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Gliese852 committed Jul 1, 2023
1 parent 7b6a511 commit d026378
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/pigui/modules/new-game-window/class.lua
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ end
local NewGameWindow = {}

local function putByPath(tbl, path, value)
if not path then return end
local ref, last
for token in string.gmatch(path, "[^.]+") do
if not tbl[token] then tbl[token] = {} end
Expand Down
3 changes: 2 additions & 1 deletion data/pigui/modules/new-game-window/layout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Layout.UpdateOrder = {
Ship.Equip,
Ship.Fuel,
Location,
Location.Time
Location.Time,
Summary
}

Layout.Tabs = { Summary, Crew, Ship, Location }
Expand Down
4 changes: 4 additions & 0 deletions data/pigui/modules/new-game-window/summary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ function Summary:fromStartVariant(variant)
startDesc = variant.desc or ""
end

function Summary:isValid()
return true
end

Summary.TabName = lui.SUMMARY

return Summary

0 comments on commit d026378

Please sign in to comment.