Click or drag to resize

GUIButtonModel Class

The GUIButton class defines a button element in the GUI.
Inheritance Hierarchy
SystemObject
  Livit.Learn.ModelBaseModel
    Livit.Learn.ModelTriggableModel
      Livit.Learn.ModelScopeableModel
        Livit.Learn.ModelViewableModel
          Livit.Learn.ModelStateableModel
            Livit.Learn.Model.GUIGUIBaseModel
              Livit.Learn.Model.GUIGUIViewBaseModel
                Livit.Learn.Model.GUIGUIWidgetModel
                  Livit.Learn.Model.GUIGUIImageModel
                    Livit.Learn.Model.GUIGUILabelModel
                      Livit.Learn.Model.GUIGUIButtonBaseModel
                        Livit.Learn.Model.GUIGUIButtonModel
                          Livit.Learn.Model.GUIGUICheckboxModel
                          Livit.Learn.Model.GUIGUIViewportModel

Namespace:  Livit.Learn.Model.GUI
Assembly:  Livit.Learn.Model (in Livit.Learn.Model.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class GUIButtonModel : GUIButtonBaseModel

The GUIButtonModel type exposes the following members.

Constructors
  NameDescription
Public methodGUIButtonModel
Initializes a new instance of the GUIButtonModel class
Top
Properties
  NameDescription
Public propertyAccessibilityText
Additional text that will be read out together with the text of the button (if such) Only in Accessibility Mode
(Inherited from GUIButtonBaseModel.)
Public propertyAlign
Aligns the Widget in the parent GUI.
(Inherited from GUIWidgetModel.)
Public propertyAtlasPath
Defines the texture atlas to be applied to the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertyAttached
Defines an attached property.
(Inherited from BaseModel.)
Public propertyAutoResizeOffset (Inherited from GUILabelModel.)
Public propertyAutoResizeOffsetSerialized
Offsets the Label content from the edges when automatically resized.
(Inherited from GUILabelModel.)
Public propertyAutoResizeWithLabel
Resizes the Label automatically.
(Inherited from GUILabelModel.)
Public propertyBackgroundImageSource
Defines the background image of the Image.
(Inherited from GUIImageModel.)
Public propertyClickMode
Defines the behavior of the Button when clicked.
(Inherited from GUIButtonBaseModel.)
Public propertyClickTriggerNumberKey (Inherited from GUIButtonBaseModel.)
Public propertyColor (Inherited from GUIWidgetModel.)
Public propertyCommand
(Deprecated) Defines an action to be executed when the Button is clicked.
Public propertyCommandParameter
Defines a parameter to for the Command.
Public propertyComments
(Development) Includes comments in the XML code.
(Inherited from BaseModel.)
Public propertyCode exampleDataContext
Contains a source of all bindings defined for element.
(Inherited from BaseModel.)
Public propertyDepth
Defines the depth of the Widget.
(Inherited from GUIWidgetModel.)
Public propertyDescription
Displays a description of the object to the user.
(Inherited from TriggableModel.)
Public propertyDisabled
Defines the color of the Button when clicked by the user.
(Inherited from GUIButtonBaseModel.)
Public propertyEffect
Applies an effect to the Label.
(Inherited from GUILabelModel.)
Public propertyEffectColor (Inherited from GUILabelModel.)
Public propertyEffectColorSerialized
Applies a color to the Effect on the Label.
(Inherited from GUILabelModel.)
Public propertyEmphasisDuration
Duration of an element's emphasizing in the scene.
(Inherited from ViewableModel.)
Public propertyExternalXmlPath (Inherited from BaseModel.)
Public propertyFields (Inherited from ScopeableModel.)
Public propertyFieldsSerialized (Inherited from ScopeableModel.)
Public propertyFontPath
Defines the font to be used on the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertyGUITooltipId
Specifies the GUI tooltip template used for this element.
(Inherited from GUIImageModel.)
Public propertyGUIViewport
Applies a Viewport to magnify the Image.
(Inherited from GUIImageModel.)
Public propertyHashedPath
Used by PlayHistory to store and retrieve relative coordinates of the object inside the XML tree
(Inherited from GUIButtonBaseModel.)
Public propertyHover
Defines the color of the Button when the user hovers over it.
(Inherited from GUIButtonBaseModel.)
Public propertyId
Defines a unique identifier for an element in the simulation.
(Inherited from BaseModel.)
Public propertyImageOffset (Inherited from GUIImageModel.)
Public propertyImageOffsetSerialized
Offsets the image's position from its parent element.
(Inherited from GUIImageModel.)
Public propertyImageSource
Defines the Image used by the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertyInitialSize
Defines the size in pixels of the Widget.
(Inherited from GUIWidgetModel.)
Public propertyInitialText
Defines the content of the Label.
(Inherited from GUILabelModel.)
Public propertyIsClickable
Allows the Button to be clicked on by the user.
(Inherited from GUIButtonBaseModel.)
Public propertyIsIdAutogenerated (Inherited from BaseModel.)
Public propertyIsScope (Inherited from ScopeableModel.)
Public propertyIsVisible (Inherited from ViewableModel.)
Public propertyKeepAspectRatio
Maintains the Label's aspect ratio when resized.
(Inherited from GUILabelModel.)
Public propertyLabelPaddingX
Defines the Padding of the text label inside the button towards its sides
(Inherited from GUIButtonBaseModel.)
Public propertyMaxLineCount
Defines the maximum number of lines that can be displayed on the Label.
(Inherited from GUILabelModel.)
Public propertyMessageHandlers (Inherited from ScopeableModel.)
Public propertyMessageHandlersSerialized (Inherited from ScopeableModel.)
Public propertyName
(Obsolete) Refers to the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertyNavigateTo
Defines a GUIScreen to navigate to when the Button is clicked.
Public propertyNormal
Defines the default color of the Button.
(Inherited from GUIButtonBaseModel.)
Public propertyOutlineAtlas
If not empty, the atlas used is the one stated here, otherwise using the same atlas as the button itself.
(Inherited from GUIButtonBaseModel.)
Public propertyOutlineDisabled
Defines the disabled color of the outline
(Inherited from GUIButtonBaseModel.)
Public propertyOutlineHover
Defines the hover color of the outline
(Inherited from GUIButtonBaseModel.)
Public propertyOutlineImage
If not empty, the button will have an Outline using the image stated here as base.
(Inherited from GUIButtonBaseModel.)
Public propertyOutlineNormal
Defines the normal color of the outline
(Inherited from GUIButtonBaseModel.)
Public propertyOutlinePressed
Defines the pressed color of the outline
(Inherited from GUIButtonBaseModel.)
Public propertyOutlineThickness
Defines the thickness of the outline
(Inherited from GUIButtonBaseModel.)
Public propertyOutlineVisibilityOption
Boolean flag to enable/disable outline
(Inherited from GUIButtonBaseModel.)
Public propertyOverflow
Determines the Label's behavior if the Text is larger than the defined size.
(Inherited from GUILabelModel.)
Public propertyPivot
Aligns the GUI object to its parent.
(Inherited from GUIViewBaseModel.)
Public propertyPosition
Defines the position of the GUI object relative to its parent.
(Inherited from GUIViewBaseModel.)
Public propertyPressed
Defines the color of the Button when clicked by the user.
(Inherited from GUIButtonBaseModel.)
Public propertyRapidClickDelay
Defines a minimum interval before another click will be allowed on the Button.
(Inherited from GUIButtonBaseModel.)
Public propertyResizeMode
Defines how the Image will be resized.
(Inherited from GUIImageModel.)
Public propertyRotation
Defines the Z-rotation of the GUI object relative to its parent (defaults to 0).
(Inherited from GUIViewBaseModel.)
Public propertyShader
Applies a shader effect to the Image.
(Inherited from GUIImageModel.)
Public propertySound
Plays a sound when the Button is clicked.
(Inherited from GUIButtonBaseModel.)
Public propertySource
Defines the content source of the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertySpacing (Inherited from GUILabelModel.)
Public propertySpacingSerialized
Defines the distance between characters in the Label.
(Inherited from GUILabelModel.)
Public propertyCode exampleStateGroups
Defines the possible StateGroup for this element.
(Inherited from StateableModel.)
Public propertyStateGroupsSerialized (Inherited from StateableModel.)
Public propertyStyleId
Defines the style identifier of the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertyTags (Inherited from ViewableModel.)
Public propertyTemplateVersionId
Contains a id of source template.
(Inherited from BaseModel.)
Public propertyTextColor
Defines the color of the text inside the Button.
(Inherited from GUIButtonBaseModel.)
Public propertyTextOffset (Inherited from GUILabelModel.)
Public propertyTextOffsetSerialized
Offsets the text from the Label edge.
(Inherited from GUILabelModel.)
Public propertyTextSize
Defines the size of the Text.
(Inherited from GUILabelModel.)
Public propertyTextWidth
Defines the width of the text in the Button.
(Inherited from GUIButtonBaseModel.)
Public propertyTileMode
Defines how the Image will be loaded in the GUI.
(Inherited from GUIImageModel.)
Public propertyTileSize (Inherited from GUIImageModel.)
Public propertyTileSizeSerialized
Defines the size of the tiling used to display this Image.
(Inherited from GUIImageModel.)
Public propertyTitle
Defines a title for the object.
(Inherited from TriggableModel.)
Public propertyTooltip
Sets the tooltip displayed when the element is hovered over.
(Inherited from GUIImageModel.)
Public propertyTriggers (Inherited from TriggableModel.)
Public propertyTriggersSerialized
Lists the available Triggers for this object.
(Inherited from TriggableModel.)
Public propertyUse2DTooltipObsolete.
Specifies whether usual 3D tooltip should be changed to legacy 2D one.
(Inherited from GUIImageModel.)
Public propertyViewportId
Offsets the Image relative to the target Viewport.
(Inherited from GUIImageModel.)
Public propertyWasShown
(Internal use only) Returns true if the object has been shown in the simulation.
(Inherited from ViewableModel.)
Public propertyXmlComments
(Development) Used as temporary storage for XML comments (like ) to keep them.
(Inherited from BaseModel.)
Top
Methods
  NameDescription
Public methodDeepCopy
Creates an in-memory clone of this object using a BinaryFormatter to ensure all child properties are copied as well.
(Inherited from BaseModel.)
Public methodShallowCopy (Inherited from BaseModel.)
Public methodShouldSerializeStateGroups (Inherited from StateableModel.)
Public methodShouldSerializeTriggers (Inherited from TriggableModel.)
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseModel.)
Public methodUpdateModels
This method will update this model and all its child models.
(Inherited from BaseModel.)
Top
See Also