Jump to content

CodeLab v6.0 (for advanced users) Released June 25, 2020


Recommended Posts

  • 2 weeks later...

I have a question with regards to Codelab.

 

Right now this works

DoubleSliderControl Something = 1; // [0,1] {Variable} Red Weight

 

However, this does not.

DoubleSliderControl Something = 1; // [0,1] {Variable!=5} Red Weight

 

What would be the solution?

Link to post
Share on other sites
5 hours ago, Reptillian said:

However, this does not.


What you have typed is not part of the proper syntax for user controls. 
 

I would recommend using the UI Designer to make what you want. Let it generate the code for you. 

Click to play:
j.pngs.pngd.pnga.pngp.png
Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game

Link to post
Share on other sites
2 hours ago, BoltBait said:


What you have typed is not part of the proper syntax for user controls. 
 

I would recommend using the UI Designer to make what you want. Let it generate the code for you. 

 

I see only binary options there. Checked or is not checked. No way to use conditions like Variable==4.

Link to post
Share on other sites
17 minutes ago, Reptillian said:

I see only binary options there. Checked or is not checked. No way to use conditions like Variable==4.

 

There's no way to do that from CodeLab. You'll have to export the plugin to Visual Studio.

 

Here's some example code for the property rule:

new ReadOnlyBoundToValueRule<int, Int32Property>(PropertyNames.Target, PropertyNames.Source, 5, false)
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...