Log in

I forgot my password

Latest topics
» Could someone point me to a sprite rotation tutorial, please?
Mon Feb 18, 2013 6:53 pm by sckuz254

» RR archive 2
Sun Dec 02, 2012 4:20 pm by losdelsur16

» [ULUS-10310]MoHH2 Uni Instant NukeBoom
Tue Jul 12, 2011 6:52 pm by m33masterBad

» Some vip releases and more
Tue Jul 12, 2011 6:47 pm by m33masterBad

» Mohh2 no fog code.
Tue Jul 12, 2011 6:42 pm by m33masterBad

» instant nade guide
Tue Jul 12, 2011 6:31 pm by m33masterBad

» m33masterBad's Here
Sat Jul 02, 2011 5:35 pm by m33masterBad

» How to teach yourself and try and make templates
Sat Nov 13, 2010 4:56 pm by Jordan

» Making Universal Weapon Mods, Find Weapon Value
Thu Oct 07, 2010 4:02 am by mafiafran

» [ULUS-10141] Jokered Flash Sprint (My first Joker)
Thu Oct 07, 2010 4:02 am by mafiafran

» INF PMNS AND CLAYMORES
Thu Oct 07, 2010 4:02 am by mafiafran

» im back
Wed Aug 18, 2010 12:42 pm by SXYxJeff

» ADMIN APPLICATION
Fri Jul 30, 2010 7:48 pm by NiekTSK

» Ps2dis begginers guide - how to make a basic subroutine
Fri Jul 23, 2010 4:02 pm by pspguy1234290

» Hey
Mon Jul 19, 2010 3:29 pm by SXYxJeff

Top posters
Nick (454)
 
MJKT (419)
 
RappY (318)
 
tHaTdiRTykID (232)
 
CrAzY Gamer (194)
 
XxMIRAGExX (135)
 
EEL007 (128)
 
NiekTSK (124)
 
Battle Star (105)
 
TYLER108 (99)
 

Who is online?
In total there are 4 users online :: 0 Registered, 0 Hidden and 4 Guests

None

[ View the whole list ]


Most users ever online was 95 on Tue Aug 01, 2017 7:44 pm

LUA menu

View previous topic View next topic Go down

LUA menu

Post by MJKT on Wed Jul 22, 2009 2:00 pm

ok so first load all your colors and have a background picture Very Happy

then enter your chosen menu options here

and where it says

if current == 1 then

you just upt stuff under that to so when you press on current 1 (menu option 1)

eg.

if you put this

if current == 1 then
screen:print(174,115,"HELLO",green)

it would say HELLO when you click on menu option 1


red = Color.new(255, 0, 0)
pink = Color.new(255, 0 , 153)
blue = Color.new(0 , 153, 255)
orange = Color.new(255, 102, 0)
gray = Color.new(153, 153, 153)
black = Color.new(0 , 0 , 0)
white = Color.new(255,255 ,255)
green = Color.new (0,255,0)
background = Image.load("ms0:/PSP/GAME/")


current = 1
oldpad = Controls.read()
while true do
pad = Controls.read()
screen:clear()


function Start()
screen.waitVblankStart()
screen:clear(white)

if current == 1 then



else if current == 2 then



else if current == 3 then


else if current == 4 then

else if current == 5 then





end
end
end
end
end


screen.flip()
end

screen:blit(0,0,background)
screen:print(177,105,"Menu option 1",green)
screen:print(174,115,"2",green)
screen:print(185,125,"3",green)
screen:print(203,135,"4",green)
screen:print(215,145,"5",green)


if current == 1 then
screen:print(177,105,"Menu option 1",white)
end
if current == 2 then
screen:print(174,115,"2",white)
end
if current == 3 then
screen:print(185,125,"3",white)
end
if current == 4 then
screen:print(203,135,"4",white)
end
if current == 5 then
screen:print(215,145,"5",white)
end


if pad:up() and oldpad:up() ~= pad:up() then
current = current - 1
end

if pad:down() and oldpad:down() ~= pad:down() then
current = current + 1
end

if pad:cross() then
Start()
end

if current == 6 then
current = 1
end

if current == 0 then
current = 5
end

screen.waitVblankStart()
screen.flip()
oldpad = pad
end



make sure this and this color are different

_________________






here to help Razz

Mohh2 ID : iMJKT
avatar
MJKT
Admin

Posts : 419
Join date : 2009-04-25
Age : 22
Location : The UK

http://pspcoding.darkbb.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum