Skip to content

Added menu, changed button#28

Open
JJendryka wants to merge 3 commits intoroom23studios:masterfrom
JJendryka:master
Open

Added menu, changed button#28
JJendryka wants to merge 3 commits intoroom23studios:masterfrom
JJendryka:master

Conversation

@JJendryka
Copy link
Copy Markdown
Member

No description provided.

Comment thread src/button.cpp
text.setString(textString);
text.setCharacterSize(characterSize);

Button::Button(sf::RenderWindow &win) : window(win){
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

){

pain

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meme

Comment thread src/button.cpp

}
void Button::setPosition (float x, float y, float width, float height){
void Button::setPosition (float x, float y){
Copy link
Copy Markdown
Member

@Bravo555 Bravo555 Oct 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agony

Comment thread src/button.cpp
void Button::setFont(sf::Font &font){
text.setFont(font);
}
void Button::setColors(sf::Color backgroundColor, sf::Color textColor){
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dont know what is background color and what is text color. I think we should make two separate functions: setBackgoundColor() and setTextColor

Comment thread src/button.hpp
void draw();
void setPosition(float x, float y, float width, float height);
void setPosition(sf::Vector2f vector);
void setPosition(float x, float y);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why isn't it indented?

Comment thread src/button.hpp
sf::Event event;
sf::Color backgroundColor;
sf::Color textColor;
int width, height;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we ever use these variables in actual code? If I checked it correctly, we neither use nor update them. Also, why are these ints, while rectangle size is a float?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants