MiniDevil
As beautiful as a shell
Waifu character management. More...
#include "minishell_ui.h"
Include dependency graph for waifu.c:Waifu character management.
Definition in file waifu.c.
Functions | |
| void | update_waifu_mood (t_ui *ui, int mood) |
| Set the waifu mood. More... | |
| static void | render_waifu_mood (t_ui *ui, int y, int x) |
| Dispatch to correct drawing function for the current mood. More... | |
| void | draw_waifu_box (t_ui *ui) |
| Draw the waifu panel in the right sidebar. More... | |
| void update_waifu_mood | ( | t_ui * | ui, |
| int | mood | ||
| ) |
Set the waifu mood.
| ui | UI state |
| mood | New mood value |
Definition at line 21 of file waifu.c.
References t_waifu::mood, and t_ui::waifu.
Referenced by cmd_execute(), exec_parent(), execute_minishell_cmd(), handle_fork_error(), and init_pipe_and_fds().
Here is the caller graph for this function:
|
static |
Dispatch to correct drawing function for the current mood.
| ui | UI state |
| y | Top row |
| x | Left col |
Definition at line 33 of file waifu.c.
References draw_happy(), draw_proud(), draw_upset(), t_waifu::mood, MOOD_PROUD, MOOD_UPSET, and t_ui::waifu.
Referenced by draw_waifu_box().
Here is the call graph for this function:
Here is the caller graph for this function:| void draw_waifu_box | ( | t_ui * | ui | ) |
Draw the waifu panel in the right sidebar.
| ui | UI state |
Definition at line 48 of file waifu.c.
References C_FIRE4, t_box::color, draw_box_bottom(), draw_box_sides(), draw_box_title(), t_box::h, render_waifu_mood(), t_ui::term, t_box::w, WAIFU_BOX_W, t_term::width, t_box::x, and t_box::y.
Referenced by draw_ui().
Here is the call graph for this function:
Here is the caller graph for this function: