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

    hallowed-ocean-84954

    12/17/2022, 6:11 PM
    ok - so I was doing something dumb - #id does work
  • f

    full-journalist-82607

    12/17/2022, 6:13 PM
    👍
  • h

    hallowed-ocean-84954

    12/17/2022, 6:23 PM
    One more thing if I may. I'm having trouble with it finding the separate css file. I have updated module.xml with
    Copy code
    <themes>
            <default>
                <style resource="assets/ui/ui.css" />
            </default>
        </themes>
    And my ui.css is in
    Assets/ui/ui.css
    and in project.xml Assets is present renamed to assets. I've tried with assets/ui/ui.css and Assets/ui/ui.css. Any ideas ?
  • f

    full-journalist-82607

    12/17/2022, 7:25 PM
    @hallowed-ocean-84954 Hmm , maybe you should do add in the module somewhere
    Copy code
    <resources>
            <resource path="Assets" prefix="assets" />
        </resources>
  • h

    hallowed-ocean-84954

    12/17/2022, 7:59 PM
    yeah tried that - and variations of it - still not reading it
  • h

    hallowed-ocean-84954

    12/17/2022, 8:03 PM
    is it relative to the module.xml file ?
  • f

    full-journalist-82607

    12/17/2022, 8:04 PM
    Good question. I don't know
  • h

    hallowed-ocean-84954

    12/17/2022, 8:04 PM
    maybe if I move the module.xml to the same dir as project.xml is in
  • f

    full-journalist-82607

    12/17/2022, 8:06 PM
    Checking one of my project, I don't think so. It isn't relative to where the module.xml is
  • h

    hallowed-ocean-84954

    12/17/2022, 8:07 PM
    ok
  • h

    hallowed-ocean-84954

    12/17/2022, 8:08 PM
    and moving the file has other consequences
  • f

    full-journalist-82607

    12/17/2022, 8:09 PM
    Here is what I used it in one of my project
    Copy code
    <resources>
            <resource path="assets/locale" prefix="locale" />
            <resource path="assets/styles" prefix="style" />
        </resources>
        <themes>
            <default>
                <style resource="style/custom.css" />
            </default>
        </themes>
    </module>
  • h

    hallowed-ocean-84954

    12/17/2022, 8:13 PM
    very like mine
  • h

    hallowed-ocean-84954

    12/17/2022, 8:14 PM
    but mine is in my Source folder and my Assets folder is peer of Source
  • h

    hallowed-ocean-84954

    12/17/2022, 8:15 PM
    but it's relative to the project.xml dir then it should be fine. The problem I have when moving it is my components package refs don't work any more
  • h

    hallowed-ocean-84954

    12/17/2022, 8:15 PM
    unless there is a way to specify the source path
  • h

    hallowed-ocean-84954

    12/17/2022, 8:15 PM
    I cannot find a schema for the module.xml
  • f

    full-journalist-82607

    12/17/2022, 8:15 PM
    I'm not sure what it does , but you could try compiling with "-D resource_resolution_verbose"
  • h

    hallowed-ocean-84954

    12/17/2022, 8:16 PM
    oh interesting - might give that a shot
  • h

    hallowed-ocean-84954

    12/17/2022, 8:18 PM
    oh hang on - looks like it's working
  • h

    hallowed-ocean-84954

    12/17/2022, 8:18 PM
    let me check
  • h

    hallowed-ocean-84954

    12/17/2022, 8:20 PM
    groan ! looks like vscode caching is getting in the way of updates to the file
  • h

    hallowed-ocean-84954

    12/17/2022, 8:21 PM
    build from command line picks up changes - restarting vsc also does
  • h

    hallowed-ocean-84954

    12/17/2022, 8:21 PM
    I've been having some issues with that lately
  • f

    full-journalist-82607

    12/17/2022, 8:22 PM
    I'm glad I always build from command line ( because I was too lazy/ unintelligent to figure how to do it the vs way)
  • h

    hallowed-ocean-84954

    12/17/2022, 8:23 PM
    yep - it has it's benefits for sure - at least it's clearer what's going on
  • h

    hallowed-ocean-84954

    12/17/2022, 8:23 PM
    regardless - thanx for all your help this morning
  • f

    full-journalist-82607

    12/17/2022, 8:24 PM
    You're welcome 🙂
  • h

    hallowed-ocean-84954

    12/18/2022, 3:54 AM
    Ok got it going. I have a reference library component now that provides documentation of what chapters in DeVries are related to which part of the demo. I haven't quite wired up the auto selection but manual works fine. Now I made the dropdown by pilfering approach and examples from the Dropdowns demo. I noticed a couple of things on the way past. 1. how like supported is this approach ? It for example requires an @:access to override getComponent(). Oh this is where there is a comment about how the api could be simpler. Which makes me think this might be aimed at public use. 2. If you try to interact with the UI elements before the DropDownBuilder has registered the handler then you crash during initialization. I don't know if this is intentional or not ?
  • h

    hallowed-ocean-84954

    12/18/2022, 3:59 AM
    couple of snaps of how it looks. Closed and open. Note the dropdown bar (?) text is updated based on which item in the listview is selected. Plan is to drive that off the configuration menu selection at the right so that the current selection when you open the lib is related to the app context.
1...133913401341...1687Latest