Texture browser: Also draw a dark background for INITIALIZING state
This commit is contained in:
parent
56353d4177
commit
c1b6480f9a
@ -553,6 +553,7 @@ class BlenderCloudBrowser(pillar.PillarOperatorMixin,
|
|||||||
"""Draws the GUI with OpenGL."""
|
"""Draws the GUI with OpenGL."""
|
||||||
|
|
||||||
drawers = {
|
drawers = {
|
||||||
|
'INITIALIZING': self._draw_initializing,
|
||||||
'CHECKING_CREDENTIALS': self._draw_checking_credentials,
|
'CHECKING_CREDENTIALS': self._draw_checking_credentials,
|
||||||
'BROWSING': self._draw_browser,
|
'BROWSING': self._draw_browser,
|
||||||
'DOWNLOADING_TEXTURE': self._draw_downloading,
|
'DOWNLOADING_TEXTURE': self._draw_downloading,
|
||||||
@ -653,6 +654,13 @@ class BlenderCloudBrowser(pillar.PillarOperatorMixin,
|
|||||||
'Checking login credentials',
|
'Checking login credentials',
|
||||||
(0.0, 0.0, 0.2, 0.6))
|
(0.0, 0.0, 0.2, 0.6))
|
||||||
|
|
||||||
|
def _draw_initializing(self, context):
|
||||||
|
"""OpenGL drawing code for the INITIALIZING state."""
|
||||||
|
|
||||||
|
self._draw_text_on_colour(context,
|
||||||
|
'Initializing',
|
||||||
|
(0.0, 0.0, 0.2, 0.6))
|
||||||
|
|
||||||
def _draw_text_on_colour(self, context, text, bgcolour):
|
def _draw_text_on_colour(self, context, text, bgcolour):
|
||||||
content_height, content_width = self._window_size(context)
|
content_height, content_width = self._window_size(context)
|
||||||
bgl.glEnable(bgl.GL_BLEND)
|
bgl.glEnable(bgl.GL_BLEND)
|
||||||
|
Reference in New Issue
Block a user