mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 12:55:58 +03:00
fix(console): new types included
This commit is contained in:
parent
394d4ac321
commit
ee51e76795
@ -2,7 +2,6 @@
|
|||||||
#define CONSOLE_LINE_HPP
|
#define CONSOLE_LINE_HPP
|
||||||
|
|
||||||
#include "console/Types.hpp"
|
#include "console/Types.hpp"
|
||||||
#include "gx/Font.hpp"
|
|
||||||
|
|
||||||
#include <storm/List.hpp>
|
#include <storm/List.hpp>
|
||||||
|
|
||||||
@ -10,19 +9,6 @@
|
|||||||
#define CONSOLE_LINE_LENGTH 1024
|
#define CONSOLE_LINE_LENGTH 1024
|
||||||
#define CONSOLE_LINE_PREALLOC 16
|
#define CONSOLE_LINE_PREALLOC 16
|
||||||
|
|
||||||
class CONSOLELINE : public TSLinkedNode<CONSOLELINE> {
|
|
||||||
public:
|
|
||||||
char* buffer;
|
|
||||||
uint32_t chars;
|
|
||||||
uint32_t charsalloc;
|
|
||||||
uint32_t inputpos;
|
|
||||||
uint32_t inputstart;
|
|
||||||
COLOR_T colorType;
|
|
||||||
CGxString* fontPointer;
|
|
||||||
|
|
||||||
~CONSOLELINE();
|
|
||||||
};
|
|
||||||
|
|
||||||
void ConsoleWrite(const char* str, COLOR_T color);
|
void ConsoleWrite(const char* str, COLOR_T color);
|
||||||
void ConsoleWriteA(const char* str, COLOR_T color, ...);
|
void ConsoleWriteA(const char* str, COLOR_T color, ...);
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,11 @@
|
|||||||
#ifndef CONSOLE_TYPES_HPP
|
#ifndef CONSOLE_TYPES_HPP
|
||||||
#define CONSOLE_TYPES_HPP
|
#define CONSOLE_TYPES_HPP
|
||||||
|
|
||||||
|
#include "gx/Font.hpp"
|
||||||
|
|
||||||
|
#include <storm/Hash.hpp>
|
||||||
|
#include <storm/List.hpp>
|
||||||
|
|
||||||
enum COLOR_T {
|
enum COLOR_T {
|
||||||
DEFAULT_COLOR,
|
DEFAULT_COLOR,
|
||||||
INPUT_COLOR,
|
INPUT_COLOR,
|
||||||
@ -45,12 +50,12 @@ class CONSOLECOMMAND : public TSHashObject<CONSOLECOMMAND, HASHKEY_STRI> {
|
|||||||
|
|
||||||
class CONSOLELINE : public TSLinkedNode<CONSOLELINE> {
|
class CONSOLELINE : public TSLinkedNode<CONSOLELINE> {
|
||||||
public:
|
public:
|
||||||
char* buffer;
|
char* buffer;
|
||||||
uint32_t chars;
|
uint32_t chars;
|
||||||
uint32_t charsalloc;
|
uint32_t charsalloc;
|
||||||
uint32_t inputpos;
|
uint32_t inputpos;
|
||||||
uint32_t inputstart;
|
uint32_t inputstart;
|
||||||
COLOR_T colorType;
|
COLOR_T colorType;
|
||||||
CGxString* fontPointer;
|
CGxString* fontPointer;
|
||||||
|
|
||||||
~CONSOLELINE();
|
~CONSOLELINE();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user