ImpulseAdventure / GUIslice-Builder

Cross-platform drag & drop GUI builder for GUIslice
Other
166 stars 35 forks source link

Code in .ino erased after changes in builder are updated (Button case:break;) #141

Closed MickTheMechanic closed 3 years ago

MickTheMechanic commented 3 years ago

Describe the bug

When using certain GUI elements (number input) code between the button case: and break; is erased each time changes are made in the builder and code is re-generated.

Device hardware

Checklist to try first

I have tried placing my code before and after


// Clicked on edit field, so show popup box and associate with this text field
        gslc_ElemXKeyPadInputAsk(&m_gui, m_pElemKeyPadNum, E_POP_KEYPAD_NUM, mintempBtn);

but it is still erased each time I make a change using the builder.

Expected behavior

I expect to use the number input in the same way as a button, to trigger other events when the numpad is opened, and not have to rewrite the code between case: break; each time a change is made in the builder.

Additional info

I have only had this problem wit the number input so far, other buttons are working fine. However I suspect text input will produce the same bug.

Pconti31 commented 3 years ago

@MickTheMechanic Should be fixed with 0.16.b003 HotFix 0.16.b003 Bug No. 200 New Keypad support causes input field button case-statement to be deleted and recreated

Pconti31 commented 3 years ago

@MickTheMechanic Just retested 0.16.b003 and confirmed this is fixed.