User Tools

Site Tools


dragengine:modules:dragonscript:behavior_skinswitcher

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dragengine:modules:dragonscript:behavior_skinswitcher [2020/09/13 15:29] – created dragonlorddragengine:modules:dragonscript:behavior_skinswitcher [2024/03/14 16:51] (current) dragonlord
Line 17: Line 17:
 To use thie behavior assign one or more skins to it. The first skin is used as the starting skin. By calling setActive() the active skin can be selected using the index of the skin in the list of defined skins. Furthermore activateNext() and activatePrevious() can be used to cycle through skins. To use thie behavior assign one or more skins to it. The first skin is used as the starting skin. By calling setActive() the active skin can be selected using the index of the skin in the list of defined skins. Furthermore activateNext() and activatePrevious() can be used to cycle through skins.
  
-Optionally this behavior can be attached to various other behaviors supporting [[https://developer.dragondreams.ch/docs/dragonscript/scriptapi/latest/interfaceDragengine_1_1Scenery_1_1BooleanBehaviorListener.html|BooleanBehaviorListener]]. By doing so cycling though skins is attached to listener events called by other behaviors.+Optionally this behavior can be attached to various other behaviors supporting #@LinkApiDocDEDS2_HTML~interfaceDragengine_1_1Scenery_1_1BooleanBehaviorListener.html,BooleanBehaviorListener~@#. By doing so cycling though skins is attached to listener events called by other behaviors.
  
 Skin switcher is set by default to wrap index around at the begin and end of the skin list. This allows to indefinitely cycle through all skins. By setting the "clamp" element class property to true the skins can cycle only once not wrapping around. Skin switcher is set by default to wrap index around at the begin and end of the skin list. This allows to indefinitely cycle through all skins. By setting the "clamp" element class property to true the skins can cycle only once not wrapping around.
Line 102: Line 102:
 ====== API Documentation ====== ====== API Documentation ======
  
-[[https://developer.dragondreams.ch/docs/dragonscript/scriptapi/latest/classDragengine_1_1Scenery_1_1ECBehaviorSkinSwitcher.html|ECBehaviorSkinSwitcher]].+#@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1ECBehaviorSkinSwitcher.html,ECBehaviorSkinSwitcher~@#.
  
 Since DragonScript Module Version **1.3** Since DragonScript Module Version **1.3**
dragengine/modules/dragonscript/behavior_skinswitcher.txt · Last modified: 2024/03/14 16:51 by dragonlord