blob: a281492aba85ed5871f90f2f320b15fc2ec81930 (
plain)
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
|
# SPDX-License-Identifier: GPL-2.0-or-later
from bpy.types import Header
class STATUSBAR_HT_header(Header):
bl_space_type = 'STATUSBAR'
def draw(self, context):
layout = self.layout
# input status
layout.template_input_status()
layout.separator_spacer()
# Messages
layout.template_reports_banner()
# Progress Bar
layout.template_running_jobs()
layout.separator_spacer()
row = layout.row()
row.alignment = 'RIGHT'
# Stats & Info
row.label(text=context.screen.statusbar_info(), translate=False)
classes = (
STATUSBAR_HT_header,
)
if __name__ == "__main__": # only for live edit.
from bpy.utils import register_class
for cls in classes:
register_class(cls)
|