Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Simon

#1
Hi, I'm creating a GUI for an application used to create random level layouts.

I'm trying to connect a button using member functions and member variables. I tried following some other topics and the introduction to signals post but to to avail.

Here is some code to show what I'm trying to do:
   m_buttonGenerateRW->connect("pressed", &App::generateRW,
&instance,
m_ebMaxWalkers,
m_ebFillPercentage,
m_ebChanceToChangeDirection,
m_ebChanceStartAlive,
m_ebChanceToDestroyWalker,
m_ebChanceToSpawnNewWalker);



m_buttonGenerateCA->connect("pressed", &App::generateCA,
&instance,
m_ebNumSimulationSteps,
m_ebBirthLimit,
m_ebDeathLimit,
m_ebChanceStartAlive);


Any help would be greatly appreciated,

Simon