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

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/.