2023-08-16 00:20:26 +10:00
|
|
|
# SPDX-FileCopyrightText: 2018-2023 Blender Authors
|
2023-06-15 13:09:04 +10:00
|
|
|
#
|
2022-02-11 09:07:11 +11:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-06-15 13:09:04 +10:00
|
|
|
|
2018-05-23 22:38:25 +02:00
|
|
|
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
|
2023-07-24 14:18:22 +02:00
|
|
|
layout.template_status_info()
|
2020-07-18 07:49:25 -07:00
|
|
|
|
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)
|