summaryrefslogtreecommitdiffstats
path: root/src/game/client/gui/imutils_popup.hh
blob: 159503bfff43be72225863570ab52589ac13e4dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: imutils_popup.hh
// Description: Popup utilities

#ifndef CLIENT_GUI_IMUTILS_POPUP_HH
#define CLIENT_GUI_IMUTILS_POPUP_HH
#pragma once

/// Returned by popup::show whenever the popup is opened
/// but there is no user action yet, so the UI should wait
constexpr static int POPUP_WAIT = -1;

namespace imutils
{
int popup(const std::string& title, const std::string& question, const std::string* choices, std::size_t num_choices,
    float font_scale = 1.75f);
} // namespace imutils

#endif