from app.views.modalview import ModalView
from app.views.menuview import MenuView

class GameOverView(ModalView):
  def __init__(self, graphics, model):
    super().__init__(graphics, model)
    self.menu_view = MenuView(graphics, model)
    self.menu_x = self.back_x + self.center_axis(0, self.img_back.get_width(), self.menu_view.width)
    self.menu_y = self.back_y + self.center_axis(66, self.img_back.get_height(), self.menu_view.height)
    self.menu_view.set_pos(self.menu_x, self.menu_y)

  def render(self):
    super().render()
    self.graphics.set_font('white')
    self.graphics.draw_text('GAME OVER', self.menu_x + self.menu_view.selector_dx, self.back_y + 12)
    self.menu_view.render()

from app.views.modalview import ModalView
from app.views.menuview import MenuView

class GameOverView(ModalView):
  def __init__(self, graphics, model):
    super().__init__(graphics, model)
    self.menu_view = MenuView(graphics, model)
    self.menu_x = self.back_x + self.center_axis(0, self.img_back.get_width(), self.menu_view.width)
    self.menu_y = self.back_y + self.center_axis(66, self.img_back.get_height(), self.menu_view.height)
    self.menu_view.set_pos(self.menu_x, self.menu_y)

  def render(self):
    super().render()
    self.graphics.set_font('white')
    self.graphics.draw_text('GAME OVER', self.menu_x + self.menu_view.selector_dx, self.back_y + 12)
    self.menu_view.render()
