Skip to content

Commit

Permalink
feat: continue work on new version of the game's main menu
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 6e6a25a648cab19992f941d9c17cfdbc46fe9405b10ea66a90f8be13b340e97d
  • Loading branch information
thindil committed Nov 3, 2024
1 parent b5a7934 commit bc99091
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/newui/mainmenu.nim
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ proc showNews*(state: var GameState) {.raises: [], tags: [], contractual.} =
resetTooltips()
setLayoutRowDynamic(height = (windowHeight - 50).float, cols = 1)
label(str = "here")
setLayoutRowDynamic(height = 40, cols = 2)
addTooltip(bounds = getWidgetBounds(), text = "Show all changes to the game since previous big stable version")
labelButton(title = "Show all changes"):
echo "button pressed"
addTooltip(bounds = getWidgetBounds(), text = "Back to the main menu")
labelButton(title = "Back to menu"):
state = mainMenu
return
layoutSpaceStatic(height = 40, widgetsCount = 2):
row(x = (windowWidth - 350).float, y = 0, w = 175, h = 40):
addTooltip(bounds = getWidgetBounds(), text = "Show all changes to the game since previous big stable version")
labelButton(title = "Show all changes"):
echo "button pressed"
row(x = (windowWidth - 175).float, y = 0, w = 175, h = 40):
addTooltip(bounds = getWidgetBounds(), text = "Back to the main menu")
labelButton(title = "Back to menu"):
state = mainMenu
return
showTooltips()

proc showMainMenu*(state: var GameState) {.raises: [], tags: [], contractual.} =
Expand Down

0 comments on commit bc99091

Please sign in to comment.