Some minor changes.

This commit is contained in:
spartanj
2010-12-29 04:31:27 -03:00
parent cd662ed08b
commit cc33bc3b4d
18 changed files with 114 additions and 137 deletions

View File

@@ -370,7 +370,18 @@ void cEETest::OnFontLoaded( cResourceLoader * ObjLoaded ) {
Con.Create( FF, true );
Con.IgnoreCharOnPrompt( 186 ); // L'º'
mBuda = L"El mono ve el pez en el agua y sufre. Piensa que su mundo es el único que existe, el mejor, el real. Sufre porque es bueno y tiene compasión, lo ve y piensa: \"Pobre se está ahogando no puede respirar\". Y lo saca, lo saca y se queda tranquilo, por fin lo salvé. Pero el pez se retuerce de dolor y muere. Por eso te mostré el sueño, es imposible meter el mar en tu cabeza, que es un balde.";
cTimeElapsed TE;
cUIManager::instance()->Init();
CreateUI();
cLog::instance()->Writef( "CreateUI time: %f", TE.ElapsedSinceStart() );
TTFB->ShrinkText( mBuda, 400 );
mBudaTC.Create( TTFB, mBuda, eeColorA(255,255,255,255) );
mEEText.Create( TTFB, L"Entropia Engine++\nCTRL + 1 = Screen 1 - CTRL + 2 = Screen 2\nCTRL + 3 = Screen 3" );
mFBOText.Create( TTFB, L"This is a VBO\nInside of a FBO" );
mInfoText.Create( FF, L"", eeColorA(255,255,255,150) );
EE->Display();
@@ -389,17 +400,15 @@ void cEETest::CreateShaders() {
}
void cEETest::CreateUI() {
cUIManager::instance()->Init();
cUIControl::CreateParams Params( cUIManager::instance()->MainControl(), eeVector2i(0,0), eeSize( 530, 380 ), UI_FILL_BACKGROUND | UI_CLIP_ENABLE | UI_BORDER );
cUIThemeManager::instance()->Add( cUITheme::LoadFromPath( MyPath + "data/aqua/", "aqua", "aqua" ) );
//cUIThemeManager::instance()->Add( cUITheme::LoadFromPath( MyPath + "data/aqua/", "aqua", "aqua" ) );
CreateAquaTextureAtlas();
/*
cTextureGroupLoader tgl( MyPath + "data/aquatg/aqua.etg" );
TF->GetByName( "data/aquatg/aqua.png" )->TextureFilter( TEX_FILTER_NEAREST );
cUIThemeManager::instance()->Add( cUITheme::LoadFromShapeGroup( cShapeGroupManager::instance()->GetByName( "aqua" ), "aqua", "aqua" ) );
*/
cUIThemeManager::instance()->DefaultEffectsEnabled( true );
cUIThemeManager::instance()->DefaultFont( TTF );
cUIThemeManager::instance()->DefaultTheme( "aqua" );
@@ -564,7 +573,7 @@ void cEETest::CreateUI() {
mListBox->Visible( true );
mListBox->Enabled( true );
Int32 wsize = 10000;
Int32 wsize = 100;
if ( wsize ) {
std::vector<std::wstring> wstr(wsize);
@@ -661,6 +670,7 @@ void cEETest::CreateUI() {
cUITextEdit * TextEdit = eeNew( cUITextEdit, ( TEParams ) );
TextEdit->Visible( true );
TextEdit->Enabled( true );
TextEdit->Text( mBuda );
cUIGenericGrid::CreateParams GridParams;
GridParams.Parent( C );
@@ -684,7 +694,7 @@ void cEETest::CreateUI() {
TxtGfxParams.Flags = UI_VALIGN_CENTER | UI_HALIGN_CENTER;
TxtGfxParams.Shape = cGlobalShapeGroup::instance()->GetByName( "aqua_button_ok" );
for ( Uint32 i = 0; i < 10; i++ ) {
for ( Uint32 i = 0; i < 100; i++ ) {
cUIGridCell * Cell = eeNew( cUIGridCell, ( CellParams ) );
cUITextBox * TxtBox = eeNew( cUITextBox, ( TxtBoxParams ) );
cUITextInput * TxtInput = eeNew( cUITextInput, ( TxtInputParams ) );
@@ -702,16 +712,6 @@ void cEETest::CreateUI() {
mGenGrid->CollumnWidth( 0, 50 );
mGenGrid->CollumnWidth( 1, 24 );
mGenGrid->CollumnWidth( 2, 100 );
mBuda = L"El mono ve el pez en el agua y sufre. Piensa que su mundo es el único que existe, el mejor, el real. Sufre porque es bueno y tiene compasión, lo ve y piensa: \"Pobre se está ahogando no puede respirar\". Y lo saca, lo saca y se queda tranquilo, por fin lo salvé. Pero el pez se retuerce de dolor y muere. Por eso te mostré el sueño, es imposible meter el mar en tu cabeza, que es un balde.";
TextEdit->Text( mBuda );
TTFB->ShrinkText( mBuda, 400 );
mBudaTC.Create( TTFB, mBuda, eeColorA(255,255,255,255) );
mEEText.Create( TTFB, L"Entropia Engine++\nCTRL + 1 = Screen 1 - CTRL + 2 = Screen 2\nCTRL + 3 = Screen 3" );
mFBOText.Create( TTFB, L"This is a VBO\nInside of a FBO" );
mInfoText.Create( FF, L"", eeColorA(255,255,255,150) );
}
void cEETest::ItemClick( const cUIEvent * Event ) {