OpenMoHAA 0.82.0
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 str m_filename;
29 Script *m_script;
30 Stack<Script *> m_scriptstack;
31 UIWidgetContainer *m_currentcontainer;
32 UIWidget *m_currentwidget;
33 bool m_bLoaded;
34
35public:
36 CLASS_PROTOTYPE( UILayout );
37
38private:
39 void BogusFunction( void );
40 void CreateWidgetContainer( Event *ev );
41 void ProcessCommands( bool bFullLoad );
42
43public:
44 UILayout();
45 UILayout( const char *filename );
46
47 void Load( const char *filename, bool bFullLoad );
48 int ForceLoad( void );
49};
Definition listener.h:246
Definition script.h:60
Definition stack.h:49
Definition uiwidget.h:341
Definition uiwidget.h:100
Definition str.h:77