Example #1
0
    def draw(self, context):
        props = utils.get_upload_props()
        layout = self.layout

        if self.reupload:
            # layout.prop(self, 'metadata')
            layout.prop(self, 'main_file')
            layout.prop(self, 'thumbnail')

        if props.asset_base_id != '' and not self.reupload:
            layout.label(text="Really upload as new? ")
            layout.label(
                text="Do this only when you create a new asset from an old one."
            )
            layout.label(
                text="For updates of thumbnail or model use reupload.")

        if props.is_private == 'PUBLIC':
            ui_panels.label_multiline(
                layout,
                text='public assets are validated several hours'
                ' or days after upload. Remember always to '
                'test download your asset to a clean file'
                ' to see if it uploaded correctly.',
                width=300)
Example #2
0
    def draw(self, context):
        props = utils.get_upload_props()
        layout = self.layout

        if self.as_new:
            layout.label(text="Really upload as new? ")
            layout.label(text="Do this only when you create a new asset from an old one.")
            layout.label(text="For updates of thumbnail or model use reupload.")

        if props.is_private == 'PUBLIC':
            ui_panels.label_multiline(layout, text='Since this version (1.0.24), '
                                                   'PUBLIC ASSETS ARE VALIDATED AUTOMATICALLY '
                                                   ' after upload. '
                                                   'Click Ok to proceed.')