diff --git a/assets/play_circle_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png b/assets/play_circle_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png new file mode 100644 index 0000000..ff60424 Binary files /dev/null and b/assets/play_circle_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png differ diff --git a/assets/restart_alt_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png b/assets/restart_alt_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png new file mode 100644 index 0000000..5228f3f Binary files /dev/null and b/assets/restart_alt_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png differ diff --git a/assets/settings_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png b/assets/settings_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png new file mode 100644 index 0000000..3df706c Binary files /dev/null and b/assets/settings_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png differ diff --git a/assets/step_over_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png b/assets/step_over_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png new file mode 100644 index 0000000..90c23f7 Binary files /dev/null and b/assets/step_over_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png differ diff --git a/assets/stop_circle_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png b/assets/stop_circle_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png new file mode 100644 index 0000000..5855e12 Binary files /dev/null and b/assets/stop_circle_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png differ diff --git a/modules/gui.py b/modules/gui.py index b8cb28d..baebd26 100644 --- a/modules/gui.py +++ b/modules/gui.py @@ -182,6 +182,62 @@ def actualizarInfoPos( ) +def mostrarFrameAccoes(janela: pg.Surface, frm: Frame) -> None: + frm.desenhar(janela, 5, 10) + img_play = pg.image.load( + "assets/play_circle_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png" + ) + img_stop = pg.image.load( + "assets/stop_circle_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png" + ) + img_step = pg.image.load( + "assets/step_over_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png" + ) + img_restart = pg.image.load( + "assets/restart_alt_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png" + ) + img_settings = pg.image.load( + "assets/settings_64dp_E3E3E3_FILL0_wght400_GRAD0_opsz48.png" + ) + janela.blit( + img_play, + ( + frm.posicao[0] + sep_janelas, + frm.posicao[1] + ((frm.tamanho[1] - img_play.get_size()[1]) / 2), + ), + ) + janela.blit( + img_step, + ( + frm.posicao[0] + (sep_janelas + img_play.get_size()[0]), + frm.posicao[1] + ((frm.tamanho[1] - img_step.get_size()[1]) / 2), + ), + ) + janela.blit( + img_stop, + ( + frm.posicao[0] + ((sep_janelas + img_step.get_size()[0]) * 2), + frm.posicao[1] + ((frm.tamanho[1] - img_stop.get_size()[1]) / 2), + ), + ) + janela.blit( + img_restart, + ( + frm.posicao[0] + ((sep_janelas + img_stop.get_size()[0]) * 3), + frm.posicao[1] + + ((frm.tamanho[1] - img_restart.get_size()[1]) / 2), + ), + ) + janela.blit( + img_settings, + ( + frm.posicao[0] + ((sep_janelas + img_restart.get_size()[0]) * 5), + frm.posicao[1] + + ((frm.tamanho[1] - img_settings.get_size()[1]) / 2), + ), + ) + + def main(mapa: Mapa | None, tamanho_mapa: tuple[int, int]): if isinstance(mapa, NoneType): raise TypeError("não foi passado mapa (tipo None)") @@ -277,6 +333,7 @@ def main(mapa: Mapa | None, tamanho_mapa: tuple[int, int]): # mostrar estatisticas actualizarEstatisticas(janela, frm_info_mapa, mapa) # mostrar frame_accoes + mostrarFrameAccoes(janela, frm_accoes) pg.display.flip() clock.tick(60)