0 registered members (),
18,767
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
[SOLVED] Show model over panel
#339990
08/30/10 17:17
08/30/10 17:17
|
Joined: Sep 2009
Posts: 1,032 Budapest
Aku_Aku
OP
Serious User
|
OP
Serious User
Joined: Sep 2009
Posts: 1,032
Budapest
|
I made a panel, it covers the whole screen. I put a model (an entity) onto the screen, and i can't see that. I thought the problem is the layer setting. I set the panel's layer to 1 in definition, and the entity's layer to 2 with layer_sort. I can't see the entity. What did i do wrong?
Last edited by Aku_Aku; 08/31/10 19:59.
|
|
|
Re: Show model over panel
[Re: Aku_Aku]
#339991
08/30/10 17:20
08/30/10 17:20
|
Joined: Nov 2009
Posts: 89 Germany, NRW
TrackingKeks
Junior Member
|
Junior Member
Joined: Nov 2009
Posts: 89
Germany, NRW
|
I think you have to use ent_createlayer to make the model laying about the panel.
Last edited by TrackingKeks; 08/30/10 17:21.
Gamestudio: A7.82 Commercial/A8 Commercial System specs (Laptop): Windows 7 64bit DirectX v10.1 Intel Core i7-720QM CPU @ 1,60 GHz 4GB DDR2 Ram NVIDIA GeForce GT 230M (1024MB)
|
|
|
Re: Show model over panel
[Re: Widi]
#340024
08/30/10 22:22
08/30/10 22:22
|
Joined: Sep 2009
Posts: 1,032 Budapest
Aku_Aku
OP
Serious User
|
OP
Serious User
Joined: Sep 2009
Posts: 1,032
Budapest
|
|
|
|
Re: Show model over panel
[Re: Aku_Aku]
#340044
08/31/10 00:52
08/31/10 00:52
|
Joined: Oct 2004
Posts: 900 Lgh
rojart
User
|
User
Joined: Oct 2004
Posts: 900
Lgh
|
There you go!
#include <default.c>
function main()
{
level_load("");
PANEL* p1 = pan_create(NULL,1);
pan_setdigits(p1,0,30,30,"PANEL 1",font_create("Arial#20"),0,0);
pan_setwindow(p1,0,20,20,330,440, bmap_fill(bmap_createblack(64,64,32),COLOR_GREY,100), 0, 0);
set(p1,SHOW);
PANEL* p2 = pan_create(NULL,3);
pan_setdigits(p2,0,420,30,"PANEL 2",font_create("Arial#20"),0,0);
pan_setwindow(p2,0,400,20,300,440, bmap_fill(bmap_createblack(64,64,32),COLOR_GREY,100), 0, 0);
set(p2,SHOW);
you = ent_createlayer(SPHERE_MDL,0,2);
you.x = 50;
you = ent_createlayer(CUBE_MDL,0,4);
you.x = 100;
you.y = -30;
}
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|