Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
06-18-2008, 07:36 AM
|
#1
|
|
Variable Bitrate
Join Date: Jul 2007
Location: Ireland
Vehicle: 2006 Skoda Superb
Posts: 303
|
Press & Hold Button - Question
I'm trying to have seperate day and night background images stored in my skin file, which can then be called from elsewhere in the skin. It's working to a point but I keep having an issue with the "Press & Hold" function.
On my BG browser I have a button called "Day", which has this code
B15,615,343,170,75,"LOADBG1",@SETBG1@
and in exectbl.ini the following commands are defined
"LOADBG1","SAVETOSKIN;BACKGROUND;$BKGND1$||RELOADS KIN"
"SETBG1","SETVARBYCODE;BKGND;LISTTEXT||SAVETOSKIN; BKGND1;$picspath$\$BKGND$||CNF_BKG1"
"CNF_BKG1","WRITETOFILE;$skinpath$confirm.txt; =/DEFINE CONFIRMTEXT New Background Set||WAIT;0.5||MENU;confirm.skin"
Here's the issue. With the code this way, the background is not saved correctly to my skin file, it misses the actual filename so all that gets stored is "BKGND1=C:\Car\Background\\" ... but if I remove the "||CNF_BKG1" or change the button command to be B15,615,343,170,75,"SETBG1",@LOADBG1@ it works perfectly. I would really like to have the "Load" function on press and "Set" function on the press & hold ...
Any idea's why this ain't working ... ???
__________________
-------------------------------
Check out the TEKNIK skins here
|
|
|
06-18-2008, 08:29 AM
|
#2
|
|
FLAC
Join Date: Aug 2006
Location: Sun Diego
Vehicle: 2001 A4 1.8TQMS
Posts: 917
|
i don't see why it shouldn't be working.
Try this:
B15,615,343,170,75,"LOADBG1",@SETBG1||CNF_BKG1@
ExecTBL.ini:
Code:
"LOADBG1","SAVETOSKIN;BACKGROUND;$BKGND1$||RELOADS KIN"
"SETBG1","SETVARBYCODE;BKGND;LISTTEXT||SAVETOSKIN; BKGND1;$picspath$\$BKGND$"
"CNF_BKG1","WRITETOFILE;$skinpath$confirm.txt; =/DEFINE CONFIRMTEXT New Background Set||WAIT;0.5||MENU;confirm.skin"
.
|
|
|
06-18-2008, 08:47 AM
|
#3
|
|
FLAC
Join Date: Feb 2005
Location: Los Angeles
Vehicle: 2005 Chrysler 300
Posts: 1,320
|
Here is my command for that...
Code:
B01,599,506,101,82,"SETVARBYCODE;Background;$NightBackground$||SAVETOSKIN;Background;$NightBackground$||RELOADSKIN||NIGHTGAMMA",@SETVARBYCODE;Background;$DayBackground$||SAVETOSKIN;Background;$DayBackground$||RELOADSKIN||DAYGAMMA@
|
|
|
06-18-2008, 08:56 AM
|
#4
|
|
Variable Bitrate
Join Date: Jul 2007
Location: Ireland
Vehicle: 2006 Skoda Superb
Posts: 303
|
@Sal-R : tried that ... still the same
@MGD : your code is exactly what I'm trying to do, but it's the step before that code that aint working, where I would set the $NightBackground$ variable etc if it was your skin ...
thanks for the suggestions tho ...
__________________
-------------------------------
Check out the TEKNIK skins here
|
|
|
06-18-2008, 09:13 AM
|
#5
|
|
FLAC
Join Date: Feb 2005
Location: Los Angeles
Vehicle: 2005 Chrysler 300
Posts: 1,320
|
I forgot to mention, I have a background_Browser.skin where you can set the background for Day and Night and then recall the value. I attach the skin with the code so you can take a look. Just copy it to your skin folder and call the background_browser.skin
|
|
|
06-18-2008, 09:22 AM
|
#6
|
|
FLAC
Join Date: Aug 2006
Location: Sun Diego
Vehicle: 2001 A4 1.8TQMS
Posts: 917
|
Umm...is there supposed to be a space b/w the ";" and the "=" in the CNF_BKG1 command?
Cuz I just tried your code w/o the space in my mock-up background skin and the press and hold worked...
|
|
|
06-18-2008, 10:27 AM
|
#7
|
|
Road Runner & Mp3car Gatherings Moderator
Join Date: Sep 2005
Location: West Palm Beach, Florida
Vehicle: 99 Mitsubishi Eclipse
Posts: 2,794
|
It is a well known forum problem. The forum will break extra long lines with a space. The only way to prevent this from happening is to wrap them in the code/php tags.
|
|
|
06-18-2008, 10:52 AM
|
#8
|
|
Variable Bitrate
Join Date: Jul 2007
Location: Ireland
Vehicle: 2006 Skoda Superb
Posts: 303
|
hey guys ...
I've tried just about everything I can, includeing replicating MGD's code etc and still no joy ... whenever I add the code for the Confirmation popup, the data is not saved correctly. BTW i'm using the beta RR version with fixed weather - if that makes any difference.
back to the drawing board - and more scratching of the head for while 
__________________
-------------------------------
Check out the TEKNIK skins here
|
|
|
06-18-2008, 11:12 AM
|
#9
|
|
FLAC
Join Date: Feb 2005
Location: Los Angeles
Vehicle: 2005 Chrysler 300
Posts: 1,320
|
I have no clue on what you're doing, mine works with the newest Beta.
What is not saved? DO you have the path to the backgounds set in the browser?
Last edited by MGD : 06-18-2008 at 11:14 AM.
|
|
|
06-18-2008, 11:26 AM
|
#10
|
|
FLAC
Join Date: Aug 2006
Location: Sun Diego
Vehicle: 2001 A4 1.8TQMS
Posts: 917
|
Okay...try this. Put it all in one line:
Tried this in the new beta and it works for me...
Code:
"SETBG1","SETVARBYCODE;BKGND;LISTTEXT||SAVETOSKIN; BKGND1;$picspath$\$BKGND$||WRITETOFILE;$skinpath$confirm.txt; =/DEFINE CONFIRMTEXT New Background Set||WAIT;0.5||MENU;confirm.skin"
.
|
|
|
06-18-2008, 11:44 AM
|
#11
|
|
Maximum Bitrate
Join Date: Sep 2007
Posts: 582
|
ooops
|
|
|
06-18-2008, 01:35 PM
|
#12
|
|
Variable Bitrate
Join Date: Jul 2007
Location: Ireland
Vehicle: 2006 Skoda Superb
Posts: 303
|
ok .. got it working, but I had to change the code for the confirmation popup to be this
"CNF_BKG1","SETVAR;CONFIRMTEXT;Day Background Set||MENU;Confirm.skin"
I also changed the confirm skin to use a variable rather than a define code ... not as clean as I'd hoped, but it works.
There was something with the timings between the write to the INI file and the write to the confirm.txt files ... and using WAIT's were causing too much delay in the skin...
thanks for all your help guys ...
__________________
-------------------------------
Check out the TEKNIK skins here
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:19 AM.
|
|