Skip to content

Commit

Permalink
make Progress and Stats screens have larger fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
quasilyte committed Mar 29, 2024
1 parent 74f40d9 commit 7adab56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/gamedata/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ const SeasonNumber = 1
// - Add gamepad navigation to the menu
// - Make text panels have dark background
// - Credits is now a multi-page screen with a larger font
// - Stats & Progress screens now use a larger font
const (
BuildNumber int = 25
BuildMinorNumber int = 0
Expand Down
7 changes: 1 addition & 6 deletions src/scenes/menus/profile_progressmenu.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ func (c *ProfileProgressMenuController) initUI() {

d := c.scene.Dict()

tinyFont := assets.BitmapFont1

helpLabel := eui.NewLabel("", tinyFont)
helpLabel.MaxWidth = 340

titleLabel := eui.NewCenteredLabel(d.Get("menu.main.profile")+" -> "+d.Get("menu.profile.progress"), assets.BitmapFont3)
rowContainer.AddChild(titleLabel)

Expand All @@ -60,7 +55,7 @@ func (c *ProfileProgressMenuController) initUI() {

stats := c.state.Persistent.PlayerStats

smallFont := assets.BitmapFont1
smallFont := assets.BitmapFont2

grid := eui.NewGridContainer(2, widget.GridLayoutOpts.Spacing(24, 4),
widget.GridLayoutOpts.Stretch([]bool{true, false}, nil))
Expand Down
2 changes: 1 addition & 1 deletion src/scenes/menus/profile_statsmenu.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (c *ProfileStatsMenuController) initUI() {
panel := eui.NewTextPanel(uiResources, 0, 0)
rowContainer.AddChild(panel)

smallFont := assets.BitmapFont1
smallFont := assets.BitmapFont2
stats := c.state.Persistent.PlayerStats

grid := eui.NewGridContainer(2, widget.GridLayoutOpts.Spacing(24, 4),
Expand Down

0 comments on commit 7adab56

Please sign in to comment.