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

Adding a priority list system for mouse cursor icons. #4587

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

MistakeNot4892
Copy link
Contributor

Description of changes

Adds infrastructure for handling mouse pointer overrides.

Why and what will this PR improve

I need to start adding more cursors for bows and melee weapons so need some infrastructure.

Authorship

Myself.

Changelog

Nothing player-facing.

@MistakeNot4892 MistakeNot4892 added ready for review This PR is ready for review and merge. work in progress This PR is under development and shouldn't be merged. and removed ready for review This PR is ready for review and merge. labels Nov 30, 2024
@MistakeNot4892
Copy link
Contributor Author

Fixes/improvements to sideport from my melee branch, DNM.

@MistakeNot4892 MistakeNot4892 force-pushed the feature/pointer_priority branch 3 times, most recently from fd8965f to 679bb77 Compare December 2, 2024 01:38
@MistakeNot4892 MistakeNot4892 added ready for review This PR is ready for review and merge. and removed work in progress This PR is under development and shouldn't be merged. labels Dec 2, 2024
out-of-phaze
out-of-phaze previously approved these changes Dec 2, 2024
Copy link
Member

@out-of-phaze out-of-phaze left a comment

Choose a reason for hiding this comment

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

honestly i kind of assumed this would be using /datum/priority_queue, but this is fine too, especially since that type is super old

code/modules/client/mouse_pointer/_mouse_pointer.dm Outdated Show resolved Hide resolved
code/modules/client/mouse_pointer/_mouse_pointer.dm Outdated Show resolved Hide resolved
@@ -70,9 +70,6 @@
*/
var/obj/screen/zone_selector/zone_sel = null

/// Cursor icon used when holding shift over things.
var/examine_cursor_icon = 'icons/effects/mouse_pointers/examine_pointer.dmi'
Copy link
Member

Choose a reason for hiding this comment

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

for parity with the prior system we could specify an examine cursor decl on mob instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't understand what you mean by parity with the prior system. This var was never changed or used outside of being passed to the pointer.

Copy link
Member

Choose a reason for hiding this comment

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

mostly that it's a mob var that can be overridden

@LowFP
Copy link

LowFP commented Dec 2, 2024

Is there a cursor size? I can try making some.

@MistakeNot4892
Copy link
Contributor Author

The existing icon is 32x32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review This PR is ready for review and merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants