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 - NoRain

Pages: [1]
1
Graphics / Re: The RectangleShape outline is always red
« on: December 23, 2018, 11:37:22 am »
Ok, I've found the problem. It is always red because I set the outline color to red in another function. Sorry, it was silly. I thought it was a bug, but it all because of my inattention.

2
Graphics / Re: The RectangleShape outline is always red
« on: December 21, 2018, 04:29:32 pm »
I've tried to reproduce this in a small example, but there it works fine. The outline color is cyan.
So, here is a piece of my project's code: https://pastebin.com/hfG6zxFi.

I draw cells with this code
m_cells[i][j]->draw(target, states);
 
and then just call select/unselect everytime a player clicks on a cell.

Sorry that there's not a small example.

3
Graphics / [SOLVED] The RectangleShape outline is always red
« on: December 21, 2018, 12:16:53 pm »
I have a grid of RectangleShapes in my project:

And when I try to add an outline to a cell
m_rect.setOutlineColor(sf::Color::Cyan);
m_rect.setOutlineThickness(1.f);
 
* m_rect's type is RectangleShape

I looks like this:


uname -a
(click to show/hide)
sfml version: 2.5.1-1

What am I doing wrong?

Pages: [1]
anything