OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
cl_uistd.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
25typedef enum {
26 L_STATBAR_NONE,
27 L_STATBAR_HORIZONTAL,
28 L_STATBAR_VERTICAL,
29 L_STATBAR_VERTICAL_REVERSE,
30 L_STATBAR_VERTICAL_STAGGER_EVEN,
31 L_STATBAR_VERTICAL_STAGGER_ODD,
32 L_STATBAR_CIRCULAR,
33 L_STATBAR_NEEDLE,
34 L_STATBAR_ROTATOR,
35 L_STATBAR_COMPASS,
36 L_STATBAR_SPINNER,
37 L_STATBAR_HEADING_SPINNER
38} statbar_orientation_t;
39
40extern Event EV_ClearInvItemReference;
41
42class UIFakkLabel : public UILabel
43{
44protected:
46 int m_lastitemindex;
47 int m_stat;
48 int m_stat_alpha;
49 int m_stat_configstring;
50 int m_maxstat;
51 int m_itemindex;
52 int m_inventoryrendermodelindex;
53 str m_sDrawModelName;
54 qboolean m_rendermodel;
55 statbar_orientation_t m_statbar_or;
56 float m_statbar_min;
57 float m_statbar_max;
58 float m_lastfrac;
59 float m_flashtime;
60 vec3_t m_offset;
61 vec3_t m_rotateoffset;
62 vec3_t m_angles;
63 float m_scale;
64 str m_anim;
65 UIReggedMaterial *m_statbar_material;
66 UIReggedMaterial *m_statbar_material_flash;
67 UIReggedMaterial *m_statbar_material_marker;
68
69public:
70 CLASS_PROTOTYPE(UIFakkLabel);
71
72 UIFakkLabel();
73
74 void LayoutPlayerStat(Event *ev);
75 void LayoutPlayerStatAlpha(Event *ev); // Added in 2.0
76 void LayoutPlayerStatConfigstring(Event *ev);
77 void LayoutMaxPlayerStat(Event *ev);
78 void LayoutItemIndex(Event *ev);
79 void InventoryRenderModelIndex(Event *ev);
80 void LayoutModelName(Event *ev);
81 void ClearInvItemReference(Event *ev);
82 void LayoutStatbar(Event *ev);
83 void LayoutStatbarShader(Event *ev);
84 void LayoutStatbarTileShader(Event *ev);
85 void LayoutStatbarShader_Flash(Event *ev);
86 void LayoutStatbarShader_Marker(Event *ev); // Added in 2.0
87 void LayoutStatbarEndAngles(Event *ev);
88 void LayoutStatbarNeedleWidth(Event *ev);
89 void LayoutStatbarRotatorSize(Event *ev);
90 void LayoutStatbarTileShader_Flash(Event *ev);
91 void LayoutRenderModel(Event *ev);
92 void LayoutRenderModelOffset(Event *ev);
93 void LayoutRenderModelRotateOffset(Event *ev);
94 void LayoutRenderModelAngles(Event *ev);
95 void LayoutRenderModelScale(Event *ev);
96 void LayoutRenderModelAnim(Event *ev);
97
98 void DrawStatbar(float frac);
99 void DrawStatCircle(float frac);
100 void DrawStatNeedle(float frac);
101 void DrawStatRotator(float frac);
102 void DrawStatCompass(float frac);
103 void DrawStatSpinner(float frac);
104 void StatCircleTexCoord(float fAng, vec3_t vTexCoord);
105
106 void Draw(void) override;
107};
Definition listener.h:246
Definition safeptr.h:160
Definition uiwidget.h:35
Definition str.h:77