Open slackmoehrle opened 8 years ago
actually I am wrong a null string should be fine. Notice this code in one of your tests:
// New node
auto uibutton_1 = ui::Button::create("default_btn_normal", "", "", ui::Widget::TextureResType::PLIST);
This is the same. Yours works, mine doesn't. Switching to your code still causes me a runtime crash.
Here are my properties for the button.
I had a UIButton in a Scene. Rean it through the parser and brought into cpp-tests.
The code it created was:
This causes a crash as
ui::button::create()
has a signature of:and the code that was generated contains "None", "", "" meaning valid strings were not passed in. I made this UI Button by simply dragging it to the canvas and changing the text. No other changes. I did this because it looked like a valid button after dragging it to the canvas.