2022-02-11 09:07:11 +11:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2018-05-23 22:38:25 +02:00
|
|
|
|
|
|
|
|
# <pep8 compliant>
|
|
|
|
|
from bpy.types import Header
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class STATUSBAR_HT_header(Header):
|
|
|
|
|
bl_space_type = 'STATUSBAR'
|
|
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
|
layout = self.layout
|
|
|
|
|
|
2018-06-27 19:48:54 +02:00
|
|
|
# input status
|
2018-06-26 17:19:25 +02:00
|
|
|
layout.template_input_status()
|
2018-05-23 22:38:25 +02:00
|
|
|
|
2018-06-27 19:48:54 +02:00
|
|
|
layout.separator_spacer()
|
2018-05-23 22:38:25 +02:00
|
|
|
|
2020-10-07 08:23:52 -07:00
|
|
|
# Messages
|
|
|
|
|
layout.template_reports_banner()
|
|
|
|
|
|
|
|
|
|
# Progress Bar
|
|
|
|
|
layout.template_running_jobs()
|
|
|
|
|
|
2018-10-19 17:14:27 +02:00
|
|
|
layout.separator_spacer()
|
|
|
|
|
|
2020-07-18 07:49:25 -07:00
|
|
|
row = layout.row()
|
|
|
|
|
row.alignment = 'RIGHT'
|
|
|
|
|
|
|
|
|
|
# Stats & Info
|
|
|
|
|
row.label(text=context.screen.statusbar_info(), translate=False)
|
|
|
|
|
|
2018-05-23 22:38:25 +02:00
|
|
|
|
|
|
|
|
classes = (
|
|
|
|
|
STATUSBAR_HT_header,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": # only for live edit.
|
|
|
|
|
from bpy.utils import register_class
|
|
|
|
|
for cls in classes:
|
|
|
|
|
register_class(cls)
|