sdl rendering progress?
This commit is contained in:
parent
467c6606da
commit
af941dc848
5 changed files with 22 additions and 13 deletions
|
|
@ -7,9 +7,11 @@ from typing import Protocol
|
|||
|
||||
import attrs
|
||||
import tcod.console
|
||||
import tcod.constants
|
||||
import tcod.event
|
||||
from tcod.event import KeySym
|
||||
|
||||
import g
|
||||
from game.constants import DIRECTION_KEYS
|
||||
from game.screens import Pop, Screen, ScreenResult, draw_previous_screens
|
||||
|
||||
|
|
@ -93,6 +95,6 @@ class ListMenu(Screen):
|
|||
|
||||
def on_draw(self, console: tcod.console.Console) -> None:
|
||||
"""Render the menu."""
|
||||
draw_previous_screens(self, console)
|
||||
draw_previous_screens(self, g.foreground)
|
||||
for i, item in enumerate(self.items):
|
||||
item.on_draw(console, x=self.x, y=self.y + i, highlight=i == self.selected)
|
||||
item.on_draw(g.foreground, x=self.x, y=self.y + i, highlight=i == self.selected)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue