summaryrefslogtreecommitdiff
path: root/Userland/Games/GameOfLife
AgeCommit message (Collapse)Author
2021-12-05Games: Cast unused smart-pointer return values to voidSam Atkins
2021-11-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-27GameOfLife: TRY() all the things in serenity_main() :^)Pedro Pereira
2021-11-24GameOfLife: Replace construct() with TRY(try_create()) patternPedro Pereira
2021-11-23GameOfLife: Port to LibMainPedro Pereira
Simplified two pledge() and two unveil() by using TRY().
2021-11-08LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file()Andreas Kling
This was used in a lot of places, so this patch makes liberal use of ErrorOr<T>::release_value_but_fixme_should_propagate_errors().
2021-10-27Everywhere: Rename left/right-click to primary/secondaryFiliph Sandström
This resolves #10641.
2021-08-31GameOfLife: Don't enable rotate button if a pattern isn't selectedMusab Kılıç
2021-08-28GameOfLife: Add pledge and unveilLuke Wilde
2021-08-18Userland+LibGUI: Add shorthand versions of the Margins constructorsin-ack
This allows for typing [8] instead of [8, 8, 8, 8] to specify the same margin on all edges, for example. The constructors follow CSS' style of specifying margins. The added constructors are: - Margins(int all): Sets the same margin on all edges. - Margins(int vertical, int horizontal): Sets the first argument to top and bottom margins, and the second argument to left and right margins. - Margins(int top, int vertical, int bottom): Sets the first argument to the top margin, the second argument to the left and right margins, and the third argument to the bottom margin.
2021-08-18Userland+LibGUI: Make Margins arguments match CSS orderingsin-ack
Previously the argument order for Margins was (left, top, right, bottom). To make it more familiar and closer to how CSS does it, the argument order is now (top, right, bottom, left).
2021-07-21Userland: Add GUI::Window::add_menu() and use it everywhereAndreas Kling
Applications previously had to create a GUI::Menubar object, add menus to it, and then call GUI::Window::set_menubar(). This patch introduces GUI::Window::add_menu() which creates the menubar automatically and adds items to it. Application code becomes slightly simpler as a result. :^)
2021-07-21LibGfx: Use "try_" prefix for static factory functionsAndreas Kling
Also mark them as [[nodiscard]].
2021-07-07GameOfLife: Properly switch between play and pause iconnetworkException
The play and pause icon were previously set on the toggle Action and not on the Button of the Action that is part of the Toolbar
2021-06-17Everywhere: Add component declarationsGunnar Beutner
This adds component declarations so that users can select to not build certain parts of the OS.
2021-05-22GameOfLife: Add choosable patternsRyan Wilson
2021-05-16GameOfLife: Don't randomize cells on board resizeLinus Groh
Loosing all game state for a simple resize of the board is quite disappointing, so let's not do that. :^)
2021-05-16GameOfLife: Use a frame as the board widget containerLinus Groh
This adds a bit of depth and looks very nice :^)
2021-05-16GameOfLife: Add vertical separator between interval and action buttonsLinus Groh
2021-05-16GameOfLife: Move "ms" interval label to GMLLinus Groh
There's no reason not to!
2021-05-16GameOfLife: Auto-size toolbar labelsLinus Groh
2021-05-16GameOfLife: Remove some unused includesLinus Groh
2021-05-16GameOfLife: Add some margin to the toolbar layoutLinus Groh
Ideally the inner widgets / vertical separators would have some as well, but I'm not sure how right now. One step at a time. :^)
2021-05-16GameOfLife: Switch from single indexed vector to rows+columnsLinus Groh
This is not only easier to comprehend code-wise and avoids some function overloads, but also makes resizing the board while preserving game state *a lot* easier. We now no longer have to allocate a new board on every resize, we just grow/shrink the individual row vectors. Also fixes a crash when clicking the board widget outside of the drawn board area.
2021-05-15GameOfLife: Spell about action app name as "Game Of Life"Linus Groh
2021-05-15GameOfLife: Add separator before quit menu actionLinus Groh
2021-05-15GameOfLife: Add alt shortcuts to menusLinus Groh
2021-05-15GameOfLife: Rename primary menu to just "Game"Linus Groh
2021-05-15Games: Add GameOfLifeAndres Crucitti
This patch introduces a new game based on Conway's Game of Life.