mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
817aeb334e
Much of the nq/qw HUD system is quite broken, but the basic status bar seems to be working nicely. As is the console (both client and server). Possibly the biggest benefit is separating the rendering of HUD elements from the updating of them, and much less traversing of invisible views whose only purpose is to control the positioning of the visible views. The view flow tests are currently disabled until I adapt the flow code to ECS. There seems to be a problem with view resizing in that some gravities don't follow resizing correctly.
26 lines
407 B
C
26 lines
407 B
C
#ifndef __sv_console_h
|
|
#define __sv_console_h
|
|
|
|
enum {
|
|
server_href,
|
|
server_view,
|
|
server_window,
|
|
|
|
server_comp_count
|
|
};
|
|
|
|
struct view_s;
|
|
|
|
typedef struct sv_view_s {
|
|
void *win;
|
|
void *obj;
|
|
void (*draw) (struct view_s view);
|
|
void (*setgeometry) (struct view_s view);
|
|
} sv_view_t;
|
|
|
|
typedef struct sv_sbar_s {
|
|
int width;
|
|
char *text;
|
|
} sv_sbar_t;
|
|
|
|
#endif//__sv_console_h
|