Merge branch 'master' of https://github.com/ZDoom/gzdoom into gzd-master-experimental
This commit is contained in:
commit
2e09abc4e8
39 changed files with 279 additions and 91 deletions
|
|
@ -31,6 +31,11 @@ void NetStartWindow::HideNetStartPane()
|
|||
Instance = nullptr;
|
||||
}
|
||||
|
||||
void NetStartWindow::CloseNetStartPane()
|
||||
{
|
||||
NetStartWindow::NetClose();
|
||||
}
|
||||
|
||||
void NetStartWindow::SetNetStartProgress(int pos)
|
||||
{
|
||||
if (Instance)
|
||||
|
|
@ -64,6 +69,12 @@ bool NetStartWindow::RunMessageLoop(bool (*newtimer_callback)(void*), void* newu
|
|||
return Instance->exitreason;
|
||||
}
|
||||
|
||||
void NetStartWindow::NetClose()
|
||||
{
|
||||
if (Instance != nullptr)
|
||||
Instance->OnClose();
|
||||
}
|
||||
|
||||
NetStartWindow::NetStartWindow() : Widget(nullptr, WidgetType::Window)
|
||||
{
|
||||
SetWindowBackground(Colorf::fromRgba8(51, 51, 51));
|
||||
|
|
|
|||
|
|
@ -12,8 +12,10 @@ class NetStartWindow : public Widget
|
|||
public:
|
||||
static void ShowNetStartPane(const char* message, int maxpos);
|
||||
static void HideNetStartPane();
|
||||
static void CloseNetStartPane();
|
||||
static void SetNetStartProgress(int pos);
|
||||
static bool RunMessageLoop(bool (*timer_callback)(void*), void* userdata);
|
||||
static void NetClose();
|
||||
|
||||
private:
|
||||
NetStartWindow();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue