summaryrefslogtreecommitdiff
path: root/src/factories/sm64/TextPreview.h
blob: 55afe6322f21a760ad3ecbd52f1b24a260d93e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include "factories/BaseFactory.h"

// Decoded-text viewer cards for the SM64 string assets (dialog, course/menu
// text, and the compression dictionary). These decode the game's custom
// character encoding into readable UTF-8.
#ifdef BUILD_UI
namespace SM64 {

class DialogFactoryUI : public BaseFactoryUI {
public:
    float GetItemHeight(const ParseResultData& data) override;
    void DrawUI(const ParseResultData& data) override;
};

class TextFactoryUI : public BaseFactoryUI {
public:
    float GetItemHeight(const ParseResultData& data) override;
    void DrawUI(const ParseResultData& data) override;
};

class DictionaryFactoryUI : public BaseFactoryUI {
public:
    float GetItemHeight(const ParseResultData& data) override;
    void DrawUI(const ParseResultData& data) override;
};

} // namespace SM64
#endif