game.ui.happiness_graph ======================= .. py:module:: game.ui.happiness_graph Classes ------- .. autoapisummary:: game.ui.happiness_graph.HappinessGraph Module Contents --------------- .. py:class:: HappinessGraph(width=200, height=100) A UI component to display villager happiness over time. .. py:attribute:: width :value: 200 .. py:attribute:: height :value: 100 .. py:attribute:: x :value: 690 .. py:attribute:: y :value: 120 .. py:attribute:: bg_color :value: (20, 20, 20, 180) .. py:attribute:: font .. py:attribute:: surface .. py:method:: render(screen, history) Render the happiness graph onto the screen. :param screen: The main pygame screen surface. :param history: A list of recent happiness values (0.0 to 1.0). :type history: list