mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Some minor fixes and improvements.
Added verbose layout loading to get more info about the performance when loading layouts.
This commit is contained in:
@@ -104,6 +104,8 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
|
||||
UITheme* theme =
|
||||
UITheme::load( "uitheme" + pd, "uitheme" + pd, "assets/ui/uitheme" + pd + ".eta",
|
||||
font, "assets/ui/uitheme.css" );
|
||||
/*UITheme* theme =
|
||||
UITheme::load( "uitheme", "uitheme", "", font, "assets/ui/breeze.css" );*/
|
||||
|
||||
uiSceneNode->combineStyleSheet( theme->getStyleSheet() );
|
||||
|
||||
|
||||
@@ -767,6 +767,13 @@ void mainLoop() {
|
||||
uiSceneNode->setDrawDebugData( !uiSceneNode->getDrawDebugData() );
|
||||
}
|
||||
|
||||
if ( window->getInput()->isKeyUp( KEY_F9 ) ) {
|
||||
Clock clock;
|
||||
uiSceneNode->getRoot()->reportStyleStateChangeRecursive();
|
||||
eePRINTL( "Applied style state changes in: %.2fms",
|
||||
clock.getElapsedTime().asMilliseconds() );
|
||||
}
|
||||
|
||||
if ( mousePos != window->getInput()->getMousePos() ) {
|
||||
mousePos = window->getInput()->getMousePos();
|
||||
mouseClock.restart();
|
||||
@@ -967,6 +974,9 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
|
||||
preserveContainerSize = true;
|
||||
}
|
||||
|
||||
Log::instance()->setLiveWrite( true );
|
||||
Log::instance()->setConsoleOutput( true );
|
||||
|
||||
window = Engine::instance()->createWindow(
|
||||
WindowSettings( 1280, 720, "eepp - UI Editor", WindowStyle::Default, WindowBackend::Default,
|
||||
32, "assets/icon/ee.png", pixelDensity ),
|
||||
@@ -995,6 +1005,7 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
|
||||
|
||||
uiSceneNode = UISceneNode::New();
|
||||
uiSceneNode->setId( "uiSceneNode" );
|
||||
uiSceneNode->setVerbose( true );
|
||||
SceneManager::instance()->add( uiSceneNode );
|
||||
|
||||
appUiSceneNode = UISceneNode::New();
|
||||
|
||||
Reference in New Issue
Block a user