Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
scrollpanel.qh
Go to the documentation of this file.
1
#pragma once
2
3
#include "
listbox.qh
"
4
#include "
tab.qh
"
5
CLASS
(
XonoticScrollPanel
,
XonoticListBox
)
7
ATTRIB
(
XonoticScrollPanel
,
currentPanel
,
entity
,
NEW
(
XonoticTab
));
8
ATTRIB
(
XonoticScrollPanel
,
nItems
,
int
, 1);
9
ATTRIB
(
XonoticScrollPanel
,
selectionDoesntMatter
,
bool
,
true
);
10
ATTRIB
(
XonoticScrollPanel
,
itemHeight
,
float
, 1);
12
ATTRIB
(
XonoticScrollPanel
,
viewportHeight
,
float
, 12);
13
ATTRIB
(
XonoticScrollPanel
,
alphaBG
,
float
, 0);
14
15
METHOD
(
XonoticScrollPanel
,
getItemAtPos
,
float
(
XonoticScrollPanel
this
,
float
pos)) {
return
0; }
16
METHOD
(
XonoticScrollPanel
,
getItemHeight
,
float
(
XonoticScrollPanel
this
,
int
i)) {
return
this.
itemHeight
; }
17
METHOD
(
XonoticScrollPanel
,
getItemStart
,
float
(
XonoticScrollPanel
this
,
int
i)) {
return
0; }
18
METHOD
(
XonoticScrollPanel
,
getTotalHeight
,
float
(
XonoticScrollPanel
this
)) {
return
this.
itemHeight
; }
19
METHOD
(
XonoticScrollPanel
,
setFocus
,
void
(
XonoticScrollPanel
this
,
entity
other
)) {
Container_setFocus
(
this
,
other
); }
20
METHOD
(
XonoticScrollPanel
,
setSelected
,
void
(
XonoticScrollPanel
this
,
int
i)) { }
21
22
METHOD
(
XonoticScrollPanel
, drawListBoxItem,
void
(
XonoticScrollPanel
this
,
int
i,
vector
absSize,
bool
isSelected,
bool
isFocused));
23
METHOD
(
XonoticScrollPanel
, resizeNotify,
void
(
XonoticScrollPanel
this
,
vector
relOrigin,
vector
relSize,
vector
absOrigin,
vector
absSize));
24
ENDCLASS
(
XonoticScrollPanel
)
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
ListBox::ATTRIB
ATTRIB(ListBox, src, string)
XonoticListBox
Definition
listbox.qh:4
XonoticScrollPanel
Definition
scrollpanel.qh:5
XonoticScrollPanel::setSelected
virtual void setSelected()
Definition
scrollpanel.qh:20
XonoticScrollPanel::nItems
int nItems
Definition
scrollpanel.qh:8
XonoticScrollPanel::alphaBG
float alphaBG
Definition
scrollpanel.qh:13
XonoticScrollPanel::itemHeight
float itemHeight
Definition
scrollpanel.qh:10
XonoticScrollPanel::setFocus
virtual void setFocus()
Definition
scrollpanel.qh:19
XonoticScrollPanel::getTotalHeight
virtual void getTotalHeight()
Definition
scrollpanel.qh:18
XonoticScrollPanel::selectionDoesntMatter
bool selectionDoesntMatter
Definition
scrollpanel.qh:9
XonoticScrollPanel::viewportHeight
float viewportHeight
number of rows to show at once
Definition
scrollpanel.qh:12
XonoticScrollPanel::getItemAtPos
virtual void getItemAtPos()
Definition
scrollpanel.qh:15
XonoticScrollPanel::getItemStart
virtual void getItemStart()
Definition
scrollpanel.qh:17
XonoticScrollPanel::getItemHeight
virtual void getItemHeight()
Definition
scrollpanel.qh:16
XonoticScrollPanel::currentPanel
entity currentPanel
container for single child panel
Definition
scrollpanel.qh:7
XonoticTab
Definition
tab.qh:4
Container_setFocus
void Container_setFocus(entity me, entity other)
Definition
container.qc:299
other
entity other
Definition
csprogsdefs.qc:14
true
#define true
Definition
csprogsdefs.qh:5
NEW
#define NEW(cname,...)
Definition
oo.qh:117
CLASS
#define CLASS(...)
Definition
oo.qh:145
ENDCLASS
#define ENDCLASS(cname)
Definition
oo.qh:281
METHOD
#define METHOD(cname, name, prototype)
Definition
oo.qh:269
vector
vector
Definition
self.qh:92
this
entity this
Definition
self.qh:72
listbox.qh
tab.qh
menu
xonotic
scrollpanel.qh
Generated on
for Xonotic QuakeC by
1.14.0