[TUT] Boring selection mushroom? Let's fix that.

Mods, guides how to use and install mods go right in here.
Post Reply
User avatar
teryakisan
Posts: 53
Joined: 08 Mar 2012, 06:16
Contact:

Post » 11 Mar 2012, 12:41

It's miniscule and minute. It's so not there that I bet you didn't even notice it. That one little selection indicator has the potential to be anything you want!

I'm going to assumme that you have all of the necessary files to do this successfully. This includes some sort of zipping utility, a copy of mari0.love that has been renamed to mari0.zip, and all of the (unzipped) source files in the same folder. If not, search the forums, the information is there. Explaining every little detail is beyond the scope of this tutorial.

Lets start with a .png image. I made a portal gun. :D
Image

Put the image file in your images/smb folder.

now open main.lua, scroll down to line 171 and change it to read

Code: Select all

 menuselection = love.graphics.newImage("graphics/" .. graphicspack .. "/menuselect_portalgun.png")
Save your changes and don't forget to drop main lua back to the mari0.zip to update.

Since my image is a little wider than the mushroom was, we'll need to make a little more space for it.

Open menu.lua and scroll down to line 282 - 292. You should see this code...

Code: Select all

if selection == 0 then
			love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale)
		elseif selection == 1 then
			love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale )
		elseif selection == 2 then
			love.graphics.draw(menuselection, 81*scale, (137+(selection-1)*16)*scale, 0, scale, scale )
		elseif selection == 3 then
			love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale )
		elseif selection == 4 then
			love.graphics.draw(menuselection, 98*scale, (137+(selection-1)*16)*scale, 0, scale, scale )
		end
We want to make a little more space for the portal gun image so we'll need to adjust the y-offset of the image so its more to the left of the menu. Just change the code to this...

Code: Select all

if selection == 0 then
			love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale)
		elseif selection == 1 then
			love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale,5 )
		elseif selection == 2 then
			love.graphics.draw(menuselection, 81*scale, (137+(selection-1)*16)*scale, 0, scale, scale,5 )
		elseif selection == 3 then
			love.graphics.draw(menuselection, 73*scale, (137+(selection-1)*16)*scale, 0, scale, scale,5)
		elseif selection == 4 then
			love.graphics.draw(menuselection, 98*scale, (137+(selection-1)*16)*scale, 0, scale, scale, 8)
		end
Basically all we are doing here is adding x amount of pixels between the select image and each selection item. Adjust as necessary for your image.

Drag and drop the menu.lua back to the .zip to update and run that bad boy. Your result should be like this..

Image

Excellent now customize it to death!!

User avatar
rAALph SiC
Posts: 46
Joined: 09 Mar 2012, 06:12
Contact:

Post » 11 Mar 2012, 12:46

Nice!

User avatar
trosh
Posts: 1594
Joined: 03 Feb 2012, 08:36

Post » 11 Mar 2012, 14:03

oh god that mushroom is useless and boring. and invisible half the time. good idea.

User avatar
LightningFire
Posts: 1828
Joined: 10 Mar 2012, 17:24
Contact:

Post » 17 Mar 2012, 20:09

Maurice, I think you should change the mushroom for something more like this, or another thing.

FaycalMenouar
Posts: 1069
Joined: 11 May 2012, 18:00

Post » 03 Jun 2012, 11:32

Coool ; would look nice on Mari0

User avatar
mikewalker11
Posts: 6
Joined: 14 Mar 2012, 18:33

Post » 18 Jun 2012, 21:02

or... you can just go into the graphics, and rename the chosen image mushroom.png, or whatever it is.

User avatar
LightningFire
Posts: 1828
Joined: 10 Mar 2012, 17:24
Contact:

Post » 18 Jun 2012, 21:25

mikewalker11 wrote:or... you can just go into the graphics, and rename the chosen image mushroom.png, or whatever it is.
Then error.
You have to do everything that he said so it works.

User avatar
Lawnboy
Posts: 836
Joined: 03 Feb 2012, 02:24

Post » 19 Jun 2012, 03:54

This is a really stupid mod. You couldn't have taken the time to just make a .love?
And also, is the menu selector thingy that awful that it had to be changed? Tsk tsk tsk.

User avatar
Filio
Posts: 185
Joined: 04 Mar 2012, 19:01

Post » 19 Jun 2012, 04:24

LawnboyInAJar wrote:This is a really stupid mod. You couldn't have taken the time to just make a .love?
And also, is the menu selector thingy that awful that it had to be changed? Tsk tsk tsk.
You're calling a mod stupid because it changed something you don't care about? :/

User avatar
Lawnboy
Posts: 836
Joined: 03 Feb 2012, 02:24

Post » 19 Jun 2012, 04:31

Filio wrote: You're calling a mod stupid because it changed something you don't care about? :/
What I was saying was that it was pointless, because it didn't really change the game in a significant way, unlike other mods.

drock595
Posts: 4
Joined: 05 Feb 2012, 00:24

Post » 19 Jun 2012, 09:47

LawnboyInAJar wrote:
Filio wrote: You're calling a mod stupid because it changed something you don't care about? :/
What I was saying was that it was pointless, because it didn't really change the game in a significant way, unlike other mods.
Its a simple little mod for fun to make it a little bit different if you have something custom it can feel good sometimes and its really just the little things some time its not pointless because some people could like it its only pointless to you and all others like you XD

Post Reply