Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structured styler parameters #22

Closed
Aurumaker72 opened this issue Jan 14, 2025 · 0 comments
Closed

Structured styler parameters #22

Aurumaker72 opened this issue Jan 14, 2025 · 0 comments

Comments

@Aurumaker72
Copy link
Owner

Instead of dumping all styler parameters into the styler, each control should get its own category.

Old:

joystick_line_colors = {
            [1] = BreitbandGraphics.hex_to_color('#0000FF'),
            [2] = BreitbandGraphics.hex_to_color('#0000FF'),
            [3] = BreitbandGraphics.hex_to_color('#0000FF'),
            [0] = BreitbandGraphics.hex_to_color('#8080FF'),
        },
        joystick_inner_mag_colors = {
            [1] = BreitbandGraphics.hex_to_color('#FF000022'),
            [2] = BreitbandGraphics.hex_to_color('#FF000022'),
            [3] = BreitbandGraphics.hex_to_color('#FF000022'),
            [0] = BreitbandGraphics.hex_to_color('#00000000'),
        },
        joystick_outer_mag_colors = {
            [1] = BreitbandGraphics.hex_to_color('#FF0000'),
            [2] = BreitbandGraphics.hex_to_color('#FF0000'),
            [3] = BreitbandGraphics.hex_to_color('#FF0000'),
            [0] = BreitbandGraphics.hex_to_color('#FF8080'),
        },

New:

joystick = {
    line_colors = { ... },
    inner_mag_colors = { ... },
    outer_mag_colors = { ... },
}
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

No branches or pull requests

1 participant