Lemmings Forums

NeoLemmix => NeoLemmix Main => Archived Bugs & Suggestions => Topic started by: Flopsy on March 25, 2021, 03:34:58 AM

Title: [BUG][EDITOR] 9 Slicing doesn't show properly
Post by: Flopsy on March 25, 2021, 03:34:58 AM
(https://i.imgur.com/TqY0ZGP.png)

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.
Title: Re: [BUG][EDITOR] 9 Slicing doesn't show properly
Post by: WillLem on March 25, 2021, 10:13:42 AM
Duplicate topic. (https://www.lemmingsforums.net/index.php?topic=5355.msg89249#msg89249)
Title: Re: [BUG][EDITOR] 9 Slicing doesn't show properly
Post by: namida 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.)
Title: Re: [BUG][EDITOR] 9 Slicing doesn't show properly
Post by: namida 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.