Archive 17/01/2023.

How to set console size?

Dave82

It seems that for some reason the console subsytem always runs in fullscreen. How can i set it’s height for let’s say 200 so it appears on top of the screen like in most games ? It seems that it is possible since the editor limits the height of the console but there’s no SetSize() method in Urho3D::Console class…

Leith

I wish my console ran in fullscreen. I want to know how to make it bigger.

Dave82

How’s that pissible ? Which version you use ? I tried the 1.7 Console input demo and tried to create a console in my game and both have fullscreen consoles…

Dave82

It seems the magic is happening in void Console::UpdateElements()
where the elements get their final size. The rowContainer_->SetFixedHeight(); uses some overcomplicated calculations to get the final height. For anyone who want to change the height of the console just use a constant height value and that’s it.
rowContainer_->SetFixedHeight(someHeight);

Leith

I thought you meant the system console :stuck_out_tongue: