This commit is contained in:
2025-06-19 05:29:06 -04:00
parent 9929e69f22
commit 91190987ed
30 changed files with 2754 additions and 475 deletions

26
src/dialog.h Normal file
View File

@@ -0,0 +1,26 @@
#pragma once
#include "anm2.h"
static const SDL_DialogFileFilter ANM2_DIALOG_FILE_FILTER[] =
{
{"Anm2", "anm2;xml"}
};
enum DialogType
{
DIALOG_ANM2_OPEN,
DIALOG_ANM2_SAVE
};
struct Dialog
{
Anm2* anm2 = NULL;
enum DialogType type = DIALOG_ANM2_OPEN;
char path[PATH_MAX] = "";
bool isSelected = false;
};
void dialog_anm2_open(Dialog* self);
void dialog_anm2_save(Dialog* self);
void dialog_tick(Dialog* self);