OpenMoHAA
0.82.0
Loading...
Searching...
No Matches
cl_uiminicon.h
1
/*
2
===========================================================================
3
Copyright (C) 2015 the OpenMoHAA team
4
5
This file is part of OpenMoHAA source code.
6
7
OpenMoHAA source code is free software; you can redistribute it
8
and/or modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of the License,
10
or (at your option) any later version.
11
12
OpenMoHAA source code is distributed in the hope that it will be
13
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with OpenMoHAA source code; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
===========================================================================
21
*/
22
23
#pragma once
24
25
class
FakkMiniconsole :
public
UIWidget
26
{
27
protected
:
28
Container<str>
m_lines;
29
int
m_maxlines;
30
bool
m_reallyshown;
31
bool
m_boxmovingout;
32
boxstate_t m_boxstate;
33
int
m_boxtime;
34
int
m_movespeed;
35
36
public
:
37
CLASS_PROTOTYPE(FakkMiniconsole);
38
39
protected
:
40
void
VerifyBoxOut(
void
);
41
void
ChangeBoxState(boxstate_t
state
);
42
void
HandleBoxMoving(
void
);
43
void
PostMoveinEvent(
void
);
44
void
setShowState(
void
);
45
46
public
:
47
FakkMiniconsole();
48
49
void
OnSizeChanged(
Event
*ev);
50
void
Print(
const
char
*text);
51
void
Create(
const
UISize2D
& size,
const
UColor
& fore,
const
UColor
& back,
float
alpha);
52
void
MoveInEvent(
Event
*ev);
53
void
Draw(
void
)
override
;
54
void
setRealShow(
bool
b);
55
};
Container
Definition
container.h:85
Event
Definition
listener.h:246
UColor
Definition
ucolor.h:25
UISize2D
Definition
uisize2d.h:25
state
Definition
puff.c:88
code
client
cl_uiminicon.h
Generated by
1.13.2