Author Topic: [BUG][EDITOR] 9 Slicing doesn't show properly  (Read 1148 times)

0 Members and 1 Guest are viewing this topic.

Offline Flopsy

  • Global Moderator
  • Posts: 955
  • Lix Nerd
    • View Profile
[BUG][EDITOR] 9 Slicing doesn't show properly
« on: March 25, 2021, 03:34:58 AM »


This terrain piece in the picture is of 64x12 pixels and has the following nxmt

RESIZE_HORIZONTAL
NINE_SLICE_LEFT 2
NINE_SLICE_RIGHT 6

However it does not display properly in the editor. It is missing the right most 6 pixels. When it loads in the player, it displays correctly.

Offline WillLem

  • Posts: 3379
  • Unity isn't sameness, it's togetherness
    • View Profile
Re: [BUG][EDITOR] 9 Slicing doesn't show properly
« Reply #1 on: March 25, 2021, 10:13:42 AM »

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
Re: [BUG][EDITOR] 9 Slicing doesn't show properly
« Reply #2 on: March 27, 2021, 07:54:56 PM »
Thanks. Have locked the old topic since this is closer to the top - but it does raise an important point that this affects objects as well as terrain. (This is useful - they have seperate code for loading nine-slicing data, but share the same code for nine-sliced rendering, so this narrows down what the cause of the issue might be.)
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
Re: [BUG][EDITOR] 9 Slicing doesn't show properly
« Reply #3 on: April 14, 2021, 09:48:47 PM »
Fixed in commit 58c56f5. Was basically an oversight in the code where it was using some (not all) of the left side's data when it should've been using the right's.
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)