Ui
The global Ui.
Functions
Ui.new(className: string, props: {[any]: any}?): InstanceUi.View(props: {[any]: any}?): ViewUi.ScrollView(props: {[any]: any}?): ScrollViewUi.Text(props: {[any]: any}?): TextUi.TextInput(props: {[any]: any}?): TextInputUi.Terminal(props: {[any]: any}?): TerminalUi.Image(props: {[any]: any}?): ImageUi.Surface(props: {[any]: any}?): SurfaceUi.Shortcut(props: {[any]: any}?): ShortcutUi.State<T>(value: T): UiState<T>Ui.Computed<T>(compute: (use: (source: any) -> any) -> T): UiState<T>Ui.ForEach<T>(list: UiState<{T}> | {T}, render: (item: T, index: number) -> Instance, key: (string | (item: T) -> any)?): UiState<{Instance}>Ui.Animated<T>(source: UiState<T>, info: TweenInfo?): UiState<T>Ui.Spring<T>(source: UiState<T>, speed: number?, damping: number?): UiState<T>Ui.Markup(spans: {any}): stringUi.StyleSheet(rules: {[string]: {[string]: any}} | string | UiState<string> | UiState<{[string]: {[string]: any}}>): StyleSheetUi.LoadStyleSheet(path: string): StyleSheetUi.LoadFont(family: string, path: string, weight: number?): ()
Types
luau
export type UiConnection = {
Connected: boolean,
Disconnect: (self: UiConnection) -> (),
}
export type UiChanged<T> = {
Connect: (self: UiChanged<T>, callback: (T) -> ()) -> UiConnection,
}
export type UiState<T> = {
Get: (self: UiState<T>) -> T,
Set: (self: UiState<T>, value: T) -> (),
Destroy: (self: UiState<T>) -> (),
Changed: UiChanged<T>,
}