Component:AppVersion: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
 
Line 3: Line 3:
|Name=App Version
|Name=App Version
}}
}}
{{stub}}
App version is a component that updates it's fields with the live information of Resonite's version.


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|VersionNumber|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv0=true|
|VersionNumber|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv0=true| The version number of Resonite. usually formatted year.month.day.minute. The minute part of the version is the minute from midnight UTC the version was compiled.
|VersionName|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv1=true|
|VersionName|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv1=true| The name of the version of Resonite. Usually this is "Beta", "Alpha" or "Release" followed by <code>VersionNumber</code>
|FullVersionString|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv2=true|
|FullVersionString|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv2=true| Usually the same as <code>VersionNumber</code>
|BuildYear|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv3=true|
|BuildYear|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv3=true| The year Resonite was compiled.
|BuildMonth|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv4=true|
|BuildMonth|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv4=true| The month Resonite was compiled.
|BuildDay|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv5=true|
|BuildDay|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv5=true| The day Resonite was compiled.
|BuildTimeOfDay|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv6=true|
|BuildTimeOfDay|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv6=true| The amount of minutes since midnight UTC.
}}
}}


== Behavior ==
== Behavior ==
The fields are "Sudo Driven" or constantly being written to. Attempting to change a field makes it instantly change back and not send an update event.


== Examples ==
== Examples ==
Line 24: Line 25:
[[Category:Components:Utility{{#translation:}}|App Version]]
[[Category:Components:Utility{{#translation:}}|App Version]]
[[Category:Components{{#translation:}}|App Version]]
[[Category:Components{{#translation:}}|App Version]]
[[Category:ComponentStubs]]

Latest revision as of 21:32, 26 July 2024

Component image 
App Version component as seen in the Scene Inspector

App version is a component that updates it's fields with the live information of Resonite's version.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
VersionNumber raw output of String The version number of Resonite. usually formatted year.month.day.minute. The minute part of the version is the minute from midnight UTC the version was compiled.
VersionName raw output of String The name of the version of Resonite. Usually this is "Beta", "Alpha" or "Release" followed by VersionNumber
FullVersionString raw output of String Usually the same as VersionNumber
BuildYear raw output of Int The year Resonite was compiled.
BuildMonth raw output of Int The month Resonite was compiled.
BuildDay raw output of Int The day Resonite was compiled.
BuildTimeOfDay raw output of Int The amount of minutes since midnight UTC.

Behavior

The fields are "Sudo Driven" or constantly being written to. Attempting to change a field makes it instantly change back and not send an update event.

Examples

See Also