void* gui_makeItem(const char* const text) { Item* const i = malloc(sizeof(Item)); i->text = a_str_dup(text); i->alpha = 0; return i; }
void gui_consoleLine(const int font, const char* const text) { printf("%s\n", text); Line* const line = malloc(sizeof(Line)); line->font = font; line->text = a_str_dup(text); a_list_addLast(lines, line); if(a_list_size(lines) > CONSOLE_LINES) { free(a_list_pop(lines)); } gui_draw(NULL); a_screen_show(); }
void a_menu_addTitle(Menu* const m, const char* const t) { m->title = a_str_dup(t); }
void gui_setCurrentTask(const char* const text) { currentTask = a_str_dup(text); }