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

    brainy-machine-50829

    08/27/2022, 7:34 AM
    New generator based on the good old Kvazars' Littera:
  • b

    billowy-waiter-28954

    08/27/2022, 8:53 AM
    Nice, didn’t know about this littera successor 🙂
  • f

    faint-toothbrush-51643

    08/27/2022, 2:52 PM
    can i scale nineslices?
  • b

    billowy-waiter-28954

    08/27/2022, 5:24 PM
    Yes, just set it's scaleX/scaleY properties
  • o

    orange-van-60470

    08/27/2022, 5:24 PM
    looking at the code you would need to something like this.
    Copy code
    Haxe
    function scale( nine: nineSlice, s: Float ) scaleXY( nine, s );
    function scaleXY( nine: nineSlice, scaleX: Float, scaleY: Float ){
      nine.width = nine.width*scaleX; 
      nine,height = nine.height*scaleY;
      nine.slice( nine.sliceTop*scaleY
                , nine.sliceLeft*scaleX
                , nine.sliceBottom*scaleY
                , nine.sliceRight*scaleX );
      // contentDirty
      // computeContent();  should be automatic..
    }
  • o

    orange-van-60470

    08/27/2022, 5:25 PM
    it looked like the slices need scaling as well?
  • b

    billowy-waiter-28954

    08/27/2022, 5:26 PM
    The slices are quads which are children of the NineSlice object so they inherit NineSlice scale, nothing different from every other self contained Ceramic visual here
  • o

    orange-van-60470

    08/27/2022, 5:26 PM
    ah ok that's interesting
  • o

    orange-van-60470

    08/27/2022, 5:26 PM
    sorry my mistake
  • f

    faint-toothbrush-51643

    08/27/2022, 7:16 PM
    so if i wanted the nineslice at scale M and actual height N, i'd just need to set scale to M and size to N/M?
  • b

    billowy-waiter-28954

    08/27/2022, 7:29 PM
    If you want your object to have a final height of M, you'd need to set the height to N and set scaleY to M/N
  • b

    billowy-waiter-28954

    08/27/2022, 7:29 PM
    (same logic for width & scaleX)
  • b

    billowy-waiter-28954

    08/27/2022, 7:35 PM
    Preparing a new sample using Kenney assets to demonstrate Ceramic platformer capabilities
  • f

    faint-toothbrush-51643

    08/27/2022, 8:42 PM
    "kenney assets"?
  • b

    billowy-waiter-28954

    08/27/2022, 8:57 PM
    https://kenney.nl/assets
  • f

    faint-toothbrush-51643

    08/27/2022, 9:23 PM
    didn't know about that
  • f

    faint-toothbrush-51643

    08/27/2022, 9:23 PM
    looks useful
  • f

    faint-toothbrush-51643

    08/28/2022, 2:46 AM
    okay so i just spent like an hour trying to figure out what was wrong with my nineslice
  • f

    faint-toothbrush-51643

    08/28/2022, 2:47 AM
    only to find out that it was working as intended
  • f

    faint-toothbrush-51643

    08/28/2022, 2:48 AM
    (from gamemaker's nine-slice guide)
  • f

    faint-toothbrush-51643

    08/28/2022, 2:48 AM
    i was wanting "Repeat"
  • f

    faint-toothbrush-51643

    08/28/2022, 2:56 AM
    is there anything that gives any looping functionality?
  • f

    faint-toothbrush-51643

    08/28/2022, 2:56 AM
    i mean like repeating, tiling
  • f

    faint-toothbrush-51643

    08/28/2022, 3:31 AM
    so, how do i use that?
  • b

    brainy-machine-50829

    08/28/2022, 5:45 AM
    You add the font file you want, configure it the way you want (glyphs, sizes, shadow, etc.) and export it. It's a way to generate bitmap fonts from normal fonts.
  • b

    billowy-waiter-28954

    08/28/2022, 7:18 AM
    Do you have a link to that nine slice game maker guide?
  • b

    bright-gpu-74537

    08/28/2022, 8:26 AM
    https://gamemaker.io/en/blog/slick-interfaces-with-9-slice
  • b

    billowy-waiter-28954

    08/28/2022, 8:47 AM
    I see, I guess an option to tile the inner content could be nice indeed
  • b

    bright-gpu-74537

    08/28/2022, 8:48 AM
    i was thinking the exact same for haxeui's slice-9 🙂
  • b

    billowy-waiter-28954

    08/28/2022, 8:49 AM
    I’m confused a bit by the gamemaker tutorial though
1...111213...124Latest