FancyMenu [Fabric] [MOVED TO NEW PROJECT]

FancyMenu [Fabric] [MOVED TO NEW PROJECT]

17M Downloads

Add feature to FM JavaScript API to get saved FM variable values and set them as JS constants

Keksuccino opened this issue ยท 3 comments

commented

preferably get any fm placeholder value as a js var (if this will be simpler than just doing variables)

ex.
const name = fancymenu.retrieve('player_name');
let var1 = fancymenu.retrieve('get_variable', 'myVar');

id really like this and i think this would be recolutionary for browser elements!!!1

commented

retrieve because the actions have execute like a mirror LMAO you can name it whatever

commented

i don't think you need one for placeholders explicitly even if they are strings since.. js variables can be strings as well anyway

you could include a transform method for the variables tho? like
fancymenu.retrieve('get_variable', 'meow', boolean);
and throw an error if the value isnt true false 1 1b 0 0b