Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
buttons #147986
08/15/07 03:36
08/15/07 03:36
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

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: oldschoolj] #147987
08/15/07 18:13
08/15/07 18:13
Joined: Mar 2007
Posts: 75
Hamburg, Ger
Altimeter Offline
Junior Member
Altimeter  Offline
Junior Member

Joined: Mar 2007
Posts: 75
Hamburg, Ger
try:
button = 250,18,....NULL;

Re: buttons [Re: Altimeter] #147988
08/15/07 18:35
08/15/07 18:35
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

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
O
Ottawa Offline
User
Ottawa  Offline
User
O

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
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

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
O
Ottawa Offline
User
Ottawa  Offline
User
O

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
O
Ottawa Offline
User
Ottawa  Offline
User
O

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
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

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: oldschoolj] #147994
08/16/07 22:49
08/16/07 22:49
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

I've got another one (situation)

digits = ............;
digits (....);
digits .......;

All these situations work in my game.:)
tested them...
One is surly the right way.
Ottawa

Re: buttons [Re: Ottawa] #147995
08/17/07 01:19
08/17/07 01:19
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

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

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1