Difference between revisions of "Integer (property type)"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
(Created page with "At its simplest, an integer property stores a single integer value. However it is also possible to give the integer a specific type by selecting a [[Value_list_property_type|valu...")
 
m (Properties)
Line 9: Line 9:
  
 
[[File:ObjectPropertiesCanHold.jpg]]
 
[[File:ObjectPropertiesCanHold.jpg]]
 +
 +
The value 14 here indicates that the surface of this object can have a maximum of 14 other objects placed on top of it.
  
 
An integer property with the type "Object size" stores both a number and the name of one of the values from the "Object size" value list.  
 
An integer property with the type "Object size" stores both a number and the name of one of the values from the "Object size" value list.  
Line 16: Line 18:
 
Looking at the definition of the "Object size" value list, you will see that each name corresponds to value.
 
Looking at the definition of the "Object size" value list, you will see that each name corresponds to value.
  
The name "Normal" has the value 3, so the value of the "...and the container can hold" property shown above is 1 x 3 = 3.   
+
The name "Normal" has the value 9, so the resulting value of the "...and the container can hold" property shown above is 1 x 9 = 9.   
  
 
[[File:PropertyDialogObjectSize.jpg]]
 
[[File:PropertyDialogObjectSize.jpg]]

Revision as of 01:44, 7 January 2013

At its simplest, an integer property stores a single integer value. However it is also possible to give the integer a specific type by selecting a value list to use with it.

The property now stores two values, a simple integer plus one of the items from this value list.

When this property is used in an expression, the integer value is multiplied by the value of the selection from the value list, and the result is returned as the value of the property.

Properties

A normal integer property stores a single integer number:

ObjectPropertiesCanHold.jpg

The value 14 here indicates that the surface of this object can have a maximum of 14 other objects placed on top of it.

An integer property with the type "Object size" stores both a number and the name of one of the values from the "Object size" value list.

PropertyContainerCapacity.jpg

Looking at the definition of the "Object size" value list, you will see that each name corresponds to value.

The name "Normal" has the value 9, so the resulting value of the "...and the container can hold" property shown above is 1 x 9 = 9.

PropertyDialogObjectSize.jpg

Testing the property value

Creating a new integer property