[Mod] XGUI [0.1][xgui]

ashenk69
Member
Posts: 230
Joined: Tue Jul 03, 2012 00:08

[Mod] XGUI [0.1][xgui]

by ashenk69 » Post

I wanted to test the new background formspec addition and I was able to create a new look for the default inventory. This mod only works if you are in normal mode and there are no other inventory mods installed. This is merely a test to see if it is actually possible. It is ,but it isn't easy to get everything perfectly aligned.

License (except for background texture): WTFPL

Background image is from DokuCraft TP from this site: http://minecraftcustomizer.net/pack/Dok ... +Continues

Image
Image
Image

Future Updates:
Check form size
Mod support

Download: http://dl.dropbox.com/u/71911483/xgui.zip
Last edited by ashenk69 on Tue Dec 11, 2012 14:31, edited 1 time in total.

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

by kotolegokot » Post

This looks nice.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
Aqua
Member
Posts: 641
Joined: Wed Aug 22, 2012 09:11
Location: Sydney~Singapore
Contact:

by Aqua » Post

This is wicked! Does this work in 0.4.3 and lower?
Hi there ^.~

User avatar
Menche
Member
Posts: 1001
Joined: Sat Jul 02, 2011 00:43
IRC: Menchers
In-game: Menche
Location: An island in a lava lake.

by Menche » Post

Awesome. Much better than the bland default.
Last edited by Menche on Sun Dec 09, 2012 07:41, edited 1 time in total.
An innocent kitten dies every time you top-post.

User avatar
Mito551
Member
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Post

AMAZING!! YOU MADE MY FREAKING DAY!!

User avatar
RealBadAngel
Member
Posts: 557
Joined: Wed Jul 18, 2012 16:30

by RealBadAngel » Post

heheh glad to see use of my changes to the engine :)
TIP: background image is slightly moved to the left and up by value of spacer/2
this is made so because item is displayed in the top left corner, thx to the shift it will land in exact middle of the square

TIP#2: to get backgrounds fit the grid, make it square. if you expect it to be same sized as coordinates. so, if youre planning to make a background for 4*5 sized formspec area, in 16px resolution, background image shall be sized 4*16 x 5*16

another example of usage:
Image
Last edited by RealBadAngel on Sun Dec 09, 2012 10:21, edited 1 time in total.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Aqua wrote:This is wicked! Does this work in 0.4.3 and lower?
It requires 0.4.4

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Can you do some inventory texture in the default style? I am looking for something to add it to upstream.

User avatar
xyz
Member
Posts: 450
Joined: Thu Nov 10, 2011 14:25

by xyz » Post

ashenk69 wrote:License: WTFPL
How can it be WTFPL if you took textures from DokuCraft?

ashenk69
Member
Posts: 230
Joined: Tue Jul 03, 2012 00:08

by ashenk69 » Post

xyz wrote:
ashenk69 wrote:License: WTFPL
How can it be WTFPL if you took textures from DokuCraft?
I am not sure. I am not that great when it comes to choosing the proper license. What should it be?

ashenk69
Member
Posts: 230
Joined: Tue Jul 03, 2012 00:08

by ashenk69 » Post

RealBadAngel wrote:heheh glad to see use of my changes to the engine :)
TIP: background image is slightly moved to the left and up by value of spacer/2
this is made so because item is displayed in the top left corner, thx to the shift it will land in exact middle of the square

TIP#2: to get backgrounds fit the grid, make it square. if you expect it to be same sized as coordinates. so, if youre planning to make a background for 4*5 sized formspec area, in 16px resolution, background image shall be sized 4*16 x 5*16
Depending on the image size and how much you add as a negative margin changes the image size. If I had known this ahead of time, I would have done it even better. You are right about the image being x*16 and y*16, but you also have to account for the negative margin. I used -.5 for x and -.25 for y which for some reason yields the perfect result for hiding the box. This would make the image size if w=8 and h=8 to be 136x136. This would get the correct alignment and everything. You can see in my image that there are some spots where it could be shifted one pixel either direction but because one pixel would push it out of alignment.

ashenk69
Member
Posts: 230
Joined: Tue Jul 03, 2012 00:08

by ashenk69 » Post

PilzAdam wrote:Can you do some inventory texture in the default style? I am looking for something to add it to upstream.
I am not very good at graphics design but if you want it in the style of default minecraft, there's is super simple. Just grey boxes and borders.

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

ashenk69 wrote:I am not sure. I am not that great when it comes to choosing the proper license. What should it be?
You're just not allowed to redistribute DokuCraft textures without the author's permission.
Please ask the author for permission, or use different textures as soon as possible. :)

ashenk69
Member
Posts: 230
Joined: Tue Jul 03, 2012 00:08

by ashenk69 » Post

Calinou wrote: You're just not allowed to redistribute DokuCraft textures without the author's permission.
Please ask the author for permission, or use different textures as soon as possible. :)
I checked the site I got it from and they said as long as I credit that it is from Dokucraft they are fine. I'll also add the link since it is a nice site to get textures from.

User avatar
babe223
Member
Posts: 141
Joined: Mon Nov 14, 2011 13:36
Location: Brasil,Rio de Janeiro

by babe223 » Post

will be that it could be done in the creative inventory?
I wanted a beautiful image for the creative xD
Bem vindos Brasileiros,eu sou primeiro brasileiro daqui do forum, espero que tragam bastante mods

[MOD] torch http://minetest.net/forum/viewtopic.php?id=3021
[MOD]HATCHE:http://minetest.net/forum/viewtopic.php?id=3458

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

ashenk69 wrote:I checked the site I got it from and they said as long as I credit that it is from Dokucraft they are fine. I'll also add the link since it is a nice site to get textures from.
Erm, I was wrong then, I looked, sorry. ;)

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

Can you modify the hotbar with this?
hello, am program. do language in rust. make computer do. okay i go now.

ashenk69
Member
Posts: 230
Joined: Tue Jul 03, 2012 00:08

by ashenk69 » Post

jordan4ibanez wrote:Can you modify the hotbar with this?
No, there still isn't a way to customize the hotbar it stays bland for now.

ashenk69
Member
Posts: 230
Joined: Tue Jul 03, 2012 00:08

by ashenk69 » Post

I updated the first post with new textures. The first one is a template for a 128x128 inventory and the second is a texture I created. I know PilzAdam wanted a texture to upstream as a default.

User avatar
Chinchow
Member
Posts: 684
Joined: Tue Sep 18, 2012 21:37

by Chinchow » Post

Will this mod ever be completed?
Sometimes, it's harder to think up a mod than it is to create it.
Mods: Orichalcum Stonebricks Extra Chests

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

could you make one for unified inventory
Coding;
1X coding
3X debugging
12X tweaking to be just right

ashenk69
Member
Posts: 230
Joined: Tue Jul 03, 2012 00:08

by ashenk69 » Post

I am working on a mod currently that is going to be big for map making and adventure maps.

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Post

Sexy mod, +10 Textures packs can now make the own Inventory guis, Great job ashenk69!

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

ashenk69 wrote:I am working on a mod currently that is going to be big for map making and adventure maps.
what is it
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
Chinchow
Member
Posts: 684
Joined: Tue Sep 18, 2012 21:37

by Chinchow » Post

Will this at some point include creative inventory and furnace
Sometimes, it's harder to think up a mod than it is to create it.
Mods: Orichalcum Stonebricks Extra Chests

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests