OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
cl_uiview3d.h
1/*
2===========================================================================
3Copyright (C) 2015 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 View3D : public UIWidget
26{
27 float m_printfadetime;
28 float m_printalpha;
29 str m_printstring;
30 UIReggedMaterial *m_print_mat;
31 qboolean m_locationprint;
32 int m_x_coord;
33 int m_y_coord;
34 qboolean m_letterbox_active;
35
36public:
37 CLASS_PROTOTYPE(View3D);
38
39protected:
40 void Draw(void) override;
41 void DrawLetterbox(void);
42 void DrawFades(void);
43 void Draw2D(void);
44 void DrawFPS(void);
45 void DrawProf(void);
46 void PrintSound(int channel, const char *name, float vol, int rvol, float pitch, float base, int& line);
47 void DrawSoundOverlay(void);
48 void CenterPrint(void);
49 void LocationPrint(void);
50 void OnActivate(Event *ev);
51 void OnDeactivate(Event *ev);
52 void DrawSubtitleOverlay(void);
53
54 // Added in 2.0
55 void DrawNetProfile(void);
56
57public:
58 View3D();
59
60 void ClearCenterPrint(void);
61 void UpdateCenterPrint(const char *s, float alpha);
62 void UpdateLocationPrint(int x, int y, const char *s, float alpha);
63 qboolean LetterboxActive(void);
64 void InitSubtitle(void);
65 void FrameInitialized(void) override;
66 virtual void Pressed(Event *ev);
67};
68
69class ConsoleView : public UIWidget
70{
71public:
72 CLASS_PROTOTYPE(ConsoleView);
73
74protected:
75 void Draw(void) override;
76};
Definition cl_uiview3d.h:70
Definition listener.h:246
Definition uiwidget.h:35
Definition str.h:77