Difference between revisions of "State (property type)"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
(State List property -> State property)
(Warning about states which have spaces)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{| style="width:12em; font-size:90%; text-align:left; float:right; border:1px #CCC solid; margin-left:1em; margin-bottom:1em;" cellpadding="3" cellspacing="0"
 +
! colspan="2" style="font-size:110%; text-align: center; background-color: #ccccff;" | ''THE MAIN ITEMS''
 +
|-
 +
| style="background-color: #00C000;" | [[Locations]]
 +
|-
 +
| style="background-color: #00C000;" | [[Objects]]
 +
|-
 +
| style="background-color: #00C000;" | [[Tasks]]
 +
|-
 +
| style="background-color: #00C000;" | [[Characters]]
 +
|-
 +
| style="background-color: #00C000;" | [[Events]]
 +
|-
 +
| style="background-color: #00C000;" | [[Variables]]
 +
|-
 +
| style="background-color: #00C000;" | [[Groups/Classes|Groups]]
 +
|-
 +
| style="background-color: #00ff00;" | [[Properties ]]
 +
|-
 +
| ---- [[Character property type|Character]]
 +
|-
 +
| ---- [[Integer property type|Integer]]
 +
|-
 +
| ---- [[Location group property type|Location Group]]
 +
|-
 +
| ---- [[Location property type|Location]]
 +
|-
 +
| ---- [[Object property type|Object]]
 +
|-
 +
| ---- [[Selection only property type|Selection]]
 +
|-
 +
| style="color: #ffffff; background-color: #000000;" | ---- State
 +
|-
 +
| ---- [[Value property type|Value]]
 +
|-
 +
| ---- [[Text property type|Text]]
 +
|-
 +
| style="background-color: #00C000;" | [[Text Overrides]]
 +
|-
 +
| style="background-color: #00C000;" | [[Hints]]
 +
|-
 +
| style="background-color: #00C000;" | [[Synonym|Synonyms]]
 +
|-
 +
| style="background-color: #00C000;" | [[User functions]]
 +
|}
 +
 
A "State" property type has two or more options that you can choose from, each of which is a single word.  
 
A "State" property type has two or more options that you can choose from, each of which is a single word.  
  
Line 12: Line 58:
  
  
To create a new state property, select the "State" type and then in the bottom panel give each state a name:
+
To create a new state property, select the "State" type and then in the bottom panel give each state a name:<br/>
 +
[[File:IconWarning.png]]<span style="color: red">Each state in the list must be a single word. No spaces are allowed.</span>
  
 
[[File:PropertyDialogWornOn.jpg]]
 
[[File:PropertyDialogWornOn.jpg]]
Line 20: Line 67:
 
: "Locked status" is set to appear only if the "Object can be Locked" property has been selected.
 
: "Locked status" is set to appear only if the "Object can be Locked" property has been selected.
 
: A state property set to append to another state property never appears itself.  
 
: A state property set to append to another state property never appears itself.  
Instead, when the "Object can be Locked" property is selected, its contents are merged with the states of the "Open status" state property so that it now has three states to choose from instead of the original two.
+
: Instead, when the "Object can be Locked" property is selected, its contents are merged with the states of the "Open status" state property so that it now has three states to choose from instead of the original two.
  
  
 
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Selection_only_property_type|<<< Selection Only property type]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Properties]]</TD><TD ALIGN=CENTER>[[Value_property_type|Value property type >>>]]</TD></TABLE>
 
<TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[Selection_only_property_type|<<< Selection Only property type]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Properties]]</TD><TD ALIGN=CENTER>[[Value_property_type|Value property type >>>]]</TD></TABLE>

Latest revision as of 04:32, 18 March 2019

THE MAIN ITEMS
Locations
Objects
Tasks
Characters
Events
Variables
Groups
Properties
---- Character
---- Integer
---- Location Group
---- Location
---- Object
---- Selection
---- State
---- Value
---- Text
Text Overrides
Hints
Synonyms
User functions

A "State" property type has two or more options that you can choose from, each of which is a single word.

If the state property only has two options, then it is displayed as two side-by-side radio buttons and you simply select the one you want. If you select the "Object can be opened and closed" property on the properties page of an object, then you will see the mandatory "Open status" property which has two radio buttons marked "Open" and "Closed".

PropertyObjectOpenClose.jpg

The "Gender" property of characters is an example of a state property with more than two options. In this case a drop-down list is displayed from which you can select the wanted option.

PropertyCharacterGender.jpg


To create a new state property, select the "State" type and then in the bottom panel give each state a name:
IconWarning.pngEach state in the list must be a single word. No spaces are allowed.

PropertyDialogWornOn.jpg

  • The "Append to" drop-down list at the bottom is used to add extra states to an existing state property when certain conditions are met.
For example, the "Locked status" property in the standard library contains the single state "Locked" and is set to append to the "Open status" property which contains the two states "Open" and "Closed".
"Locked status" is set to appear only if the "Object can be Locked" property has been selected.
A state property set to append to another state property never appears itself.
Instead, when the "Object can be Locked" property is selected, its contents are merged with the states of the "Open status" state property so that it now has three states to choose from instead of the original two.


<<< Selection Only property typePropertiesValue property type >>>