Loading...
Searching...
No Matches
BaseContainerProps Interface Reference

An Attribute for BaseContainer. More...

Inheritance diagram for BaseContainerProps:
CommonEditorProps UniqueAttribute

Public Member Functions

proto void BaseContainerProps (string category="", string description="", string color="255 0 0 255", bool visible=true, bool insertable=true, bool configRoot=false, string icon="", NamingConvention namingConvention=NamingConvention.NC_MUST_HAVE_GUID)
 
- Public Member Functions inherited from CommonEditorProps
proto void CommonEditorProps (string category="", string description="", string color="255 0 0 255", bool visible=true, bool insertable=true, bool configRoot=false, string icon="",)
 

Detailed Description

An Attribute for BaseContainer.

class MyObject
{
bool Prop1;
int Prop2;
string Prop3;
}
class MyObjectSpecial: MyObject
{
float Prop4;
ref MyObject Prop5;
}
// ...
class TestCube : GenericEntity
{
[Attribute("", UIWidgets.Object)]
ref MyObject m_singleObject;
[Attribute("", UIWidgets.Object)]
ref array<ref MyObject> m_arrayOfObjects;
};
Definition Attribute.c:13
proto void BaseContainerProps(string category="", string description="", string color="255 0 0 255", bool visible=true, bool insertable=true, bool configRoot=false, string icon="", NamingConvention namingConvention=NamingConvention.NC_MUST_HAVE_GUID)
Definition attributes.c:40
static const string EditBox
Editbox.
Definition attributes.c:157
static const string Object
Single object or an array of objects (depends on variable definition).
Definition attributes.c:209
static const string CheckBox
Checkbox. m_strParams has no usage. Type must be enf::DVT_BOOLEAN.
Definition attributes.c:160

Constructor & Destructor Documentation

◆ BaseContainerProps()

proto void BaseContainerProps.BaseContainerProps ( string category = "",
string description = "",
string color = "255 0 0 255",
bool visible = true,
bool insertable = true,
bool configRoot = false,
string icon = "",
NamingConvention namingConvention = NamingConvention.NC_MUST_HAVE_GUID )
Parameters
categoryTypically a "folder/item" path for placing the type into a tree view, e.g., "StaticEntities/Walls".
descriptionA description of the type's usage.
colorColor of an entity visualizer shape outline
visibleIndicates whether the entity visualizer is visible when not selected.
insertableIndicates whether the type is available for insertion from the tree view.
configRootIndicates whether the type can be used as the root object of a config file (.conf).
iconA path to an icon file for better visualization in a tree view.

The documentation for this interface was generated from the following file: