mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-08 05:04:34 +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,75 +5,69 @@ using namespace Gwen;
|
|||
|
||||
class TextBox : public GUnit
|
||||
{
|
||||
public:
|
||||
|
||||
GWEN_CONTROL_INLINE( TextBox, GUnit )
|
||||
public:
|
||||
GWEN_CONTROL_INLINE(TextBox, GUnit)
|
||||
{
|
||||
{
|
||||
Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox( this );
|
||||
label->SetText( "" );
|
||||
label->SetPos( 10, 10 );
|
||||
label->onTextChanged.Add( this, &ThisClass::OnEdit );
|
||||
label->onReturnPressed.Add( this, &ThisClass::OnSubmit );
|
||||
|
||||
Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox(this);
|
||||
label->SetText("");
|
||||
label->SetPos(10, 10);
|
||||
label->onTextChanged.Add(this, &ThisClass::OnEdit);
|
||||
label->onReturnPressed.Add(this, &ThisClass::OnSubmit);
|
||||
}
|
||||
|
||||
{
|
||||
Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox( this );
|
||||
label->SetText( "Normal Everyday Label" );
|
||||
label->SetPos( 10, 10 + 25 );
|
||||
Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox(this);
|
||||
label->SetText("Normal Everyday Label");
|
||||
label->SetPos(10, 10 + 25);
|
||||
}
|
||||
|
||||
{
|
||||
Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox( this );
|
||||
label->SetText( "Select All Text On Focus" );
|
||||
label->SetPos( 10, 10 + 25 * 2 );
|
||||
label->SetSelectAllOnFocus( true );
|
||||
Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox(this);
|
||||
label->SetText("Select All Text On Focus");
|
||||
label->SetPos(10, 10 + 25 * 2);
|
||||
label->SetSelectAllOnFocus(true);
|
||||
}
|
||||
|
||||
{
|
||||
Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox( this );
|
||||
label->SetText( L"Different Coloured Text, for some reason" );
|
||||
label->SetTextColor( Gwen::Color( 255, 0, 255, 255 ) );
|
||||
label->SetPos( 10, 10 + 25 * 3 );
|
||||
Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox(this);
|
||||
label->SetText(L"Different Coloured Text, for some reason");
|
||||
label->SetTextColor(Gwen::Color(255, 0, 255, 255));
|
||||
label->SetPos(10, 10 + 25 * 3);
|
||||
}
|
||||
|
||||
{
|
||||
Gwen::Controls::TextBoxNumeric* label = new Gwen::Controls::TextBoxNumeric( this );
|
||||
label->SetText( L"2004" );
|
||||
label->SetTextColor( Gwen::Color( 255, 0, 255, 255 ) );
|
||||
label->SetPos( 10, 10 + 25 * 4 );
|
||||
Gwen::Controls::TextBoxNumeric* label = new Gwen::Controls::TextBoxNumeric(this);
|
||||
label->SetText(L"2004");
|
||||
label->SetTextColor(Gwen::Color(255, 0, 255, 255));
|
||||
label->SetPos(10, 10 + 25 * 4);
|
||||
}
|
||||
|
||||
{
|
||||
m_Font.facename = L"Impact";
|
||||
m_Font.size = 50;
|
||||
|
||||
Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox( this );
|
||||
label->SetText( L"Different Font" );
|
||||
label->SetPos( 10, 10 + 25 * 5 );
|
||||
label->SetFont( &m_Font );
|
||||
label->SetSize( 200, 55 );
|
||||
Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox(this);
|
||||
label->SetText(L"Different Font");
|
||||
label->SetPos(10, 10 + 25 * 5);
|
||||
label->SetFont(&m_Font);
|
||||
label->SetSize(200, 55);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void OnEdit( Gwen::Controls::Base* pControl )
|
||||
void OnEdit(Gwen::Controls::Base* pControl)
|
||||
{
|
||||
Gwen::Controls::TextBox* textbox = (Gwen::Controls::TextBox*) (pControl);
|
||||
UnitPrint( Utility::Format( L"Textbox Edit: [%s]\n", textbox->GetText().c_str() ) );
|
||||
Gwen::Controls::TextBox* textbox = (Gwen::Controls::TextBox*)(pControl);
|
||||
UnitPrint(Utility::Format(L"Textbox Edit: [%s]\n", textbox->GetText().c_str()));
|
||||
}
|
||||
|
||||
void OnSubmit( Gwen::Controls::Base* pControl )
|
||||
void OnSubmit(Gwen::Controls::Base* pControl)
|
||||
{
|
||||
Gwen::Controls::TextBox* textbox = (Gwen::Controls::TextBox*) (pControl);
|
||||
UnitPrint( Utility::Format( L"Textbox Submit: [%s]\n", textbox->GetText().c_str() ) );
|
||||
Gwen::Controls::TextBox* textbox = (Gwen::Controls::TextBox*)(pControl);
|
||||
UnitPrint(Utility::Format(L"Textbox Submit: [%s]\n", textbox->GetText().c_str()));
|
||||
}
|
||||
|
||||
Gwen::Font m_Font;
|
||||
Gwen::Font m_Font;
|
||||
};
|
||||
|
||||
|
||||
|
||||
DEFINE_UNIT_TEST( TextBox, L"TextBox" );
|
||||
DEFINE_UNIT_TEST(TextBox, L"TextBox");
|
||||
Loading…
Add table
Add a link
Reference in a new issue