Commit Graph
137 Commits
Author SHA1 Message Date
NotMangoandLuke 80267eb1f0 feat(web/radial): radial menu text scaling (#639)
* radial menu improvements

* addressing comments from Luke

* removing uneeded comments

* style(web/radial): remove icon scaling, increase number of items on page

* style(web/radial): cursor pointer, remove stroke, container overflow

---------

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2024-09-12 14:40:59 +02:00
ktx-mega 78891fb4b9 feat(web): support icon urls in radial menu (#487)
* feat(package): support icon urls in radial menu

* fix: update lua & ts types + clamp size parameters
2024-02-18 12:11:40 +01:00
Luke 36662050ff chore: optimize imports 2023-11-15 15:32:04 +01:00
Luke 882e372895 feat(web): font awesome icon animations 2023-11-15 15:28:21 +01:00
Luke 4d14bb0124 feat(web/context): optional context menu title property
Closes #428
2023-10-28 18:51:22 +02:00
Luke 1c5f4d6ac8 feat(web/context): allow separate metadata progress bars colors
Closes #430
2023-10-28 18:30:57 +02:00
Luke aaa37047f1 feat(web/context): readOnly buttons 2023-09-22 13:49:15 +02:00
Jellyton c8cca20c89 tweak(web): adjust markdown heading margins (#393)
* tweak(web): components for markdown headings

Fixed nomenclature and set as default export.

* fix(ui): temp remove MarkdownComponents file

* fix(ui): return MarkdownComponents file
2023-08-07 12:05:15 +02:00
Luke 7816ce7a33 fix(web): cap list menu width for long labeled items
resolves #350
2023-06-11 10:30:21 +02:00
Jag bda2c2657a feat(web/radial): newlines support (#316)
* feat(radial): Support newlines

* chore: update to `  \n` to match markdown
2023-05-01 11:07:17 +02:00
David Malchin 9f9170eb44 feat(interface/radial): more button if there are more than 8 items (#284) 2023-04-02 11:39:33 +02:00
Diogo Manuel Coelho Morais dos Santos d72b7eb00a fix(radial): go back to correct more page when going back from sub (#247) 2023-03-01 06:47:14 +11:00
Luke a0ebec5877 refactor(web/context): move inline styling to createStyles 2023-02-26 12:10:51 +01:00
Luke 60e3a12033 Revert "fix(web/radial): go back to correct more page when going back from sub"
This reverts commit 709d512422.
2023-02-25 15:37:13 +01:00
Luke 6e1a978038 fix(web/radial): check whether radial menu was closed during transition
Closing the radial menu during the transition from the more pages would cause the menu to be stuck open
2023-02-25 14:30:54 +01:00
Luke 709d512422 fix(web/radial): go back to correct more page when going back from sub 2023-02-25 14:15:27 +01:00
Luke 7ffa12af4f feat(web/radial): global menu pagination
adds a More... button when menu items are over PAGE_ITEMS
2023-02-23 17:29:40 +01:00
Luke f560961348 refactor(web/radial): remove pointer cursor 2023-02-23 12:54:14 +01:00
Luke 1897743bd1 chore(web/radial): reformat with prettier 2023-02-23 12:51:00 +01:00
DokaDoka 189a8a451f feat(web/radial): gap variable 2023-02-22 00:12:43 +11:00
Linden 4dd9b03ba3 refactor(web/radial): add stroke to center circle 2023-02-21 23:54:02 +11:00
renzuzuandLuke 8eca1698cb feat(web/meu): support images as icons in context and list menu (#230)
* feat: Support image Tag in buttons

in my server. ox_lib is heavily used.
most of sample use cases for this is.
Food image,
Ingredients,
Vehicle Parts,
etc..

i believe font awesome is not enough for some use cases.

i did suggest this on v3 pending PR.
but it seems gets ignored.

here i am gonna try to push this PR.

to use this.
icon must be not existing in the options.

if both icon and image is in options, nothing will appear.

image in metadata will still appear normaly.

* tweak(web/menu): resize render image comparable to FA

* refactor(web/context): use icon prop for images

* refactor(web/list): use icon prop for images

---------

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2023-02-19 13:53:48 +01:00
Linden 828ca36c1c refactor(web/radial): disable transition when swapping to submenu 2023-02-18 21:25:22 +11:00
Luke 829bec2592 refactor(web): move all types into typings folder 2023-02-15 13:25:44 +01:00
Luke 14341a0343 chore(web): remove unused code 2023-02-13 21:24:33 +01:00
Luke d0ffed8592 refactor(web/radial): move center icon into absolute div
fixes annoying issues when trying to rotate the icon
2023-02-11 13:49:10 +01:00
Luke 71885f5831 refactor(web/radial): disable nui focus when closing with x button 2023-02-10 18:17:30 +01:00
masonschafercodes 7acad823b8 Revert "feat(web/context): mouse enter and mouse leave events (#218)"
This reverts commit 7a22da68e6.
2023-02-10 18:11:18 +01:00
Luke c9c90efaf8 Revert "refactor(client/context): rename lastHoveredContextItem variable"
This reverts commit 61db40c07d.
2023-02-10 18:11:06 +01:00
Luke 407cfd8eb2 refactor(web/radial): radial menu back on rmb 2023-02-10 18:10:43 +01:00
Luke ec62398e55 Revert "refactor(web/menu): radial menu onHover"
This reverts commit f20e3a288f.
2023-02-10 18:09:26 +01:00
Luke f20e3a288f refactor(web/menu): radial menu onHover 2023-02-08 10:17:44 +01:00
Luke 61db40c07d refactor(client/context): rename lastHoveredContextItem variable 2023-02-08 10:06:02 +01:00
masonschafercodes 7a22da68e6 feat(web/context): mouse enter and mouse leave events (#218)
* feat(web/context): mouse enter and mouse leave events

* chore(web/context): condense into one function for onHover

* feat(resource/context): cache last hovered option
2023-02-08 10:05:30 +01:00
Luke de7cf1ccef refactor(web/menu): improve radial menu transitions 2023-02-07 13:51:42 +01:00
Marcel 4a9137ad04 feat(web/progress): progress bar in context menu's metadata (#217)
* feature: progress bar in context menu's metadata

* undefined check `metadata.progress`
2023-02-06 15:42:19 +01:00
Luke be99e16e34 refactor(web/menu): radial sub menu chaining
still some quirks to figure out but it's working well
2023-02-04 22:13:22 +01:00
Luke a44142333e refactor(web/menu): radial menu item removing and refreshing 2023-02-02 12:23:48 +01:00
Luke ada2a35c0b refactor(client/interface): initial lua radial menu implementation
linden pls don't kill me
2023-01-31 14:07:52 +01:00
Luke 1b2e287153 refactor(web/menu): always draw full radial menu circle 2023-01-30 19:38:20 +01:00
Luke 054dc2688c refactor(web/menu): remove unused code 2023-01-30 19:23:14 +01:00
Luke 3fb66f30d4 refactor(web/menu): radial menu item onClick 2023-01-30 19:22:45 +01:00
Luke 26a1ecb93d refactor(web/menu): radial menu visibility handling 2023-01-29 13:06:57 +01:00
Luke ea74e5705f refactor(web/menu): display bg circle when there's less than 3 item 2023-01-28 18:03:51 +01:00
Luke f5617abbb6 refactor(web/menu): rename planet menu to radial menu 2023-01-27 22:03:00 +01:00
Luke a8abefa2d0 refactor(web/menu): reduce center circle size 2023-01-27 21:59:03 +01:00
Luke c7ec1b7307 refactor(web/menu): remove unused radial menu styling 2023-01-27 21:58:04 +01:00
Luke 5e4d36d1ab refactor(web/menu): radial menu center button 2023-01-25 21:47:04 +01:00
DokaDoka b09ca41001 refactor(web/menu): fix alignment
I am web dev now
2023-01-23 00:33:39 +11:00
Luke 819bb60bd3 refactor(web/menu): attempt alignment
doka pls fix
2023-01-22 14:00:44 +01:00