mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
update bullet so it actually works
Moved the addSourceDirectory for physics/Bullet into the Engine/Source/CMakeLists.txt file that way it can actually appear where we expect it to in the solution explorer.
This commit is contained in:
parent
c7be48130a
commit
13fa178cf6
5986 changed files with 1811270 additions and 453803 deletions
|
|
@ -5,34 +5,28 @@ using namespace Gwen;
|
|||
|
||||
class RadioButton2 : public GUnit
|
||||
{
|
||||
public:
|
||||
|
||||
GWEN_CONTROL_INLINE( RadioButton2, GUnit )
|
||||
public:
|
||||
GWEN_CONTROL_INLINE(RadioButton2, GUnit)
|
||||
{
|
||||
Gwen::Controls::RadioButtonController* rc = new Gwen::Controls::RadioButtonController(this);
|
||||
|
||||
Gwen::Controls::RadioButtonController* rc = new Gwen::Controls::RadioButtonController( this );
|
||||
|
||||
rc->AddOption( "Option 1" );
|
||||
rc->AddOption( "Option 2" );
|
||||
rc->AddOption( "Option 3" );
|
||||
rc->AddOption( L"\u0627\u0644\u0622\u0646 \u0644\u062D\u0636\u0648\u0631" );
|
||||
|
||||
rc->SetBounds( 30, 30, 200, 200 );
|
||||
|
||||
rc->onSelectionChange.Add( this, &RadioButton2::OnChange );
|
||||
rc->AddOption("Option 1");
|
||||
rc->AddOption("Option 2");
|
||||
rc->AddOption("Option 3");
|
||||
rc->AddOption(L"\u0627\u0644\u0622\u0646 \u0644\u062D\u0636\u0648\u0631");
|
||||
|
||||
rc->SetBounds(30, 30, 200, 200);
|
||||
|
||||
rc->onSelectionChange.Add(this, &RadioButton2::OnChange);
|
||||
}
|
||||
|
||||
void OnChange( Controls::Base* pControl )
|
||||
void OnChange(Controls::Base* pControl)
|
||||
{
|
||||
Gwen::Controls::RadioButtonController* rc = (Gwen::Controls::RadioButtonController*) pControl;
|
||||
Gwen::Controls::RadioButtonController* rc = (Gwen::Controls::RadioButtonController*)pControl;
|
||||
Gwen::Controls::LabeledRadioButton* pSelected = rc->GetSelected();
|
||||
|
||||
UnitPrint( Utility::Format( L"RadioButton changed (using 'OnChange' event)\n Chosen Item: '%s'", pSelected->GetLabel()->GetText().c_str() ) );
|
||||
UnitPrint(Utility::Format(L"RadioButton changed (using 'OnChange' event)\n Chosen Item: '%s'", pSelected->GetLabel()->GetText().c_str()));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
DEFINE_UNIT_TEST( RadioButton2, L"RadioButton" );
|
||||
DEFINE_UNIT_TEST(RadioButton2, L"RadioButton");
|
||||
Loading…
Add table
Add a link
Reference in a new issue