Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > CopperCube > Programming and Scripting
dropdown select with custom behaviors/actions
Author Text

hadoken
Guest
Quote
2022-08-06 19:31:04

Just for the record, this is how you can have the dropdown select feature with your external custom behavior/action script properties just like CopperCube's in-built ones sometimes offer:
<behavior jsname="behavior_DropdownSelectTest" description="scenenode dropdown select demo">
<property name="Test" type="scenenode" default="<dropdown>" />
</behavior>
Maybe you find this useful - as I do. Have fun :-)



hadoken
Guest
Quote
2022-08-06 19:34:50

🔎︎



Arcanjo
Guest
Quote
2022-08-07 01:43:43

Hadoken...

🔎︎



just_in_case
Moderator
Quote
2022-08-07 11:01:16

I think most of the people who write custom behaviors are known to this, Almost every single shader that I use has this parameter type.
You don't have to use "<dropdown>" as a default value, if you just use scenenode, it will be fine, you will still get the dropdown, there is also, Texture and Color property type, they both are bugged, but if you use my color conversion functions, then it will fix the color parmater.

The bug for the Texture parameter type will get fixed in the next update as I have already fixed it and send the modified files to @niko.

Hopefully soon, we will have new update.

There is also an "enum" parameter type, but it is not yet implemented to be used in the scripting. I will see if I will be able to implement it.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internati?nal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© 2020 Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact