lstmdg cfdbf69074 2023.7.28 1 ano atrás
..
ChangeListElements cfdbf69074 2023.7.28 1 ano atrás
Menus cfdbf69074 2023.7.28 1 ano atrás
AdapterListView.cs cfdbf69074 2023.7.28 1 ano atrás
AdapterListView.cs.meta cfdbf69074 2023.7.28 1 ano atrás
AlertBox.cs cfdbf69074 2023.7.28 1 ano atrás
AlertBox.cs.meta cfdbf69074 2023.7.28 1 ano atrás
BetterTextField.cs cfdbf69074 2023.7.28 1 ano atrás
BetterTextField.cs.meta cfdbf69074 2023.7.28 1 ano atrás
ChangeEntryGroup.cs cfdbf69074 2023.7.28 1 ano atrás
ChangeEntryGroup.cs.meta cfdbf69074 2023.7.28 1 ano atrás
ChangeListElements.meta cfdbf69074 2023.7.28 1 ano atrás
ChangesGroupHeader.cs cfdbf69074 2023.7.28 1 ano atrás
ChangesGroupHeader.cs.meta cfdbf69074 2023.7.28 1 ano atrás
ErrorPageView.cs cfdbf69074 2023.7.28 1 ano atrás
ErrorPageView.cs.meta cfdbf69074 2023.7.28 1 ano atrás
HistoryEntryComponent.cs cfdbf69074 2023.7.28 1 ano atrás
HistoryEntryComponent.cs.meta cfdbf69074 2023.7.28 1 ano atrás
IconButton.cs cfdbf69074 2023.7.28 1 ano atrás
IconButton.cs.meta cfdbf69074 2023.7.28 1 ano atrás
IconTextButton.cs cfdbf69074 2023.7.28 1 ano atrás
IconTextButton.cs.meta cfdbf69074 2023.7.28 1 ano atrás
ListNotice.cs cfdbf69074 2023.7.28 1 ano atrás
ListNotice.cs.meta cfdbf69074 2023.7.28 1 ano atrás
Menus.meta cfdbf69074 2023.7.28 1 ano atrás
PageComponent.cs cfdbf69074 2023.7.28 1 ano atrás
PageComponent.cs.meta cfdbf69074 2023.7.28 1 ano atrás
Paginator.cs cfdbf69074 2023.7.28 1 ano atrás
Paginator.cs.meta cfdbf69074 2023.7.28 1 ano atrás
ProgressView.cs cfdbf69074 2023.7.28 1 ano atrás
ProgressView.cs.meta cfdbf69074 2023.7.28 1 ano atrás
README.md cfdbf69074 2023.7.28 1 ano atrás
README.md.meta cfdbf69074 2023.7.28 1 ano atrás
SearchBar.cs cfdbf69074 2023.7.28 1 ano atrás
SearchBar.cs.meta cfdbf69074 2023.7.28 1 ano atrás
TabPageComponent.cs cfdbf69074 2023.7.28 1 ano atrás
TabPageComponent.cs.meta cfdbf69074 2023.7.28 1 ano atrás
TabView.cs cfdbf69074 2023.7.28 1 ano atrás
TabView.cs.meta cfdbf69074 2023.7.28 1 ano atrás
TextButton.cs cfdbf69074 2023.7.28 1 ano atrás
TextButton.cs.meta cfdbf69074 2023.7.28 1 ano atrás
TopBar.cs cfdbf69074 2023.7.28 1 ano atrás
TopBar.cs.meta cfdbf69074 2023.7.28 1 ano atrás

README.md

Resources

This directory contains the UIElements-based user interface components.

Overview

Each component is defined as its own class and file in this directory.

Adding a New Component

Each component is a C# class that extends the UiElements' VisualElement class and provides a UXML factory. If no UXML parameters are required/desired, a simple factory like this (taken from AlertBar) works:

public new class UxmlFactory : UxmlFactory<AlertBar> { }

Just adding this line to the bottom of the component class with the <AlertBar> replaced with the name of the class. Adding UXML parameters used to be covered in the official docs. Until it is returned: look at the source code for any UiElements class such as TextElement.

To use the component in UXML (with editor inspections) the xml schema needs to be updated within the Unity Editor. Instructions on how to do that is contained in ../Assets/.