https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    07/11/2022, 12:16 PM
    its so weird... for me every third time it crashes
  • b

    bright-gpu-74537

    07/11/2022, 12:17 PM
    no stack trace either 😦
  • b

    bright-gpu-74537

    07/11/2022, 12:21 PM
    oh, actually, i get a stack now... wasnt running in debug
  • b

    bright-gpu-74537

    07/11/2022, 12:24 PM
    @icy-zebra-52882 - right, should be fixed now - seems that group members can be null
  • b

    bright-gpu-74537

    07/11/2022, 12:24 PM
    ¯\_(ツ)_/¯
  • b

    bright-gpu-74537

    07/11/2022, 12:24 PM
    (latest haxeui-flixel)
  • i

    icy-zebra-52882

    07/11/2022, 12:28 PM
    it works!!!
  • i

    icy-zebra-52882

    07/11/2022, 12:28 PM
    a very roundabout debugging session today, but thank you 😄
  • h

    hallowed-ocean-84954

    07/11/2022, 1:43 PM
    Ok sorry, I think the in-game debugger is something else - need to figure out the cause. But I just noticed that I am not seeing the red background due to the invalid-value style on any field, in a tableview or separately. I am on a later commit than the one that introduced it. I wonder if there is a haxeui-flixel update needed ? My commits are: haxeui-core: a4b6bcaa013730d3bd797835fa6326d912c5476b haxeui-flixel: 28a4b325ef13e50d5697a85fe2e9d786b93c8805
  • b

    bright-gpu-74537

    07/11/2022, 1:52 PM
    i dont think so
  • b

    bright-gpu-74537

    07/11/2022, 1:52 PM
    i didnt test flixel tbf
  • b

    bright-gpu-74537

    07/11/2022, 1:55 PM
    ... seems fine
  • h

    hallowed-ocean-84954

    07/11/2022, 1:55 PM
    I think I may have found my bug - just checking
  • h

    hallowed-ocean-84954

    07/11/2022, 1:56 PM
    yeah - my mistake - groan
  • h

    hallowed-ocean-84954

    07/11/2022, 1:56 PM
    thanx
  • h

    hallowed-ocean-84954

    07/11/2022, 1:58 PM
    sorry for wasting your time on that
  • b

    bright-gpu-74537

    07/11/2022, 1:58 PM
    np
  • b

    best-needle-18998

    07/12/2022, 10:14 AM
    hello, question, if i use haxeui-html5, can i use two or more haxe-ui apps on the same page in different divs ? like:
    Copy code
    html
    ...
    <div id="one"></div>
    <script src="app-one.js"></script>
    ...
    <div id="two"></div>
    <script src="app-two.js"></script>
    ...
    <div id="three"></div>
    <script src="app-three.js"></script>
    ...
  • b

    bright-gpu-74537

    07/12/2022, 10:34 AM
    Someone ( @purple-businessperson-14467 ) also recently asked about this - unfortunately it seems, at the moment, its not possible. Though i would like to know why exactly as i would have thought they would have been somewhat isolated. But i havent had time to check whats breaking things at the moment
  • e

    elegant-twilight-61392

    07/12/2022, 11:12 AM
    conflicting ids between the contents? no idea how haxe ui works but if its doing anything with the underlying html id property then it seems very possible
  • b

    bright-gpu-74537

    07/12/2022, 11:24 AM
    hmm, so yeah, one app overwrites another for some reason
  • b

    bright-gpu-74537

    07/12/2022, 11:31 AM
    haha, its much more subtle than that... i had a "body.onload= function(...)", this would get overwritten by the other app, which means the first one would not know the page was ready 😄
  • b

    bright-gpu-74537

    07/12/2022, 11:31 AM
    super simple fix: use addEventListener
  • b

    bright-gpu-74537

    07/12/2022, 11:47 AM
    OK, thats working in latest haxeui-html5 - was a pretty simple fix in reality.
  • b

    bright-gpu-74537

    07/12/2022, 11:47 AM
    fyi, this is my html:
  • b

    bright-gpu-74537

    07/12/2022, 11:48 AM
    Copy code
    html
    <!DOCTYPE html>
    <html lang="en">
    <head>
    ...
    </head>
    <body>
    
        <table border="1" width="100%" height="100%">
            <tr>
                <td align="center">
                    App 1 Container
                </td>
                <td align="center">
                    App 2 Container
                </td>
            </tr>
            <tr height="100%">
                <td width="50%">
                    <div id="app1Container" style="width:100%;height:100%;"></div>
                </td>
                <td width="50%">
                    <div id="app2Container" style="width:100%;height:100%;"></div>
                </td>
            </tr>
        </table>
    
        <script src="app1.js"></script>
        <script src="app2.js"></script>
    </body>
    </html>
  • b

    bright-gpu-74537

    07/12/2022, 11:49 AM
    and you have to init the toolkit to use the right container (if you dont it will use body, which, depending on your use case, may be fine):
  • b

    bright-gpu-74537

    07/12/2022, 11:49 AM
    Copy code
    haxe
            Toolkit.init({
                container: Browser.document.getElementById("app1Container")
            });
  • b

    bright-gpu-74537

    07/12/2022, 11:49 AM
    @purple-businessperson-14467 - the above might interest you 🙂
  • b

    bright-gpu-74537

    07/12/2022, 11:51 AM
    next i just need to make externs for haxeui so you dont have include haxeui in app1 / app2 and could just do something like:
    Copy code
    html
        <script src="haxeui.js"></script>
        <script src="app1.js"></script>
        <script src="app2.js"></script>
1...116211631164...1687Latest