So, I decided to make a set of custom instructions to make creating MFD widgets easier. I mostly started making it for myself, but other people might find it useful, especially those who are just starting to learn about MFDs.
Download here.
Please read all these instructions first!
Also read the comments in the code.
It’s not complete yet, this is just the beta. I’m planning on adding some instructions for making functional toggle buttons, however if you have additional suggestions lmk.
The current version includes all these:
Note that some inputs must be a vector (in custom coordinates), colors can be a hex color or rgb vector. The position will be anchored position (relative to parent), but you can leave the parent input blank, then it will just be normal position (relative to screen).
Custom Coordinates (VERY IMPORTANT)
Everything is created using a system of custom coordinates. These should be set at the beginning of the program and need to match the aspect ratio of your screen. The actual range can be whatever is convenient for you. The preloaded screens have an example to help you visualize the current system. Once you set these, I really don’t recommend changing them or the aspect ratio of your screen. Resizing the screen (while keeping the ratio) is fine, everything will resize with it.
Screen example with these coordinates (square screen)
Additional Notes/Features
vars: any inputs listed after “vars” should be left blank, they are local variables set by and used in the instruction
extra: any inputs after extra don’t currently do anything, however if you wanted to add another block to the instructions (such as fill amount for a rectangle), you have extra inputs to do it with.
Label: For txt size, enter a height (in custom coordinates) or enter 0. This turns on auto size
Gauges: When setting the size of a gauge you have 2 options: Input numbers for x,y size (like normal), or input an x or y and leave the other as 0. This will automatically size your gauge to the proper aspect ratio for the given x or y.
Hopefully that made some sense. Please lmk if you have any questions/suggestions
Yeah if I ever post the button I think I'll make an "easy version" that already generates the buttons, and people can just change the names and what they activate. @FelixFan1