Hey everyone. Quick question maybe someone can answer for me.
When you use button.OnClick.Add( def ) your button does as expected. But adding B[/B] the function name will fire off when that line is hit. I can see why that is happening but am wondering if there is a way to pass an arg with the button without having it call that function automatically?
Using button.OnClick.Add( def( arg ) ) will auto-fire, obviously.
Is OnClick is just limited in this way? Am I missing something obvious?
Thoughts? Thanks.
~Travis