|
|
buttons
#147986
08/15/07 03:36
08/15/07 03:36
|
Joined: Aug 2005
Posts: 390 Florida
oldschoolj
OP
Senior Member
|
OP
Senior Member
Joined: Aug 2005
Posts: 390
Florida
|
Hi there, are we allowed to define bitmaps first for panel buttons, or do we have to do this in the button line? I seem to be getting weird syntax errors when it seems that it shouldnt be.
here is a define at the begginning of the script for a bitmap:
BMAP* TXTSPELLTABOVR_bmap = "TXTSPELLTABOVR.BMP";
and the corresponding button code:
PANEL* SPELLSMAP_panel = { ..... button(250,18,TXTSPELLTABOVR_bmap,TXTSPELLTABOFF_bmap,TXTSPELLTABOVR_bmap,openSpellInvPanels,NULL,NULL);
the syntax error I'm recieving is for "invalid character" and after TXTSPELLTABOVR_bmap its shows "^" like this TXTSPELLTABOVR_bmap^. Does anyone know what this means?
Thanks!
you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe.
__________________________________
yours truly
|
|
|
Re: buttons
[Re: Altimeter]
#147988
08/15/07 18:35
08/15/07 18:35
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi oldschoolj!  In your panel definition did you write bmap = ...... pos_x = ...; pos_y = ....; (dot for shortcut to your words)
|
|
|
Re: buttons
[Re: Ottawa]
#147989
08/15/07 23:32
08/15/07 23:32
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi again Oldschoolj!  Here's a button code from my game : BMAP* note_1_R = "une_note_rouge.pcx"; BMAP* note_1_V = "une_note_verte.pcx"; PANEL* une_note = { pos_x = 8; pos_y = 96; layer = 7; alpha = 100; button = 0,0,note_1_R,note_1_R,note_1_V,choix_un_son,null,null; flags = OVERLAY; } Hope this helps  Ottawa
|
|
|
Re: buttons
[Re: Ottawa]
#147990
08/15/07 23:43
08/15/07 23:43
|
Joined: Aug 2005
Posts: 390 Florida
oldschoolj
OP
Senior Member
|
OP
Senior Member
Joined: Aug 2005
Posts: 390
Florida
|
hey ottawa, question, how come buttons work for you without parenthesis, they work for me only with parenthesis? and the manual shows them. Do you have a different version that allows this?
you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe.
__________________________________
yours truly
|
|
|
Re: buttons
[Re: oldschoolj]
#147991
08/15/07 23:49
08/15/07 23:49
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Your right  I know they work very well because I've got alot of them. I'll look into this.  I'm working with 7.04 Pro. Ottawa. Will be back tomorow.
|
|
|
Re: buttons
[Re: Ottawa]
#147992
08/16/07 13:49
08/16/07 13:49
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi again!  I looked at the manual and found many pages of button () and button = search for skill_pan to find the page with button = wounder which one is the correct or fastes one? Did you find a solution to your problem? Ottawa 
|
|
|
Re: buttons
[Re: Ottawa]
#147993
08/16/07 13:59
08/16/07 13:59
|
Joined: Aug 2005
Posts: 390 Florida
oldschoolj
OP
Senior Member
|
OP
Senior Member
Joined: Aug 2005
Posts: 390
Florida
|
yes I did, JCL may not seem to think so, but I see alot of weird things go on in litec, for no apparent reason, lol. It's ok because I'm sure that the kinks will get worked out eventually.
you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe.
__________________________________
yours truly
|
|
|
Re: buttons
[Re: Ottawa]
#147995
08/17/07 01:19
08/17/07 01:19
|
Joined: Aug 2005
Posts: 390 Florida
oldschoolj
OP
Senior Member
|
OP
Senior Member
Joined: Aug 2005
Posts: 390
Florida
|
hmm i don't see anything that shows you can do it that way, what manual do you have and version? Maybe it's a glich in the matrix?
you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe.
__________________________________
yours truly
|
|
|
|