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
0 registered members (), 18,008 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
Change BMP durring runtime. #243840
01/01/09 03:07
01/01/09 03:07
Joined: Sep 2008
Posts: 69
U
upsidedownman Offline OP
Junior Member
upsidedownman  Offline OP
Junior Member
U

Joined: Sep 2008
Posts: 69
Hi, i was trying to change a BMP to another BMP like this bmp_one = bmp_two;
But this doesn't work, is there anyway to do this? I really don't wanna make 100 different panels.
Thanks.

Re: Change BMP durring runtime. [Re: upsidedownman] #243874
01/01/09 11:13
01/01/09 11:13
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Either you define 100 different bmaps and assign them to one (or more) panel(s) at runtime via:
my_panel.bmap = my_bmap42;

Or you could use "bmap_load": http://www.conitec.net/beta/abmap_load.htm
To load a new bitmap into an old bmap object.
Example:
Code:
BMAP* my_bitmap;

function load_NewBitmap()
{
  bmap_load(my_bitmap,"image02.tga",1);
}


hope this helps

Re: Change BMP durring runtime. [Re: Xarthor] #243881
01/01/09 12:26
01/01/09 12:26
Joined: Apr 2008
Posts: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
Austria
Or you use a pointer

BMAP* bmap1 = "image1.tga";
BMAP* bmap2 = "image2.tga";

mypanel.bmap = bmap1;
mypanel.bmap = bmap2;


Re: Change BMP durring runtime. [Re: Petra] #243896
01/01/09 15:09
01/01/09 15:09
Joined: Sep 2008
Posts: 69
U
upsidedownman Offline OP
Junior Member
upsidedownman  Offline OP
Junior Member
U

Joined: Sep 2008
Posts: 69
OK thanks all its working know


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