I am posting this here since I figure this is a simple enough request. Basically what I am trying to do is get the number of a panel element to be used as a pointer. I KNOW this is possible since the engine has no problem retrieving information using PANEL->element type->element number, I just dont know how to do it. what I am trying to achieve is when the clicks a panel element it would set a variable to its current ID number. I have a list of servers that get retrieved (which are created at runtime) and their information is stored in an internal array. I am attempting to access the information in that array via button number (ex. return = array[button number]
Last edited by exile; 07/12/1200:11.
Re: How to return the number of an element?
[Re: exile]
#404630 07/12/1203:4407/12/1203:44
that's all, Acknex Engine sets this parameters by itself
Btw.: This parameters are optional - you f.e. could use just butt_num or just pan. I hope that in future we will be able to create such optional parameters by our own..
void DoFoo(int FooA, int FooB, int FooC)
{
//do something badass
}
void DoFoo(int FooA, int FooB)
{
DoFoo(FooA, FooB, MyDefault);
}
void DoFoo(int FooA)
{
DoFoo(FooA, MyDefault);
}
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
Re: How to return the number of an element?
[Re: Rackscha]
#404647 07/12/1212:1607/12/1212:16