User Tools

Site Tools


dragengine:modules:dragonscript:behavior_vrhud

Differences

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

Link to this comparison view

dragengine:modules:dragonscript:behavior_vrhud [2026/08/25 01:35] – created dragonlorddragengine:modules:dragonscript:behavior_vrhud [2026/08/25 01:39] (current) dragonlord
Line 17: Line 17:
 To use this behavior add it to the element class (typically BaseVRActorClass) and set the designer selector and GuiTheme to use for the Panel. Now you can add other behaviors targeting the ECBehaviorVRHud to add Widget resources to. You can also add and remove panels manually at runtime. To use this behavior add it to the element class (typically BaseVRActorClass) and set the designer selector and GuiTheme to use for the Panel. Now you can add other behaviors targeting the ECBehaviorVRHud to add Widget resources to. You can also add and remove panels manually at runtime.
  
-The Panel is created with a default size of 1024x1024 . You can change the size using the element property to fit the HUD size to your needs. The size should be should be square to avoid stretching.+The Panel is created with a default size of 1024x1024 . You can change the size using the element property to fit the HUD size to your needs. The size of the Hud is always square to avoid stretching.
  
 ====== Element Class Properties ====== ====== Element Class Properties ======
Line 26: Line 26:
 The dimensions of the HUD panel in pixels. The dimensions of the HUD panel in pixels.
   * Full name: ''vrHud.size''   * Full name: ''vrHud.size''
-  * Type: Point +  * Type: integer 
-  * Default Value: ''1024, 1024'' +  * Default Value: ''1024'' 
-  * Example (*.deeclass): <code xml><point name='vrHud.size' x='1024' y='1024'/></code>+  * Example (*.deeclass): <code xml><integer name='vrHud.size'>1024</integer></code>
  
 ===== guiTheme ===== ===== guiTheme =====
Line 82: Line 82:
 <elementClass name='MyClass' class='GenericBehaviorElement'> <elementClass name='MyClass' class='GenericBehaviorElement'>
  <behavior type='ECBehaviorVRHud'>  <behavior type='ECBehaviorVRHud'>
- <point name='.size' x='1024' y='1024'/>+ <integer name='.size'>1024</integer>
  <string name='.guiTheme'>/shareddata/guithemes/modern/modern.degt</string>  <string name='.guiTheme'>/shareddata/guithemes/modern/modern.degt</string>
  <string name='.designerSelector'>VRHudPanel</string>  <string name='.designerSelector'>VRHudPanel</string>
dragengine/modules/dragonscript/behavior_vrhud.1787621740.txt.gz · Last modified: by dragonlord