OpenMoHAA 0.82.1
Loading...
Searching...
No Matches
uilayout.h
1/*
2===========================================================================
3Copyright (C) 2024 the OpenMoHAA team
4
5This file is part of OpenMoHAA source code.
6
7OpenMoHAA source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12OpenMoHAA source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with OpenMoHAA source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22
23#pragma once
24
25class Script;
26
27class UILayout : public Listener
28{
29 str m_filename;
30 Script *m_script;
31 Stack<Script *> m_scriptstack;
32 UIWidgetContainer *m_currentcontainer;
33 UIWidget *m_currentwidget;
34 bool m_bLoaded;
35
36public:
37 CLASS_PROTOTYPE(UILayout);
38
39private:
40 void BogusFunction(void);
41 void CreateWidgetContainer(Event *ev);
42 void ProcessCommands(bool bFullLoad);
43
44public:
45 UILayout();
46 UILayout(const char *filename);
47
48 void Load(const char *filename, bool bFullLoad);
49 int ForceLoad(void);
50};
Definition listener.h:246
Definition script.h:60
Definition stack.h:50
Definition uiwidget.h:362
Definition uiwidget.h:103
Definition str.h:77