Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcoding Mouse/Pen Paw Color? #24

Closed
raymondwzeng opened this issue Dec 23, 2019 · 2 comments
Closed

Hardcoding Mouse/Pen Paw Color? #24

raymondwzeng opened this issue Dec 23, 2019 · 2 comments

Comments

@raymondwzeng
Copy link

Hello, so I've been fiddling around with the source code for a while trying to figure out how to hardcode in a new paw color. So far, I've been able to modify the color of the edge, but not the fill color itself (so I end up with a different color outline but a white inside). What line(s) should I modify to do so?

I'm assuming that it has to do with the osu.cpp file as that is the only gamemode that actually draws a mouse/pen arm, but I've changed every line referencing "color" without luck. I'm new to C++ and SFML so I'm not familiar with the code.

Thanks for the help!

@raymondwzeng
Copy link
Author

Solved. For future reference for everyone else, here are the edits in osu.cpp:

// drawing arms
    sf::VertexArray fill(sf::TriangleStrip, 26);
    for (int i = 0; i < 26; i += 2)
    {
        fill[i].position = sf::Vector2f(pss2[i], pss2[i + 1]);
        fill[i + 1].position = sf::Vector2f(pss2[52 - i - 2], pss2[52 - i - 1]);
		//Color Edits?
		fill[i].color = sf::Color(204,153,204,255); //Replace the first 3 values with the RGB of your color, last number is alpha
		fill[i+1].color = sf::Color(204,153,204,255); //Repeat as above
    }
    window.draw(fill);

@kuroni
Copy link
Owner

kuroni commented Dec 24, 2019

Thank you for the suggestion. Initially, there was such an option, but I deemed it obsolete and remove it. I will add it to the source again.

kuroni added a commit that referenced this issue Jan 1, 2020
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

No branches or pull requests

2 participants