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

    gifted-whale-78169

    08/10/2022, 12:19 AM
    alright, so essentially put the resize functions in one method and call it from there?
  • f

    faint-toothbrush-51643

    08/10/2022, 12:19 AM
    yes
  • f

    faint-toothbrush-51643

    08/10/2022, 12:19 AM
    and by extending resize, you don't need to worry with a bunch of events
  • f

    faint-toothbrush-51643

    08/10/2022, 12:20 AM
    you can disregard the stuff involving cursor and ui; those are for my elaborate system to make the ui navigable by mouse, keyboard, and gamepad
  • g

    gifted-whale-78169

    08/10/2022, 12:20 AM
    cool 👍
  • g

    gifted-whale-78169

    08/10/2022, 12:21 AM
    also, how long have you been working with ceramic?
  • f

    faint-toothbrush-51643

    08/10/2022, 12:21 AM
    uh
  • f

    faint-toothbrush-51643

    08/10/2022, 12:21 AM
    three months
  • g

    gifted-whale-78169

    08/10/2022, 12:22 AM
    nice
  • g

    gifted-whale-78169

    08/10/2022, 12:22 AM
    have you made anything with it
  • f

    faint-toothbrush-51643

    08/10/2022, 12:22 AM
    i started because flixel's spine library was out of date and not functioning
  • f

    faint-toothbrush-51643

    08/10/2022, 12:22 AM
    i am in the process of making a very complicated thing
  • g

    gifted-whale-78169

    08/10/2022, 12:22 AM
    ah yes
  • f

    faint-toothbrush-51643

    08/10/2022, 12:22 AM
    because i like making very complicated things
  • g

    gifted-whale-78169

    08/10/2022, 12:22 AM
    a very complicated thing
  • g

    gifted-whale-78169

    08/10/2022, 12:23 AM
    any games?
  • f

    faint-toothbrush-51643

    08/10/2022, 12:23 AM
    oh, that reminds me, i actually got it to a semi-playable state yesterday and posted it in a few places, but forgot to post in #162664383082790912 here
  • f

    faint-toothbrush-51643

    08/10/2022, 12:23 AM
    be back in a few
  • g

    gifted-whale-78169

    08/10/2022, 12:23 AM
    ok lol
  • g

    gifted-whale-78169

    08/10/2022, 2:35 AM
    just got back, the code still doesnt work
    Copy code
    hx
        override function resize(width, height:Float) {
            super.resize(width, height);
            if (options != null) {
                options.size(this.width, this.height / 4);
            }
        }
  • g

    gifted-whale-78169

    08/10/2022, 2:35 AM
    this is in my scene
  • g

    gifted-whale-78169

    08/10/2022, 2:35 AM
    options
    is
    MenuOptions
  • g

    gifted-whale-78169

    08/10/2022, 2:35 AM
    :/
  • g

    gifted-whale-78169

    08/10/2022, 2:46 AM
    also tried making a
    resize
    method in
    MenuOptions
    and then calling it from scene's
    resize
    and the constructor for
    MenuOptions
    , also didnt work
  • f

    faint-toothbrush-51643

    08/10/2022, 3:21 AM
    pos
    it too
  • g

    gifted-whale-78169

    08/10/2022, 10:18 AM
    👍
  • g

    gifted-whale-78169

    08/10/2022, 10:18 AM
    I'll try it
  • b

    billowy-waiter-28954

    08/10/2022, 7:45 PM
    Yes, a Text object is displaying characters of a bitmap font using quads
  • b

    billowy-waiter-28954

    08/10/2022, 7:53 PM
    That means you can actually modify the quads afterwards to add some effects, like, if you want to shake the characters, or create a "typing" animation etc... There is an event
    glyphQuadsChange
    that is fired everytime the quads are changed (usually from changing the text content). You can then access the quads by reading the
    glyphQuads
    property.
  • b

    billowy-waiter-28954

    08/10/2022, 7:59 PM
    This is an example of taking advantage of this feature to add an "italic" effect to the text: https://github.com/ceramic-engine/ceramic/blob/151ddc6701b781d24b6f393153b20ee37b1f9dd3/plugins/elements/runtime/src/elements/ItalicText.hx
1...567...124Latest