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

Refactor cursor #116

Closed
wants to merge 53 commits into from
Closed

Refactor cursor #116

wants to merge 53 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 21, 2021

Basically "refactors" fl and cursor related things, and some other changes aswell.

Basically "refactors" fl? i really don't know how to call this but it's something along this lines, i already tested it and couldn't find any bugs,.
@ghost ghost marked this pull request as draft April 21, 2021 08:54
@ghost ghost marked this pull request as ready for review April 21, 2021 20:55
@Rian8337 Rian8337 changed the title This should be more "reliable" i think... Refactor cursor to encapsulate FL and normal cursor into one Apr 22, 2021
@Rian8337 Rian8337 changed the title Refactor cursor to encapsulate FL and normal cursor into one Refactor cursor Apr 22, 2021
@ghost ghost requested a review from Rian8337 May 1, 2021 20:29
@ghost
Copy link
Author

ghost commented May 1, 2021

actually i have found something odd

el-dasher added 4 commits May 1, 2021 17:43
I reduced the fl shadows not just to "match" lazer FL which does not has that bigger shadows but also because since i added delay to FL, that little "cursor" thing just feels weird with the delay.
@ghost
Copy link
Author

ghost commented May 3, 2021

Wait i mean, adds custom fl delay, range = 120-1200

el-dasher added 2 commits May 3, 2021 10:06
the one that i had ut before has a little white "artifact", in this one i fixed this.  also deleteted flashlight_dim_layer.png, it isn't used anymore
because exponentialout was causing teleporting like effects
res/values/strings.xml Outdated Show resolved Hide resolved
Copy link
Member

@Rian8337 Rian8337 left a comment

Choose a reason for hiding this comment

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

Just a few minor nits.

I believe there is a better way for emulating auto cursor's movement without storing all objects inside a separate LinkedList, but I'm not super sure about it (I'll take a look later). Additionally, I haven't tested these changes in-game so I may need more changes later.

src/com/edlplan/ui/fragment/InGameSettingMenu.java Outdated Show resolved Hide resolved
src/ru/nsu/ccfit/zuev/osu/game/GameHelper.java Outdated Show resolved Hide resolved
src/ru/nsu/ccfit/zuev/osu/scoring/ScoringScene.java Outdated Show resolved Hide resolved
@Rian8337
Copy link
Member

Rian8337 commented May 11, 2021

From a quick look, I think the color of mod customization text is too bright? Maybe a darker green can work since it's hard to read at the current state.

@Rian8337
Copy link
Member

I've replaced your auto cursor emulation with a new one that doesn't need to store all objects inside a separate list. It also fixes an issue where the cursor position would be wrong on stacked objects (because you didn't include position offset in original emulation). Test it for bugs if you'd like.

Still need to figure out why the cursor teleports to the left-corner of the screen for a brief moment before it starts spinning a spinner.

el-dasher added 4 commits May 11, 2021 14:04
i removed checks for AutoCursor, because a instance of AutoCursor shouldn't even be created if the gamehelper isn't auto. also removed some no longer necessary booleans.
@ghost ghost requested a review from Rian8337 May 15, 2021 02:49
@Rian8337 Rian8337 mentioned this pull request May 22, 2021
@Rian8337
Copy link
Member

Rian8337 commented May 22, 2021

I haven't gotten time to look at this, but I think the auto cursor emulation can also be applied for AP mod and not just Auto (it's called an "auto-based cursor" for a reason, anyway).

@o-dasher o-dasher mentioned this pull request Aug 11, 2021
@Rian8337
Copy link
Member

Superseded by #143.

@Rian8337 Rian8337 closed this Aug 24, 2021
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.

1 participant