![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on lua option menu? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; k what i wanna do if youve been folowing my code thus far is make like a start menu so ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 | |
![]() ![]() Developer
|
k what i wanna do if youve been folowing my code thus far is make like a start menu so i went to paint and made 3 images 1 without anything haveing been chosen and the 2nd image choose the top choice and 3rd image choose bottom choice but they both go to the same thing so i hope you understand that what i want to do is go to a menu choose between the 2 (which go to the same thing) then by pressing x it takes me there and the controls reset to what has been coded as you can see i had began writing it when i realized i had no idea how to reset the controls or make it go and start that line so i am ganna post my most current code:
Quote:
__________________
1. Failed....again... 2. http://slicer.gibbocool.com/ stay updated on all my projects |
|
|
|
|
|
|
#2 | |
![]() ![]() Developer
|
Quote:
__________________
![]() F.A.L.O?
|
|
|
|
|
|
|
#3 |
![]() ![]() Developer
|
first off when i do use search it seems to come up with nutin or do u mean google it which i dont know if it will help me very much(google) and i posted in that thread and they never helped me so i just thought it better to make my own thread and get responded to faster
but if you want me to hold off for the posts for a little bit then i will i just learn the stuff and then wanna do more so thats why i ask this stuff and so far my stuff is working good
__________________
1. Failed....again... 2. http://slicer.gibbocool.com/ stay updated on all my projects Last edited by slicer4ever; 10-21-2005 at 09:42 PM.. |
|
|
|
|
|
#4 |
|
Yeah i havent been able to actually find anything using the searchbar either...
I think thats justifiable, but im not even CLOSE to being a mod so I have no say in the matter. But anywhoo, You should clear the screen first then load the parameters and controls using WHILE 1(); so these controls are active looping while redball actions are in effect...Sry im sort of a newbie coder so dont flame me if im wrong!
__________________
Cover your eyes and run... gmansixfo= STEPMANIA LEGEND!!
|
|
|
|
|
|
|
#5 |
|
Here's what you're looking for this is how i've coded my options menu although you'll have to modify it to get it to work it won't be that difficult. But, since i have all my files and everything it calls it works perfectly.
Code:
function optionmenu()
selectedoption = 1
oldoptionpad = Controls.read()
loopoptionmenu = true
while loopoptionmenu do
if selectedoption == 1 then
screen:blit(0, 0, optionmenu1)
screen.waitVblankStart()
end
if selectedoption == 2 then
screen:blit(0, 0, optionmenu2)
screen.waitVblankStart()
end
oldoptionpad = Controls.read()
if optionpad ~= oldoptionpad then
if optionpad:down() then
selectedoption = selectedoption + 1
click:play()
if selectedoption > 2 then
selectedoption = 1
end
end
if optionpad:up() then
selectedoption = selectedoption - 1
click:play()
if selected option < 1 then
selectedoption = 1
end
end
if optionpad:cross() then
if selectedoption == 1 then
screen:clear()
credits()
screen:clear()
mainmenu()
looppoptionmenu = false
end
if selectedoption == 2 then
screen:clear()
mainmenu()
loopoptionmenu = false
end
end
oldoptionpad = optionpad
end
screen.waitVblankStart()
screen.flip()
end
end
|
|
|
|
|
|
|
#6 |
|
Dont forget the semi colons...does it not show them in the code box?? hmmm
__________________
Cover your eyes and run... gmansixfo= STEPMANIA LEGEND!!
|
|
|
|
|
![]() |
| Tags |
| lua , menu , option |
| Thread Tools | |
|
|