Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (OptimusPrime, AndrewAMD), 14,580 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Horizontal bar not working... #189021
03/17/08 03:01
03/17/08 03:01
Joined: Apr 2004
Posts: 23
B
BOK Offline OP
Newbie
BOK  Offline OP
Newbie
B

Joined: Apr 2004
Posts: 23
I'm trying to make a horizontal bar to represent a variable on my HUD. The bar shows up fine, but it doesn't change at all when the variable changes. Here's my code:

Code:
 panel chargebar{
pos_x=0;
pos_y=0;
window (20,30,600,5,whitebar,chargelevel,0);
flags=overlay,visible,refresh;
}


Some info:
-whitebar is a 600x20 .pcx file
-chargelevel is always between 0 and 100

Does anyone know what the problem could be?

Re: Horizontal bar not working... [Re: BOK] #189022
03/17/08 08:11
03/17/08 08:11
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline
Senior Member
kasimir  Offline
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
i do not know - but your bmap should be 1200 width and the half should be have another color - try this!
if you are using a bmap with 600 lenght and only one color - it will be mirrored on the other side again and your will never see anything!

Re: Horizontal bar not working... [Re: kasimir] #189023
03/21/08 17:25
03/21/08 17:25
Joined: Apr 2004
Posts: 23
B
BOK Offline OP
Newbie
BOK  Offline OP
Newbie
B

Joined: Apr 2004
Posts: 23
Thanks! That did the trick.

I think the manual (A6.60) could have been a little bit clearer on how window() actually works...


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

Gamestudio download | 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