Rotate inventory image

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Rotate inventory image

by Don » Tue Oct 21, 2014 14:45

I would like to see the ability to rotate an inventory cube image. Instead of the cube showing top,front,right, allow modders to choose the sides. This will allow better veiws of different nobeboxes such as those in noncubic or cnc machine. Also with Rubenwardy's awesome NodeBox Editor there are many new nodeboxes now.
Example
x = 1 (right side)
x = -1 (left side)
y = 1 (top)
y = -1 (bottom)
z = 1 (front)
z = -1 (back)
Something like this,
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
inventory_image = {x = 1, y = 1, z = 1}
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Rotate inventory image

by Krock » Tue Oct 21, 2014 17:21

Mostly, the nodeboxes are designed, so they will be displayed correctly in the inventory.
I don't see a big use in that new feature.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Rotate inventory image

by Don » Tue Oct 21, 2014 18:07

Krock wrote:Mostly, the nodeboxes are designed, so they will be displayed correctly in the inventory.
I don't see a big use in that new feature.

If you look at things like upper corners, they don't look all that great. If it showed the front,right and bottom you would be able to see the shape better.
Also, if you make a nodebox the wrong way you can easily change the inventory cube without having to re do the nodebox. As an example, I made a few nodeboxes and I made them with the back and right side as the faces that you don't see. I understand that this is slopy of me but it happens. The inventory cube looks bad. now I have to change the nodeboxes so they look right.
This is not something that I think is a big deal, just something I think would improve modding a bit.

If you look at noncubic or the cnc machine you will see what I mean.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Rotate inventory image

by rubenwardy » Tue Oct 21, 2014 21:28

Isn't there a function that allows you to do this like Minetest.inventory_cube?
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Rotate inventory image

by Don » Tue Oct 21, 2014 22:29

rubenwardy wrote:Isn't there a function that allows you to do this like Minetest.inventory_cube?

inventory_cube is used to add images to the cube. It would work for regular cubes but not for nodeboxes. You can also use inventory_image to change the image.

I think it would be useful but not a priority. I was just putting the idea out there. Besides, even if it was decided to add it, I still have to fix my nodeboxes. Made them when I was still half asleep.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: Rotate inventory image

by Hybrid Dog » Tue Nov 04, 2014 18:59

You could spawn a cubic entity behind your inventory slot where you have the item.
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Rotate inventory image

by Don » Tue Nov 04, 2014 21:47

Not sure what you mean?
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: Rotate inventory image

by Hybrid Dog » Wed Nov 05, 2014 18:07

Don wrote:Not sure what you mean?
Image
Attachments
screenshot_2166005172.png
screenshot_2166005172.png (246.82 KiB) Viewed 555 times
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Rotate inventory image

by Don » Wed Nov 05, 2014 18:47

What I am referring to I how the cube is displayed in the inventory no spawning behind. It would help to show the cube better in the inventory.
An inventory image will be good enough
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 18 guests

cron