Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

addBoolValueInput Button Up-Down state icon

scottmoyse
Mentor

addBoolValueInput Button Up-Down state icon

scottmoyse
Mentor
Mentor

I can't tell from the documentation... but is there a suffix I can use in the naming of my icons in the resources folder so I can have a different icons for the Up and Down state of the button? The only examples I can find are:

  • -disabled
  • -pressed
  • -dark

 

# Create bool value input with button style that has a state.
tab1ChildInputs.addBoolValueInput('buttonState', 'State Button', True, 'resources/button', True)

 

2020-05-24_18h04_49.gif

 Ideally I would like it to change from a green tick to a red cross.

 


Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature


RevOps Strategy Manager at Toolpath. New Zealand based.

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

0 Likes
Reply
476 Views
3 Replies
Replies (3)

scottmoyse
Mentor
Mentor

I'm wondering if I could get sneaky and change the resource folder argument with the InputChangedEventHandler... 


Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature


RevOps Strategy Manager at Toolpath. New Zealand based.

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

0 Likes

scottmoyse
Mentor
Mentor

I could also potentially use Single Select Buttons. One as a green tick and the other as a red cross, with only one or the other active. But... its not as clean.


Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature


RevOps Strategy Manager at Toolpath. New Zealand based.

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

0 Likes

BrianEkins
Mentor
Mentor

The resourceFolder property is writable so I would hope pointing it to a different resource folder will work.  If it doesn't, then it's a bug.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
1 Like