1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use *;
/// Marks an entity as a non-interactive background panel.
///
/// Combine with [`super::Position`], [`super::Size`] and [`super::Background`].
;
/// The bar across the top of a panel: its title, and what you drag to move it.
/// Every entity a panel spawned, so moving the panel moves its contents.
///
/// Not a hierarchy -- one level is all a panel has, and a `Vec` on the panel
/// would have to be kept in step with a list that is rebuilt from scratch.
;
/// On a close button: which panel it shuts.
;
/// Put on a panel by [`super::systems::dispatch_panel_close_system`] when its
/// close button is clicked.
///
/// A marker rather than a despawn: a panel's lifetime belongs to whatever put
/// it up -- the outliner rebuilds its own rows and has to know it was closed
/// rather than find itself gone.
;
/// A panel that can be dragged by its title bar. Panels without one cannot
/// be moved, and a panel with one can opt out -- a main menu is centred on
/// purpose and should stay there.
;
/// A drag in progress: where the pointer was, and where the panel was.