351
This commit is contained in:
18
src/conversation/questionbox.c
Normal file
18
src/conversation/questionbox.c
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Copyright (c) 2022 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "questionbox.h"
|
||||
|
||||
void questionBoxSetOptions(char *title, char *options[QUESTION_BOX_OPTIONS_MAX]) {
|
||||
char buffer[TEXTBOX_CHARS_MAX + 1];
|
||||
sprintf(buffer, "Hello World");
|
||||
conversationTextboxSetText(buffer);
|
||||
}
|
||||
|
||||
inline void questionBoxUpdate() {
|
||||
|
||||
}
|
24
src/conversation/questionbox.h
Normal file
24
src/conversation/questionbox.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* Copyright (c) 2022 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../libs.h"
|
||||
#include "../util.h"
|
||||
#include "../input.h"
|
||||
#include "../display/common.h"
|
||||
#include "../display/tilemap.h"
|
||||
#include "frame.h"
|
||||
#include "textbox.h"
|
||||
|
||||
#define QUESTION_BOX_OPTIONS_MAX ((TEXTBOX_CHAR_ROWS-1)*2)
|
||||
|
||||
extern uint8_t QUESTION_BOX_OPTION_COUNT;
|
||||
extern uint8_t QUESTION_BOX_OPTION_CURRENT;
|
||||
|
||||
void questionBoxSetOptions(char *title, char *options[QUESTION_BOX_OPTIONS_MAX]);
|
||||
|
||||
inline void questionBoxUpdate();
|
Reference in New Issue
Block a user