Make the FPS/debug output render in a better place and not so in your face.
This commit is contained in:
parent
bfe0d797c8
commit
f10498425e
2 changed files with 7 additions and 4 deletions
5
gui.cpp
5
gui.cpp
|
@ -24,8 +24,9 @@ namespace gui {
|
|||
{
|
||||
$window.setVerticalSyncEnabled(VSYNC);
|
||||
$window.setFramerateLimit(FRAME_LIMIT);
|
||||
$text.setPosition({43,300});
|
||||
$text.setFillColor({255,255,255});
|
||||
$text.setPosition({RAY_VIEW_X,RAY_VIEW_Y});
|
||||
$text.setCharacterSize(20);
|
||||
$text.setFillColor(ColorValue::LIGHT_DARK);
|
||||
$textures.load_tiles();
|
||||
$textures.load_sprites();
|
||||
}
|
||||
|
|
|
@ -11,10 +11,12 @@ namespace gui {
|
|||
{
|
||||
$gui.position(STATUS_UI_X, STATUS_UI_Y, STATUS_UI_WIDTH, STATUS_UI_HEIGHT);
|
||||
$gui.layout(
|
||||
"[*%(100,200)log_view]"
|
||||
"[_]"
|
||||
"[button1 | button2 | button3]"
|
||||
"[button4 | button5 | button6]"
|
||||
"[button7 | button8 | button9]"
|
||||
"[*%(100,300)log_view]"
|
||||
"[_]"
|
||||
"[_]"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue