|
Re: load bmaps in a function?
[Re: FutureRaptor]
#360682
02/26/11 04:06
02/26/11 04:06
|
Joined: Aug 2007
Posts: 1,922 Schweiz
Widi
Serious User
|
Serious User
Joined: Aug 2007
Posts: 1,922
Schweiz
|
set this in your function:
dt_splash_bmp = bmap_createblack(500,45,32); bmap_fill (dt_splash_bmp,vector(0,0,0),70); PANEL* my_pan = pan_create ("bmap = dt_splash_bmp; red = 255; green = 0; blue = 0", 102);
dt_splash_bmap: I have problems if i create this pointer inside the function, so i create it outside:
BMAP* dt_splash_bmap;
Maybee another can help here...
Last edited by Widi; 02/26/11 04:07.
|
|
|
Re: load bmaps in a function?
[Re: Widi]
#360743
02/26/11 18:00
02/26/11 18:00
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
You can create bmaps with bmap_create, and panels with pan_create. If you want to do both in one step you can use:
pan_create ("bmap = \"mybitmap.bmp\";",1337);
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: load bmaps in a function?
[Re: FutureRaptor]
#360866
02/27/11 16:33
02/27/11 16:33
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Please be more specific. You can't place a bitmap at all. Placing a panel is simple by changing its pos_x and pos_y values. The layer can be changed by defining it in pan_create. See the manual for more information.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: load bmaps in a function?
[Re: hopfel]
#360898
02/27/11 19:20
02/27/11 19:20
|
Joined: Aug 2007
Posts: 1,922 Schweiz
Widi
Serious User
|
Serious User
Joined: Aug 2007
Posts: 1,922
Schweiz
|
my_pan.pos_x = 500;
Why that don`t work in a function? Works perfectly.
Last edited by Widi; 02/27/11 19:21.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|