Skip to content

Conversation

@Flamefire
Copy link
Member

Closes #1861

{ACC24F65-449F-45B1-9E40-55871498D153}

@Spikeone Like this?

btSize.x = (availWidth - spacing * (jumpPresets.size() - 1)) / jumpPresets.size();
for(auto i : helpers::range(jumpPresets.size()))
{
AddTextButton(ID_btJumpPresetStart + i, curPos, btSize, TextureColor::Green1,
Copy link
Member

Choose a reason for hiding this comment

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

why not simply + jumpPresets[i]? (e.g iterate over the values)

it doesnt matter how big those ids are or if there are gaps.

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense, yes.

@Spikeone
Copy link
Member

@Flamefire I'm loving it - except the button texture which is wrong for the 4 lower buttons ;)

@Flamefire
Copy link
Member Author

I used a different texture for the buttons at the bottom to make them stick out a bit. Can revert it or use another one. Which would you like?

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.

Enhance Jump-Screen

3 participants