Brendonovich / MacroGraph

Visual programming for streamers
https://macrograph.app
GNU Affero General Public License v3.0
143 stars 13 forks source link

Allow passing properties to types #478

Open Hannah-GBS opened 3 months ago

Hannah-GBS commented 3 months ago

ie t.String({someProp: "yes"})

Brendonovich commented 3 months ago

Would be helpful to know what properties we need, I think this will just be implemented on a case by case basis

Hannah-GBS commented 3 months ago

For string probably just: filepicker: boolean password: boolean (to turn input to a password field)

For both number types: Min: number Max: number Step: number Suffix: string (ie %, px) - Just visual on input boxes? Delimiter: string (ie default is comma for 1,000) - Just visual on input boxes? Delimiter count: (ie default 3 for 1,000,000. 2 for 1,00,00,00. 0 for 1000000) - Just visual on input boxes?