Sam Atkins
e2c32a6c65
Everywhere: Use my shiny new serenityos.org email :^)
2021-09-03 12:22:36 +02:00
Musab Kılıç
1179d5d921
GameOfLife: Don't enable rotate button if a pattern isn't selected
2021-08-31 15:46:58 +01:00
Andreas Kling
0de35db0f1
Minesweeper: Use AK::get_random_uniform() instead of rand()
2021-08-30 18:35:36 +02:00
Andreas Kling
d3d170851d
Snake: Use AK::get_random_uniform() instead of rand()
2021-08-30 18:35:36 +02:00
Luke Wilde
041007e9f6
2048: Remove wpath and cpath pledges
...
With the move to LibConfig, these are no longer needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
c0c33a4604
Spider: Remove wpath and cpath pledges and pledge earlier
...
With the move to LibConfig, the wpath and cpath pledges are no longer
needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
34dc275005
Solitaire: Remove wpath and cpath pledges and pledge earlier
...
With the move to LibConfig, the wpath and cpath pledges are no longer
needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
4332b35798
Chess: Perform pledges earlier
2021-08-28 12:22:16 +04:30
Luke Wilde
fd51a3cf15
FlappyBug: Remove wpath and cpath pledges
...
With the move to LibConfig, these are no longer needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
5d6fccc52b
GameOfLife: Add pledge and unveil
2021-08-28 12:22:16 +04:30
Luke Wilde
7a0fbb94b6
Pong: Remove wpath and cpath pledges
...
With the move to LibConfig, these are no longer needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
efe0a3d415
Snake: Remove wpath and cpath pledges
...
With the move to LibConfig, these are no longer needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
9d428a65d1
Minesweeper: Remove wpath and cpath pledges
...
With the move to LibConfig, these are no longer needed.
2021-08-28 12:22:16 +04:30
Mustafa Quraish
17299db61a
Hearts: Remove wpath
and cpath
priviliges
...
There are no longer needed since the config file is not being
modified by the application directly.
2021-08-27 23:17:05 +02:00
Mustafa Quraish
0af3855fb9
Hearts: Use LibConfig instead of Core::ConfigFile
2021-08-27 23:17:05 +02:00
Mustafa Quraish
4bd9ac1f66
Pong: Remove unused Core::ConfigFile imports
...
This application was including, opening and unveiling the path for
a config file, however it never actually reads or saves anything
from the configuration file.
Since it's easy enough to add it back later if needed, probably
makes sense to remove the unused code right now?
2021-08-27 12:45:50 +02:00
Mustafa Quraish
998d3a98ec
Spider: Use LibConfig instead of Core::ConfigFile
...
There was a lot of error handling here previously when writing to
a config file failed, but this was removed since we have no way of
conveying a `Config::write` failure from the ConfigServer.
2021-08-27 12:45:50 +02:00
Mustafa Quraish
458471cc37
Snake: Use LibConfig instead of Core::ConfigFile
2021-08-27 12:45:50 +02:00
Ralf Donau
a6fc80f069
Games: Remove unveiling /tmp/portal/config
...
Config::pledge_domains is applied before, hence /tmp/portal/config
can and should be veiled.
2021-08-26 21:40:39 +02:00
Ralf Donau
5a0be07cf0
FlappyBug: Use LibConfig instead of Core::ConfigFile
2021-08-26 19:54:50 +02:00
Thitat Auareesuksakul
f119c5580a
Solitaire: Use LibConfig instead of Core::ConfigFile
2021-08-26 16:39:22 +02:00
Thitat Auareesuksakul
573d14b7b5
Chess: Use LibConfig instead of Core::ConfigFile
2021-08-26 16:39:22 +02:00
Thitat Auareesuksakul
666397e1a7
2048: Use LibConfig instead of Core::ConfigFile
2021-08-26 16:39:22 +02:00
Andreas Kling
827bf5232e
Minesweeper: Use LibConfig instead of Core::ConfigFile
2021-08-26 00:54:28 +02:00
Ralf Donau
9bef96748d
Games: Make cpath appear once in the pledge promises
2021-08-22 23:39:41 +02:00
networkException
acde7d12b0
Everywhere: Rename get in ConfigFile::get_for_{lib,app,system} to open
...
This patch brings the ConfigFile helpers for opening lib, app and system
configs more inline with the regular ConfigFile::open functions.
2021-08-22 01:32:25 +02:00
networkException
938051feb8
Everywhere: Use Core::ConfigFile::AllowWriting::Yes to allow writing
2021-08-22 01:32:25 +02:00
Mitchel Humpherys
2fb26299bb
FlappyBug: Flap less aggressively
...
The current flap strength makes the game a lot more difficult than
other flappy games. Decrease the flap strength to make it a little
easier to get higher scores.
Before this change I could only get past 3 or 4 obstacles, now I can
get 15 or 20 in, which seems more on par with other flappy games.
2021-08-21 00:25:43 +02:00
sin-ack
e11d177618
Userland+LibGUI: Add shorthand versions of the Margins constructor
...
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-18 10:30:50 +02:00
sin-ack
9c9a5c55cb
Userland+LibGUI: Make Margins arguments match CSS ordering
...
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-08-18 10:30:50 +02:00
thisSyntaxSucksAndYouKnowIt
f583cddaf7
Solitaire: Don't allow the player to draw cards while mouse is down
2021-08-07 16:59:46 +02:00
Jamie Mansfield
705e91d332
Spider: Use YesNo dialog for user confirmation when closing
...
Cancel was superflous, and provided no difference to No.
2021-08-06 01:12:32 +02:00
Jamie Mansfield
c3c1a9ca1d
Solitaire: Get user confirmation to close when there is a active game
2021-08-06 01:12:32 +02:00
Jamie Mansfield
506363c08d
Solitaire: Clear selection when starting new game
...
Fixes #9218 .
2021-08-05 12:52:33 +02:00
Jamie Mansfield
22aeec1218
Spider: Clear selection when starting new game
...
Fixes #9217 .
2021-08-05 12:52:33 +02:00
LuK1337
4b81b9718d
Breakout: Add menus before showing the window
...
Otherwise, space is reserved but menus aren't shown.
2021-07-31 08:08:31 +02:00
LuK1337
7f99497378
Pong: Add menus before showing the window
...
Otherwise, space is reserved but menus aren't shown.
2021-07-31 08:08:31 +02:00
Jamie Mansfield
28ee513bdf
Spider: Make statusbar high score display configurable
...
You can now choose what statistic (currently only high score or best
time) to display in the statusbar.
2021-07-27 16:53:56 +02:00
Jamie Mansfield
821af6a6ef
Spider: Start game if first move is to draw cards
...
This fixes a bug where the game wouldn't consider it had started.
2021-07-27 16:53:56 +02:00
Jamie Mansfield
26cb559d37
Spider: Track win and loss counts
...
Again, this isn't exposed anywhere yet.
2021-07-27 16:53:56 +02:00
Jamie Mansfield
f7eb6772ce
Spider: Get user confirmation to close when there is a active game
2021-07-27 16:53:56 +02:00
Jamie Mansfield
4df9d05f91
Spider: Track quickest game time
...
This isn't exposed in the game anywhere yet.
2021-07-27 16:53:56 +02:00
Jamie Mansfield
29f15cfbae
Spider: Standardise fetching the mode identifier
...
This eliminates some code duplication, and will be helpful for future
commits introducing further statistic tracking.
2021-07-27 16:53:56 +02:00
Gunnar Beutner
3c1797c42d
Solitaire: Use AK::get_random_uniform() instead of rand()/srand()
2021-07-24 01:40:51 +02:00
Gunnar Beutner
58d1e46628
Spider: Use AK::get_random_uniform() instead of rand()/srand()
...
This also has the added benefit that after a restart we don't get the
same random numbers all the time because we forgot to initialize the
RNG with srand().
2021-07-24 01:40:51 +02:00
Gunnar Beutner
807b79d89e
Spider: Avoid reallocations for Vectors when possible
2021-07-24 01:40:51 +02:00
Gunnar Beutner
d76b42599e
Hearts: Avoid reallocations for Vectors when possible
2021-07-24 01:40:51 +02:00
Gunnar Beutner
5201c17d9b
Hearts: Use AK::get_random_uniform() instead of rand()/srand()
2021-07-24 01:40:51 +02:00
Gunnar Beutner
59007bba84
Hearts: Avoid redrawing the UI unnecessarily
2021-07-23 02:34:59 +02:00
Andreas Kling
687a12d7fb
Userland: Add GUI::Window::add_menu() and use it everywhere
...
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-21 21:24:26 +02:00