mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
d27616cf36
Added a new settings dialog to Hearts with a textbox to allow the player to set a name, which is persisted in the Hearts config file.
22 lines
425 B
C++
22 lines
425 B
C++
/*
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <LibGUI/Dialog.h>
|
|
|
|
class SettingsDialog : public GUI::Dialog {
|
|
C_OBJECT(SettingsDialog)
|
|
public:
|
|
String const& player_name() const { return m_player_name; }
|
|
|
|
private:
|
|
SettingsDialog(GUI::Window* parent, String player_name);
|
|
|
|
String m_player_name { "Gunnar" };
|
|
};
|