diff options
author | scratko <m@scratko.xyz> | 2024-11-18 18:01:32 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-11-18 20:36:37 +0300 |
commit | 503e7350fa3d8065e2f4814181664382154dc702 (patch) | |
tree | 18ec4fd2dc2d55e286b164c79f673b9e67e4c1bd /main.cpp | |
parent | 7fea2267e78de935af6010d5ac7300e51f471601 (diff) | |
download | picture-puzzle-503e7350fa3d8065e2f4814181664382154dc702.tar.gz picture-puzzle-503e7350fa3d8065e2f4814181664382154dc702.tar.bz2 picture-puzzle-503e7350fa3d8065e2f4814181664382154dc702.zip |
Random image selection
Added a dialog box about.
Checks if the selected file is correct.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -14,10 +14,11 @@ int main() srand(time(nullptr)); Fl_Window *win = new Fl_Window(320, 355, "Picture puzzle"); GameParams *params = GameParams::SetUpParams(win); - Fl_Sys_Menu_Bar *sys_bar = new Fl_Sys_Menu_Bar(0, 0, 150, 20, nullptr); + Fl_Sys_Menu_Bar *sys_bar = new Fl_Sys_Menu_Bar(0, 0, 355, 20, nullptr); + sys_bar->add("&File/&New game", nullptr, new_game_callback, params); sys_bar->add("&File/&Load file", nullptr, load_file_callback); sys_bar->add("&File/&Exit", nullptr, exit_callback); - sys_bar->add("&Help/&Show solution", nullptr, solve_problem_callback, + sys_bar->add("&Options/&Show solution", nullptr, solve_problem_callback, params); sys_bar->add("&About", nullptr, about_callback); PuzzleGame::StartGame(params); |