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

    billowy-waiter-28954

    02/26/2023, 3:41 PM
    It's still incomplete as it doesn't load entities yet, but that's what I'm working on right now
  • g

    gifted-whale-78169

    02/26/2023, 6:42 PM
    is it possible to make the scene size always equal the screen size?
  • g

    gifted-whale-78169

    02/26/2023, 6:42 PM
    on resizes and stuff like
    fullscreen = true
    the scene stays in the top left corner
  • b

    billowy-waiter-28954

    02/26/2023, 6:56 PM
    the scene should match screen size if it's the main scene (assigned to
    app.scenes.main
    )
  • g

    gifted-whale-78169

    02/26/2023, 7:04 PM
    it looks like my custom background fits it but text and quads that i add to it do not change to the new center location
  • b

    billowy-waiter-28954

    02/26/2023, 7:06 PM
    you should check that the visuals are added inside your scene then
  • g

    gifted-whale-78169

    02/26/2023, 7:08 PM
    they are
  • g

    gifted-whale-78169

    02/26/2023, 7:08 PM
    its a custom class with quads and text inside it, could that effect it?
  • b

    billowy-waiter-28954

    02/26/2023, 7:14 PM
    Well, can't say if you broke hierarchy of visuals or not as I don't know your code
  • g

    gifted-whale-78169

    02/26/2023, 7:17 PM
    its happened with all of my ceramic project too, not just this
  • b

    billowy-waiter-28954

    02/26/2023, 8:07 PM
    You can send a small project reproducing the issue
  • a

    ambitious-knife-25690

    02/27/2023, 12:22 AM
    @billowy-waiter-28954Could you explain how one can get usable file data from the
    Assets
    ? Are assets unique to a scene?
  • a

    ambitious-knife-25690

    02/27/2023, 12:23 AM
    It seems like
    App.assets
    exists, but, it also looks like a user could also have loaded an asset from within a scene
  • a

    ambitious-knife-25690

    02/27/2023, 12:23 AM
    does this get added to the global
    App.assets
    list?
  • a

    ambitious-knife-25690

    02/27/2023, 12:23 AM
    Also these haxeui logo's are loaded from bytes :)
  • a

    ambitious-knife-25690

    02/27/2023, 12:27 AM
    i'm struggling to understand what an asset id "should be"
  • a

    ambitious-knife-25690

    02/27/2023, 12:28 AM
    like in the example repo you do this
    assets.add(Images.CERAMIC);
    but if i try
    assets.asset('ceramic')
    or
    ceramic.png
    i get
    null
  • a

    ambitious-knife-25690

    02/27/2023, 12:31 AM
    (i specifically would like a solution that isn't macro tied. So I can't use
    Images
    )
  • a

    ambitious-knife-25690

    02/27/2023, 12:33 AM
    haxeui can't really do much with that from xml
  • f

    faint-toothbrush-51643

    02/27/2023, 12:38 AM
    Each
    Assets
    object is separate and has its own contents, I'm pretty sure. The
    App
    and each
    Scene
    each has its own assets object, but you could also make your own with https://ceramic-engine.com/api-docs/ceramic/Assets.html if you want to
  • a

    ambitious-knife-25690

    02/27/2023, 12:39 AM
    Ah okay, both of those I'll have to check from the backend side then
  • f

    faint-toothbrush-51643

    02/27/2023, 12:39 AM
    you're supposed to load the app's assets in Project.hx
  • a

    ambitious-knife-25690

    02/27/2023, 12:39 AM
    users own assets objects may be a "for later/polish" feature
  • f

    faint-toothbrush-51643

    02/27/2023, 12:40 AM
    and the scene's asset's in the overridden preload()
  • a

    ambitious-knife-25690

    02/27/2023, 12:40 AM
    I can only find examples of grabbing an asset object using the macro
    Images...
    example
  • a

    ambitious-knife-25690

    02/27/2023, 12:41 AM
    oh, 2 secs, i think i may have had a bit of a silly moment
  • f

    faint-toothbrush-51643

    02/27/2023, 12:42 AM
    pretty sure you can still just make them as strings
  • f

    faint-toothbrush-51643

    02/27/2023, 12:42 AM
    considering they're just static vars anyway
  • a

    ambitious-knife-25690

    02/27/2023, 12:42 AM
    I never thought to try tracing
    Image.CERAMIC
    😆
  • a

    ambitious-knife-25690

    02/27/2023, 12:42 AM
    okay, so this gets converted into
    image:ceramic
1...777879...124Latest