This site requires JavaScript, please enable it in your browser!
Greenfoot back
ronald
ronald wrote ...

2021/2/15

Create Rounded Button

ronald ronald

2021/2/15

#
Hello I would like to create a rounded button on the sides I'm trying to understand the Menu Class scenario, I'm wondering if there isn't a simpler code Thank you for your help
danpost danpost

2021/2/15

#
ronald wrote...
I would like to create a rounded button on the sides I'm trying to understand the Menu Class scenario, I'm wondering if there isn't a simpler code
The Menu class takes a circle and "stretches" it. It looks okay until java-script deals with it. It was likely one of the easier codes to accomplish it. Without the "stretching", it would take a lot more image manipulation code to create a rounded button.
ronald ronald

2021/2/15

#
ok I also thought about stretching and even two circles at the end of a rectangle on each side but hey I have a little trouble coding for the stretching of the circle, I find the code long, you do not have a small example of stretching code, otherwise I will have to type in all the class menu code thank you
danpost danpost

2021/2/15

#
ronald wrote...
ok I also thought about stretching and even two circles at the end of a rectangle on each side but hey I have a little trouble coding for the stretching of the circle, I find the code long, you do not have a small example of stretching code, otherwise I will have to type in all the class menu code thank you
Well, the Button class has a lot of code because it accounts for an abundance of properties that can vary. By fixing ALL values but the text, the code would be minimalized.
ronald ronald

2021/2/15

#
OK I understand thank you
You need to login to post a reply.