The Omega Refactor(TM) + Input Options

This commit is contained in:
2025-06-30 21:29:59 -04:00
parent 6b5437a2fd
commit 30880c003d
35 changed files with 1490 additions and 1421 deletions

View File

@@ -4,12 +4,12 @@
#include "resources.h"
#include "window.h"
static const SDL_DialogFileFilter DIALOG_FILE_FILTER_ANM2[] =
const SDL_DialogFileFilter DIALOG_FILE_FILTER_ANM2[] =
{
{"Anm2", "anm2;xml"}
};
static const SDL_DialogFileFilter DIALOG_FILE_FILTER_PNG[] =
const SDL_DialogFileFilter DIALOG_FILE_FILTER_PNG[] =
{
{"png", "png"}
};
@@ -20,7 +20,8 @@ enum DialogType
DIALOG_ANM2_OPEN,
DIALOG_ANM2_SAVE,
DIALOG_PNG_OPEN,
DIALOG_PNG_REPLACE
DIALOG_PNG_REPLACE,
DIALOG_FRAME_DIRECTORY_OPEN,
};
struct Dialog
@@ -29,9 +30,9 @@ struct Dialog
Anm2Reference* reference = NULL;
Resources* resources = NULL;
SDL_Window* window = NULL;
std::string path;
s32 replaceID = -1;
enum DialogType type = DIALOG_NONE;
char path[PATH_MAX] = "";
DialogType type = DIALOG_NONE;
bool isSelected = false;
};
@@ -40,4 +41,5 @@ void dialog_anm2_open(Dialog* self);
void dialog_png_open(Dialog* self);
void dialog_png_replace(Dialog* self);
void dialog_anm2_save(Dialog* self);
void dialog_frame_directory_open(Dialog* self);
void dialog_tick(Dialog* self);