Start of the rewrite to a modular system
This commit is contained in:
parent
2bfdc30caa
commit
4ac45367e5
29 changed files with 4414 additions and 588 deletions
26
static/js/button-generator/debug-helper.js
Normal file
26
static/js/button-generator/debug-helper.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// Debug helper - add this temporarily to main.js to see what's happening
|
||||
|
||||
export function debugControlValues(generator) {
|
||||
console.log('=== DEBUG: Control Values ===');
|
||||
const values = generator.getControlValues();
|
||||
|
||||
// Text controls
|
||||
console.log('Text controls:');
|
||||
console.log(' button-text:', values['button-text']);
|
||||
console.log(' text-enabled:', values['text-enabled']);
|
||||
console.log(' font-size:', values['font-size']);
|
||||
console.log(' text-x:', values['text-x']);
|
||||
console.log(' text-y:', values['text-y']);
|
||||
|
||||
// Check which effects are enabled
|
||||
console.log('\nEnabled effects:');
|
||||
generator.getAllEffects().forEach(effect => {
|
||||
const enabled = effect.isEnabled(values);
|
||||
if (enabled) {
|
||||
console.log(` ✓ ${effect.name} (${effect.id})`);
|
||||
}
|
||||
});
|
||||
|
||||
console.log('\nAll control values:', values);
|
||||
console.log('=== END DEBUG ===');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue