Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Clicking Buttons...Need Help! Lost most of my code!

Author
Message
Brent_Seraphim
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: United States
Posted: 2nd Feb 2003 03:49
I can't wait for the next patch for DarkBasic. Perhaps it will fix some of the 'save' functions. Well, I lost my Main Menu file through some gay cruel error...anywayz this file contained my Main Game menu. And as it stands when I decided to start over on it I can't for the life in me remember how to "Click a button".

Ok lets say I loaded my Menu image to the screen, then I brought the mouse over button on the image and clicked. How could I tell if the mouse x and y where over that button? Orginally I got the code Idea from a post about text rollovers. But I cant find that orginal post for the life of me either. Any Ideas you guyz could have would be greatly appreicated.
"Laugh to scorn the power of man..."
Brent_Seraphim
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: United States
Posted: 2nd Feb 2003 05:13
Never Mind guyz, I got a blast of Newbish insight and figured it out...

"Laugh to scorn the power of man..."
Epidemicz
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 2nd Feb 2003 05:34
Ah, heh gotta love that newbish insight!

Was this what you were talking about?

If so, then here is an example for somone else who doesn't know what you are talking about, heh.



I am the very disease you pretend to be.
Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 2nd Feb 2003 20:02
"Well, I lost my Main Menu file through some gay cruel error"

That would be the one called "I don't back-up my work"

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Brent_Seraphim
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: United States
Posted: 2nd Feb 2003 20:37
Aye...,

but whats the difference between saving the project and saving the source? Several times I've saved all closed down DBP and came back to find nothing was saved.

"Laugh to scorn the power of man..."
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 2nd Feb 2003 22:08
It's been documented that the IDE sometimes, in extremes either wipes your save files or replaces code. Just keep clicking "save all" and it won't happen.

PS - check out all of those .bak's created in your source directory - they're backups of your source.

Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
Epidemicz
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 3rd Feb 2003 03:00
@ Rich:

lmao

@ Everyone else:

Yeah I have this problem all the time, I just copy all the source before I close db out and re-open it to see if it all saved correctly. Most of the time when I hit save all it will work. Then again sometimes it doesn't.

I am the very disease you pretend to be.
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Feb 2003 05:48
check to see if the bak file has a copy of your older code.

Brent_Seraphim
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: United States
Posted: 3rd Feb 2003 06:10
Its kool, Thank God I split my functions off into a different Dbpro file. All I lost was my Main Menu Calling Loop thinga majig'. I've rewritten it better. So in the end I learned more. However I've been paranoid about DBPro not saving, resulting in me pressing save TOO MANY TIMES!

"Laugh to scorn the power of man..."

Login to post a reply

Server time is: 2024-04-18 10:43:13
Your offset time is: 2024-04-18 10:43:13