|
Re: How to return the number of an element?
[Re: exile]
#404630
07/12/12 03:44
07/12/12 03:44
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
Expert
|
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
void button_function(var butt_num, PANEL* pan) 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..
Last edited by Espér; 07/12/12 03:47.
|
|
|
Re: How to return the number of an element?
[Re: Espér]
#404642
07/12/12 11:18
07/12/12 11:18
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
Serious User
|
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
you create them by overloading.
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
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|