mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[console] Add a screenshot button to the debug ui
Saves me having to bind a key.
This commit is contained in:
parent
1404b85846
commit
0a260129a8
1 changed files with 7 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "QF/cbuf.h"
|
||||||
#include "QF/cvar.h"
|
#include "QF/cvar.h"
|
||||||
#include "QF/input.h"
|
#include "QF/input.h"
|
||||||
#include "QF/keys.h"
|
#include "QF/keys.h"
|
||||||
|
@ -169,6 +170,7 @@ con_debug_f (void *data, const cvar_t *cvar)
|
||||||
if (!con_debug) {
|
if (!con_debug) {
|
||||||
IE_Set_Focus (debug_saved_focus);
|
IE_Set_Focus (debug_saved_focus);
|
||||||
IMT_SetContext (debug_saved_context);
|
IMT_SetContext (debug_saved_context);
|
||||||
|
r_override_camera = false;
|
||||||
} else {
|
} else {
|
||||||
IMUI_SetSize (debug_imui, deb_xlen, deb_ylen);
|
IMUI_SetSize (debug_imui, deb_xlen, deb_ylen);
|
||||||
}
|
}
|
||||||
|
@ -512,6 +514,11 @@ static imui_window_t window = {
|
||||||
if (UI_Button ("Close Debug")) {
|
if (UI_Button ("Close Debug")) {
|
||||||
close_debug_pressed = true;
|
close_debug_pressed = true;
|
||||||
}
|
}
|
||||||
|
IMUI_Spacer (debug_imui, imui_size_pixels, 10,
|
||||||
|
imui_size_expand, 100);
|
||||||
|
if (UI_Button ("Screenshot")) {
|
||||||
|
Cbuf_AddText (con_data.cbuf, "screenshot\n");
|
||||||
|
}
|
||||||
UI_FlexibleSpace ();
|
UI_FlexibleSpace ();
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Loading…
Reference in a new issue