Gamestudio Links
Zorro Links
Newest Posts
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
TMFs on options in live trading
by Spirit. 03/26/26 19:52
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, ApprenticeInMuc, Grant), 4,274 guests, and 20 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Geir, ondrej, mredit, vestriaa, Lukudo
19206 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: 600
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 600
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