-
Notifications
You must be signed in to change notification settings - Fork 18
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
C;CLCC config menu UI #81
C;CLCC config menu UI #81
Conversation
b8099dd
to
178457c
Compare
1429654
to
0e5370f
Compare
ada7dda
to
5be3b53
Compare
2ee9b92
to
0dc85ea
Compare
16df35a
to
5c19f3c
Compare
src/games/cclcc/optionsmenu.cpp
Outdated
constexpr int columns = 3; | ||
constexpr int entries = 12; | ||
for (int i = 0; i < entries; i++) { | ||
glm::vec2 pos = VoicePosition; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're shadowing pos here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah that can just reuse the old pos. Thanks for the heads-up
src/games/cclcc/optionsmenu.cpp
Outdated
} | ||
|
||
void OptionsMenu::Render() { | ||
if (State != Hidden && ScrWork[SW_SYSSUBMENUCT] >= 32 && | ||
ScrWork[SW_SYSSUBMENUNO] == 5) { | ||
// glm::vec4 col(1.0f, 1.0f, 1.0f, FadeAnimation.Progress); | ||
Renderer->DrawSprite(BackgroundSprite, glm::vec2(0.0f)); | ||
glm::vec4 col(1.0f, 1.0f, 1.0f, FadeAnimation.Progress); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since everything is already being made const, it might not be a bad idea to make col const and maskTint const with const glm::vec4 maskTint = col * glm::vec4{glm::vec3{1}, (float)0xa0 / 0x100}};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good one
9a1c9eb
to
b471ab0
Compare
Will implement the UI for the C;CLCC config menu
(Will do the actual implementation in a separate PR once this is done)