Announcement

Collapse
No announcement yet.

Button stays "pressed" after being clicked

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Button stays "pressed" after being clicked

    Hi,

    Is there a way to make a button "pressed" after clicking it and if I click another button the previously selected button back to it's default color?
    Click image for larger version  Name:	21a0f17fdc5c0ad29fecf9e2b9d543ce.png Views:	8 Size:	78.5 KB ID:	1797482Click image for larger version  Name:	15435868312fdc1b8c99db1d25076120.png Views:	7 Size:	107.4 KB ID:	1797481
    Can anybody help me with this?
    Last edited by pkkky; 08-06-2020, 05:31 PM.

    #2
    Hi pkkky

    Sure you can, Here an example of just 2 buttons,
    For bigger numbers you should add some arrays.

    Here i added the style node, in witch you can set some stuff of the button, like the image shown,
    (I didnt addedd the image, just pin out any pin in the make button style and add a make slatebrush to fill in the informations)
    Or you can add a border to the button, and have that change color.



    Click image for larger version

Name:	SET1ButtonClicked_allotherNotClicked.jpg
Views:	38
Size:	260.4 KB
ID:	1797657

    Comment


      #3
      Thanks for the reply Est_engine!

      I did something like this and I wonder if it is possible to simplify this blueprint?

      Click image for larger version  Name:	fb30420b561589fcd04f1d90e15405c6.png Views:	0 Size:	275.0 KB ID:	1797951

      Comment


        #4
        Sure man pkkky

        As you can see you have 4 buttons if they are of the same type, you can list them in an array.
        Once you have an array you can use a loop to "Set the background " to everybody with one node,
        and using a integer, say to ma White Background to only the n X.

        So just call "Highlight" N4 , and will be all black but the N 4



        Click image for larger version

Name:	ArrayButtons_LoopAndSetColor.jpg
Views:	29
Size:	163.7 KB
ID:	1798080‚Äč
        """""For Automatic Array , how get the reference to HBOX_A """"

        Click image for larger version

Name:	Widget_isVariable_To_ReferenceAndGetAllChilds.jpg
Views:	18
Size:	65.1 KB
ID:	1798083
        Attached Files

        Comment


          #5
          Est_engine Thank you!

          Comment

          Working...
          X