Skip to content

feat(misc): add menu position x/y sliders - #666

Closed
normal88 wants to merge 1 commit into
TomGrobbe:legacyfrom
normal88:feat/menu-position
Closed

normal88 wants to merge 1 commit into
TomGrobbe:legacyfrom
normal88:feat/menu-position

Conversation

@normal88

Copy link
Copy Markdown

Adds Menu Position X and Menu Position Y sliders to Misc Settings, under Right Align Menu. The middle of the slider is the default position.

Menu.Position doesn't do anything since MenuAPI moved to NUI, so the client sends the offset to index.html and the page moves #menuapi itself. After every draw it also clamps the menu to the screen, so you can't push it off screen no matter the resolution or how tall the current menu is. Works with Right Align Menu too.

Saved right away like Right Align Menu, no need to hit save preferences.

Adds Menu Position X and Menu Position Y sliders to Misc Settings, right under Right Align Menu. The middle of the slider is the default position. MenuAPI draws the menu with NUI and Menu.Position doesn't do anything, so the offset is sent to index.html which moves #menuapi and clamps it to the screen after every draw, so the menu can't be moved off screen. Saved right away like Right Align Menu.
@sir-lord-pizza

Copy link
Copy Markdown
Collaborator

No further changes will be made to the old vMenu at this point. Closing this PR for now.

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.

2 participants