https://linen.dev logo
Join Discord
Powered by
# ceramic
  • a

    ambitious-knife-25690

    02/27/2023, 12:24 PM
    a user might add the file extension
  • a

    ambitious-knife-25690

    02/27/2023, 12:24 PM
    do you think it would be wise to just quietly remove that if a someone does add it?
  • b

    bright-gpu-74537

    02/27/2023, 12:25 PM
    personally, i think i would try and allow a few different options... is there a "list" or something similar on
    ceramic.App.app.scenes.main.assets
  • a

    ambitious-knife-25690

    02/27/2023, 12:26 PM
    none that is publicly available, but might be private
  • b

    bright-gpu-74537

    02/27/2023, 12:28 PM
    just spit-balling, but it might be nice to allow:
    HAXEUI_CORE__CHECK_BLUE
    ,
    /haxeui-core/check-blue.png
    ,
    /root/assets/haxeui-core/check-blue.png
    (with and without .png)... but i dont know how much effort any of that is, if there is no list it could be a pain since it might not be easy (or performant) to check "all the things"
  • a

    ambitious-knife-25690

    02/27/2023, 12:28 PM
    ohh, it's static!
  • a

    ambitious-knife-25690

    02/27/2023, 12:28 PM
    and its a map
  • a

    ambitious-knife-25690

    02/27/2023, 12:29 PM
    so easy to just to call
    exists
  • a

    ambitious-knife-25690

    02/27/2023, 12:29 PM
    I can scan the key and the path with extension it seems
  • b

    bright-gpu-74537

    02/27/2023, 12:29 PM
    cool - then i would decide on one format "you think is right" (or more likely to be used), but allow for other formats... i mean, thats how i would go about it anyway 🙂
  • a

    ambitious-knife-25690

    02/27/2023, 12:30 PM
    I don't think
    HAXEUI_CORE__CHECK_BLUE
    would be that intuitive
  • b

    bright-gpu-74537

    02/27/2023, 12:30 PM
    i tend to agree, even though its the more "ceramic" one
  • a

    ambitious-knife-25690

    02/27/2023, 12:30 PM
    whereas haxeui's "standard" is pretty much filepaths
  • a

    ambitious-knife-25690

    02/27/2023, 12:31 PM
    so a user may default to
    assets/folder/image.png
  • b

    bright-gpu-74537

    02/27/2023, 12:31 PM
    or by the looks of it just
    folder/image
  • a

    ambitious-knife-25690

    02/27/2023, 12:31 PM
    which would be wrong, but, I guess i could check if a user entered assets manually
  • a

    ambitious-knife-25690

    02/27/2023, 12:32 PM
    or add the proper way to a readme
  • b

    bright-gpu-74537

    02/27/2023, 12:32 PM
    yeah, i would personally allow for a few different combinations, is seems easy enough to check since its a map... but well, its all up to you ofc 🙂
  • a

    ambitious-knife-25690

    02/27/2023, 12:33 PM
    I think i'll stick to the ceramic key, cause i'd like to add the ceramic filepath method as well anyway
  • a

    ambitious-knife-25690

    02/27/2023, 12:34 PM
    what i should be able to do though, is if a user is scanning the assets directory, just do a once over the asset list and make sure they're not trying to double load the same file
  • b

    billowy-waiter-28954

    02/27/2023, 12:38 PM
    @ambitious-knife-25690 I think you should accept an
    Assets
    object as parameter when you init a haxe ui hierarchy
  • b

    billowy-waiter-28954

    02/27/2023, 12:38 PM
    So the user has control whether the assets objects comes from a scene, a custom assets object, the global App.assets etc...
  • b

    bright-gpu-74537

    02/27/2023, 12:39 PM
    nice idea... you could always default to that main one if its not specified... fyi, this could be an option in ToolkitOptions
  • b

    bright-gpu-74537

    02/27/2023, 12:39 PM
    (which is used in Toolkit.init)
  • b

    bright-gpu-74537

    02/27/2023, 12:40 PM
    eg: https://github.com/haxeui/haxeui-kha/blob/master/haxe/ui/backend/ToolkitOptions.hx
  • b

    bright-gpu-74537

    02/27/2023, 12:40 PM
    (from haxeui-kha)
  • b

    bright-gpu-74537

    02/27/2023, 12:41 PM
    or maybe a simpler one: https://github.com/haxeui/haxeui-heaps/blob/master/haxe/ui/backend/ToolkitOptions.hx (from haxeui-heaps)
  • a

    ambitious-knife-25690

    02/27/2023, 12:59 PM
    ooo good idea, i'll do that inplace of my "internal" assets object idea
  • a

    ambitious-knife-25690

    02/27/2023, 1:00 PM
    Follow up question, is there a way to handle loading?
  • a

    ambitious-knife-25690

    02/27/2023, 1:00 PM
    I'm a bit confused by the loading setup
1...818283...124Latest