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

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