Author Topic: [SUG][PLAYER] Resizable terrain  (Read 613 times)

0 Members and 1 Guest are viewing this topic.

Offline namida

  • Administrator
  • Posts: 10301
    • View Profile
    • NeoLemmix Website
[SUG][PLAYER] Resizable terrain
« on: May 08, 2019, 08:25:06 pm »
We already have resizable objects. The most important code for making this happen for terrain - the actual resizable rendering - is very easily reused.

With this in mind, is there any reason not to implement resizable terrain pieces that anyone can think of? (The work involved is not an issue - I'm happy to implement this one.)

Offline GigaLem

  • Discord Server Owner
  • Posts: 1302
  • Discord Server Owner
    • View Profile
Re: [SUG][PLAYER] Resizable terrain
« Reply #1 on: May 08, 2019, 08:44:33 pm »
I thought of this too, but I feel it would've been shot down.
I have a feeling if it were implemented, it'd have a .nxmi file attached containing the strings of text saying
Quote
RESIZABLE_VERTICAL
RESIZABLE_HORIZONTAL

Offline IchoTolot

  • Moderator
  • Posts: 2491
    • View Profile
Re: [SUG][PLAYER] Resizable terrain
« Reply #2 on: May 08, 2019, 08:54:10 pm »
I have nothing against it, but I would advice to officially release a version with the other additions and fixes first and fix the issues that may arise with them and after that move on the next thing.

Offline namida

  • Administrator
  • Posts: 10301
    • View Profile
    • NeoLemmix Website
Re: [SUG][PLAYER] Resizable terrain
« Reply #3 on: May 08, 2019, 09:36:12 pm »
I thought of this too, but I feel it would've been shot down.
I have a feeling if it were implemented, it'd have a .nxmi file attached containing the strings of text saying
Quote
RESIZABLE_VERTICAL
RESIZABLE_HORIZONTAL

I'd prefer to keep it consistent with objects, so it'd be "RESIZE_HORIZONTAL" (etc), not "RESIZABLE_HORIZONTAL". Also, terrain metainfo files have an "nxmt" extension.

Offline GigaLem

  • Discord Server Owner
  • Posts: 1302
  • Discord Server Owner
    • View Profile
Re: [SUG][PLAYER] Resizable terrain
« Reply #4 on: May 08, 2019, 11:23:06 pm »
I thought of this too, but I feel it would've been shot down.
I have a feeling if it were implemented, it'd have a .nxmi file attached containing the strings of text saying
Quote
RESIZABLE_VERTICAL
RESIZABLE_HORIZONTAL

I'd prefer to keep it consistent with objects, so it'd be "RESIZE_HORIZONTAL" (etc), not "RESIZABLE_HORIZONTAL". Also, terrain metainfo files have an "nxmt" extension.
I was going off memory so my bad :P but it'd probably be this

Offline namida

  • Administrator
  • Posts: 10301
    • View Profile
    • NeoLemmix Website
Re: [SUG][PLAYER] Resizable terrain
« Reply #5 on: May 28, 2019, 05:33:34 am »
The branch feature/resizable-terrain on my repo implements this feature, including with nine-slicing support. In the process of writing this, I also slightly tidied up the resizability code for objects and the general orientation code for terrain; these improvements have been ported back to the master branch.

I have not yet implemented editor support, for two reasons:
1. The editor master branch doesn't have nine-slicing support yet
2. Passing everything to the constructors in the editor code is starting to get really messy; I'm wondering if this way of working should be revised before any further new features are implemented in it...

EDIT: If I remember correctly, I had to delete this because it became too incompatible with other changes - but shouldn't be too tricky to re-implement again at some point.
« Last Edit: November 06, 2019, 06:06:52 pm by namida »