So I’m very interested in using HaxeUI and tested it out with Heaps and with OpenFL (lime) yesterday. My initial attempt was with VSCode+HL+Heaps.
The Heaps build does not seem to work properly, and styles are never applied if set in XML. Setting programmatically seems to work. I tested with both Hashlink 1.10 and 1.11 with the same result. At first I thought it was just font embedding, but it does not work for any styles whatsoever:
<style> @font-face { font-family: 'Bauhaus93'; src: url('assets/fonts/BAUHS93.TTF'); } .baus { font-name: "assets/fonts/BAUHS93.TTF"; font-size: 30px; backgroundColor:0x333333; font-family: "Bauhaus 93"; } </style> <button text="Click Me!" onclick="this.text='Thanks!'" styleNames="baus" style="font-size: 34px;" /> <button id="b2" text="Don't Click Me!" onclick="doStuff()" style="font-size: 20px;" />
I then ran the same XML and code in HaxeUI+OpenFL and everything works as expected. I’d prefer to use Heaps because the build/test time is so much shorter.
I assume this is a build issue with HL and Heaps. I also noticed a bad layout during debug that was removed only after I restarted VSCode. It seemed like it corrupted the haxe build server instance, and restarting it solved the issue. It may be related. Any ideas?