Bill Currie
1f99f89a4a
Fix some printf portability issues
2023-07-25 15:07:17 +09:00
Bill Currie
4b86a0376d
[console] Reset minimum time too
...
Not sure what happened to it, I thought I'd done that before.
2023-07-21 19:31:20 +09:00
Bill Currie
8e0bfb1a7b
[console] Implement mouse trackball camera control
...
I've always wanted this in QF :)
2023-07-14 11:28:04 +09:00
Bill Currie
12b4cd8aba
[console] Clean up the debug camera window
...
Now that I have menus, I can close the window.
2023-07-13 23:36:12 +09:00
Bill Currie
21a9cbc61b
[ui] Implement a basic menu system
...
Menus within menu contexts automatically create menu items for the
sub-menu, and menus collapse when leaf menus are select.
2023-07-13 23:16:26 +09:00
Bill Currie
a6fa10b24d
[vulkan] Show timings for the job and steps
...
No real surprises anywhere other than how long things can take at random
times.
2023-07-13 18:33:31 +09:00
Bill Currie
3944cab95f
[console] Start work on a main menu
...
It's rather clunky at the moment, especially with menus still in
development, but it gets the basics going for testing.
2023-07-13 14:25:08 +09:00
Bill Currie
0a260129a8
[console] Add a screenshot button to the debug ui
...
Saves me having to bind a key.
2023-07-12 23:23:57 +09:00
Bill Currie
313aa116f8
[console] Get a debug camera working
...
It's now possible to move around the world separate from the player. The
debug ui has its own set of button and axis bindings for navigation.
2023-07-12 00:55:44 +09:00
Bill Currie
24b5066760
[ui] Implement panel widgets and use for windows
...
The intent is to use them for menus, tooltips and anything else along
those lines, but windows was a good starting point (and puts a border
along the top of the window too).
2023-07-11 10:04:07 +09:00
Bill Currie
48cc4db45d
[ui] Give windows a small border
...
It's currently hard-coded to black, but it makes the windows much easier
to see when overlapping.
2023-07-10 22:10:04 +09:00
Bill Currie
9f737000a8
[ui] Put windows on separate canvases
...
This fixes the draw order issues shown by overlapping windows.
2023-07-09 22:22:05 +09:00
Bill Currie
008aebf344
[console] Implement a very lame style editor
...
Lame partly because the color selection is not nice. However, it has
shown how slow hierarchy creation can be (it swamps font layout even).
2023-07-06 19:39:26 +09:00
Bill Currie
df40a50b91
[ui] Implement dragable collapsible windows
...
And of course, closable.
2023-07-06 12:21:14 +09:00
Bill Currie
0fab830be6
[ui] Implement auto-expand layout
...
By default, horizontal and vertical layouts expand to fill their parent
in their on-axis direction (horizontally for horizontal layouts), but
fit to their child views in their off-axis.
Flexible space views take advantage of auto-expansion, pushing sibling
views such that the grandparent view is filled on the parent view's
on-axis, and the parent view is filled by the space in the parent view's
off-axis. Flexible views currently have a background fill, allowing them
to provide background filling of the overall view with minimal overdraw
(ancestor views don't need to have any fill at all).
2023-07-05 19:33:00 +09:00
Bill Currie
403cf72f52
[ui] Implement a layout stack and radio buttons
...
Also, remove an intermittent double free caused by deleting views that
have already been deleted.
2023-07-04 01:31:04 +09:00
Bill Currie
ed5ef3a5fb
[ui] Implement event handling in imui
...
Button presses work nicely thanks to both Casey Muratori and Darian (for
clearing up some of Casey's comments about `hot`).
2023-07-02 01:25:27 +09:00
Bill Currie
5099633bc8
[console] Start work on a debug UI
...
It does almost nothing (just puts a non-function button on the screen),
but it will help develop the IMUI code and, of course, come to help with
debugging in general.
2023-07-01 20:00:26 +09:00