Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - master_clown

Pages: [1]
1
Graphics / Designing Button
« on: January 01, 2017, 04:24:54 am »
I wrote a Button class, which contains its outer form — rectangle (RectangleShape)—  and text (sf::Text) inside it. I've faced with problem with managing text position and size inside the rect. I want the text to be centered inside the rect, and as long as there is possibility for moving and resizing a button, it turns complicated to find out how to move and resize text along with the button.

What can you offer? I suppose there are lots of games which use GUI, so there are checked solutions.

Pages: [1]
anything