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

Fix custom world rendering feature #56

Merged
merged 19 commits into from
Dec 30, 2023
Merged

Conversation

4z0t
Copy link

@4z0t 4z0t commented Dec 25, 2023

  • get worldview pointer from arguments
  • use OnRenderWorld of the worldview
  • custom world rendering works when SetCustomRendering is set to true

Example:

viewLeft.OnRenderWorld = function(self, delta)
        UI_DrawCircle(GetMouseWorldPos(), 10, 'ffffffff', 0.3)
end
viewLeft:SetCustomRender(true)

@KionX KionX merged commit 02dd11b into FAForever:master Dec 30, 2023
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.

None yet

2 participants