So, I was happy to find out that this was going to be our permanent . And was thinking to blog my long time personal stuff in the Projects category until I ran it today and found ‘Layout cycle detected in GUI (Container uniqueId=XX)’ error message !
Poof, my GUI is borked ! Now I know its the holiday season and all, is there a need for a repro or are the devs already aware or did I miss a new feature ? Sorry for the many questions, haven’t caught up with all the new posts yet.
On line #50: you have to give your rectangle a height as it is a child of a vertical StackPanel. I’ll make sure to display a warning now to help people find this kind of issues
Well, thanks @Deltakosh, I fixed the new command for stackpanels but the error still persists plus a few more new ones I haven’t seen before and my characters are doing moonwalks all of a sudden.
Gonna be a while before I find time to get a repro, meanwhile…here’s a pic of the errors I have so far.
Running it will throw the identical Layout cycle detected in GUI error, commenting out text1.paddingLeft = "5%"; solves the problem. Another weird one, I guess…
Actually this is the same one. You cannot use paddingLeft in percentage inside an horizontal stackpanel.
Indeed, the panel will computes it’s weight from its controls (padding and width) which in turn will define their position and size from the panel width. This is recursive:)
ok, got it. Just to be clear: the new stackpanel width/height definitions override % control paddings. Control paddings, if needed, should only be defined in px ?