lightspeed.trex.welcome_pads.stagecraft.models

  • SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

  • SPDX-License-Identifier: Apache-2.0

  • Licensed under the Apache License, Version 2.0 (the “License”);

  • you may not use this file except in compliance with the License.

  • You may obtain a copy of the License at

  • https://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software

  • distributed under the License is distributed on an “AS IS” BASIS,

  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  • See the License for the specific language governing permissions and

  • limitations under the License.

class lightspeed.trex.welcome_pads.stagecraft.models.Item(idt=None)

Bases: omni.ui._ui.AbstractItem

Item of the model

abstract property description

Description of the item that will be shown

description_override_delegate()

If use_description_override_delegate is True, this function will be executed to draw the description

Returns

The created widget

abstract get_image() str

Image that will be showed on the left

on_description_scrolled_x(x)

Action that will be called when the description is scrolled on x

on_description_scrolled_y(y)

Action that will be called when the description is scrolled on y

on_hovered(hovered)

Action that will be called when the item is hovered on

on_mouse_pressed()

Action that will be called when the item is clicked on

on_mouse_released()

Action that will be called when the item is released on

abstract property title

Title of the item that will be shown

title_override_delegate() omni.ui._ui.Widget

If use_title_override_delegate is True, this function will be executed to draw the title

Returns

The created widget

class lightspeed.trex.welcome_pads.stagecraft.models.LaunchRemixGameItem(on_mouse_pressed_callback: Callable)

Bases: omni.flux.welcome_pad.widget.model.Item

Item of the model

property description

Description of the item that will be shown

get_image() str

Image that will be showed on the left

on_description_scrolled_x(x)

Action that will be called when the description is scrolled on x

on_description_scrolled_y(y)

Action that will be called when the description is scrolled on y

on_hovered(hovered)

Action that will be called when the item is hovered on

on_mouse_pressed()

Action that will be called when the item is clicked on

on_mouse_released()

Action that will be called when the item is released on

property title

Title of the item that will be shown

class lightspeed.trex.welcome_pads.stagecraft.models.NewWorkFileItem(on_mouse_pressed_callback: Callable)

Bases: omni.flux.welcome_pad.widget.model.Item

Item of the model

property description

Description of the item that will be shown

get_image() str

Image that will be showed on the left

on_description_scrolled_x(x)

Action that will be called when the description is scrolled on x

on_description_scrolled_y(y)

Action that will be called when the description is scrolled on y

on_hovered(hovered)

Action that will be called when the item is hovered on

on_mouse_pressed()

Action that will be called when the item is clicked on

on_mouse_released()

Action that will be called when the item is released on

property title

Title of the item that will be shown

class lightspeed.trex.welcome_pads.stagecraft.models.RecentWorkFileItem(title: str, description: Dict[str, str], image_fn: Callable, on_mouse_pressed_callback: Callable, path)

Bases: omni.flux.welcome_pad.widget.model.Item

Item of the model

property description

Description of the item that will be shown

description_override_delegate()

If use_description_override_delegate is True, this function will be executed to draw the description

Returns

The created widget

get_image() str

Image that will be showed on the left

on_description_scrolled_x(x)

Action that will be called when the description is scrolled on x

on_description_scrolled_y(y)

Action that will be called when the description is scrolled on y

on_hovered(hovered)

Action that will be called when the item is hovered on

on_mouse_pressed()

Action that will be called when the item is clicked on

on_mouse_released()

Action that will be called when the item is released on

property title

Title of the item that will be shown

class lightspeed.trex.welcome_pads.stagecraft.models.ResumeWorkFileItem(on_mouse_pressed_callback: Callable)

Bases: omni.flux.welcome_pad.widget.model.Item

Item of the model

property description

Description of the item that will be shown

get_image() str

Image that will be showed on the left

on_description_scrolled_x(x)

Action that will be called when the description is scrolled on x

on_description_scrolled_y(y)

Action that will be called when the description is scrolled on y

on_hovered(hovered)

Action that will be called when the item is hovered on

on_mouse_pressed()

Action that will be called when the item is clicked on

on_mouse_released()

Action that will be called when the item is released on

property title

Title of the item that will be shown