Nevermind.

This commit is contained in:
shiva404
2026-02-18 22:31:31 +03:00
parent b34aaa1664
commit bf4a80a54a
11 changed files with 12 additions and 9 deletions

View File

@@ -13,6 +13,7 @@ cell_classes = {"grass_small": eb_terrain_objects.Ground,
main_dir = os.path.dirname(os.path.abspath(__file__))
sprites_dir = os.path.join(main_dir, "res", "sprites")
#class Render
#class MapManager
#class Event
#class EventManager
@@ -154,7 +155,7 @@ class Engine:
# ★ UITextBox ВНУТРИ контейнера ★
output_box = pygame_gui.elements.UITextBox(
html_text=">>> Готово!\n",
html_text=">>> hlwrld1\n",
relative_rect=pygame.Rect(0, 0, 380, 1000), # ← Увеличьте высоту!
container=scroll_container,
manager=manager
@@ -211,6 +212,7 @@ class Engine:
if event.type == pygame_gui.UI_TEXT_ENTRY_FINISHED and event.ui_element == input_entry:
user_text = input_entry.get_text()
#print(user_text)
if user_text.strip():
output_log += f">>> {user_text}\n"
output_box.set_text(output_log)
@@ -274,8 +276,8 @@ class Engine:
# flip() the display to put your work on screen
pygame.display.update()
if global_counter % 100 == 0:
if global_counter % 10 == 0:
current_fps = clock.get_fps()
#print(f"Current FPS: {current_fps:.2f}")
print(f"Current FPS: {current_fps:.2f}")
pygame.quit()