Working on incorporating some of the flash saving features to pack more into a config and I want to use the CONFIG_STYLES feature of the config. Please tell me if I am using it correctly in the example below (I have left out other sections of the config to keep things cleaner to see).
You donât need the âStylePtrâ in the using statement, it should be:
using Smpl_Sprk_Tip = InOutSparkTip<EasyBlade<RgbArg<BASE_COLOR_ARG,Blue>,RgbArg<CLASH_COLOR_ARG,Red>,RgbArg<LOCKUP_COLOR_ARG,Orange>>,300,800>;
Also, if you want to put parameters in, you donât add another set of paranthesis, and colosr are written as R,G,B. Finally, argument 7 is IGNITION_COLOR_ARG, LOCKUP_COLOR_ARG is argument 11, soâŚ
StylePtr<Smpl_Sprk_Tip>("~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 65535,0,0"), //Change Lockup to Red
I feel itâs also worth mentioning that using the using syntax wonât save memory (as opposed to creating the same config not using using), itâs purely for organization/readability purposes
My Config Helper will assist with this. As noted using functions on their own donât save memory. Itâs a piece in the puzzle. The combination of library styles with options, using functions and style arguments are how you can accomplish and my config tool handles easily. Just watch the videos at the top and read through the selections and instructions.
Style Arguments must be in a specific order and you must account for the unused ones with â~â, itâs much harder by hand, thatâs why I built the tool into the Config Helper to decipher, set/update and handle the syntax for you
More information here if you want to do it by hand, but the Config Helper will make it 100x easier and preview the changes for you (see links I provided above).
RgbArgs are not equal to three integers.
A color is written something like this: 65536,0,0
There are no spaces, and itâs counted as a single argument.
(Arguments are separated by spaces)