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

Make AudioSystem ZOffset public #5388

Closed

Conversation

Winkarst-cpu
Copy link
Contributor

Resolves #5352.

Comment on lines 49 to 51

public virtual float ZOffset { get; protected set; }
public virtual float ZOffset { get; set; }

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason this is needed? SetZOffset is already public and content setting this isn't handled properly at all ie.

  1. cvar changes can bulldoze it.
  2. Overwriting it would mean the max-length adjustments could get bulldozed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because AudioSystem overrides ZOffset that comes from its parent, SharedAudioSystem and when overriding, you can't change the modifiers since you will get CS0507, and this is will not compile.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh... I understood what you meant now. IAudioListener already has a SetZOffset method that is public... I'm sorry for being dumb and will try it...

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.

Eye zoom should affect audio Z offset, make public audio ZOffset
2 participants