Gamestudio Links
Zorro Links
Newest Posts
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/07/26 15:14
Zorro locks DLL
by jcl. 01/07/26 13:33
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 22,335 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joe_kane, Namitha_NN, Syndrela, agasior, mosfet
19189 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Entity-Pointer #139893
07/06/07 12:45
07/06/07 12:45
Joined: Aug 2005
Posts: 31
F
friebo Offline OP
Newbie
friebo  Offline OP
Newbie
F

Joined: Aug 2005
Posts: 31
Hallo,
was mache ich falsch, bzw. warum funktioniert das nicht.

entity* test; // Panel-Entity
bmap test_pcx = <test.pcx>;
string test_string[80];

panel test_panel {
bmap = test_pcx;
layer = 3; pos_x = 0; pos_y = 0;
}

function main() {

str_cpy(test_string,"test_panel");
test = test_string;
test.visible = on;

oder

test = test_panel;
test.visible = on;

oder

test = "test_panel";
test.visible = on;

oder

test = handle ("test.panel");
test.visible = on;

test = handle (test.panel);
test.visible = on;

oder

str_cpy(test_string,"test_panel");
test = handle (test_string);
test.visible = on;

}

Nicht eine Variante funktioniert.
Vielen Dank

Re: Entity-Pointer [Re: friebo] #139894
07/06/07 12:58
07/06/07 12:58
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
Soweit ich weiss kann man einem Panel keinen Entity Pointer hinzufügen...
Wenn du einfach nur das Panel Visible/Invisible machen willst dann mach das so:

Code:

Panel Test_pan
{
bmap=test_pcx;
Layer=3;
Pos_X=0;
Pos_Y=0;
flags=visible;
}

Function Panel_Invisible
{
Test_Pan.visible=off;
}

Function Main
{
load_level ("Dein Level.wmb");
wait(1);
on_Space=Panel_Invisible(); //Wenn du nun Space(Leertaste) drückst, wird das Panel unsichtbar
}



Hoffe ich konnte dir damit was helfen

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: Entity-Pointer [Re: rvL_eXile] #139895
07/06/07 14:55
07/06/07 14:55
Joined: Aug 2005
Posts: 31
F
friebo Offline OP
Newbie
friebo  Offline OP
Newbie
F

Joined: Aug 2005
Posts: 31
Vielen Dank,
wollte jedoch genau der Entity das Panel zuweisen.


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