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

panel config object #7

Open
SuddenDevelopment opened this issue Jan 13, 2023 · 1 comment
Open

panel config object #7

SuddenDevelopment opened this issue Jan 13, 2023 · 1 comment

Comments

@SuddenDevelopment
Copy link

this one is for me to complete. Gathering feedback on plan though.

implement the ability to define all properties and combos needed for a panel from a single config, reducing the code repetition and boilerplate, keeping the same flexibility.

{
    defaults:{
        button:{key:value}
        patch:{key:value}
        ...
    },
    items:[
        {
            type:'button|patch|slider'
            name:'string used for key'
            settings:{key:value}
            items:[]
        }
    ]
}

each parent will have a position to reference for children items, this way rows can be created by cumulative y positions within a group

@mmmrqs
Copy link
Owner

mmmrqs commented Jan 14, 2023

this one is for me to complete. Gathering feedback on plan though.

implement the ability to define all properties and combos needed for a panel from a single config, reducing the code repetition and boilerplate, keeping the same flexibility.

each parent will have a position to reference for children items, this way rows can be created by cumulative y positions within a group

I am looking forward to see your finished code and hopefully I can learn much with it. I am really a noobie in regard to Python coding. This bl_ui_widgets library addon was my first time even working with Python, and I came from old school procedure based languages like Basic, Cobol, Pascal, Clipper, CAGen... LOL -- This dictionary/list approach is completely new to my way of thinking. Glad you are sharing it.

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

2 participants