SSBM Decomp
Loading...
Searching...
No Matches
textlib.c File Reference
#include "textlib.h"
#include "platform.h"
#include "baselib/controller.h"
#include "baselib/debug.h"
#include "if/textdraw.h"
#include "if/types.h"
#include "lb/lb_00B0.h"
#include "lb/lbaudio_ax.h"
#include "mn/inlines.h"
#include "ty/toy.h"
#include <printf.h>
#include <stdarg.h>
#include <dolphin/mtx.h>
#include <baselib/cobj.h>
#include <baselib/fog.h>
#include <baselib/gobj.h>
#include <baselib/gobjgxlink.h>
#include <baselib/gobjobject.h>
#include <baselib/gobjplink.h>
#include <baselib/gobjproc.h>
#include <baselib/gobjuserdata.h>
#include <baselib/lobj.h>
#include <baselib/memory.h>
#include <baselib/particle.h>
#include <baselib/sislib.h>
#include <MSL/math.h>
#include <MSL/stdio.h>
#include <MSL/string.h>

Data Structures

struct  unk_series
struct  DevTextGlyph

Functions

static DevTextfind_by_id (char id)
DevTextDevText_Create (char id, int x, int y, int w, int h, char *buf)
void DevText_EraseFirstLine (DevText *text)
int DevText_Clamp (int val, int max)
void DevText_SetCursorXY (DevText *text, int x, int y)
void DevText_SetCursorX (DevText *text, int x)
void DevText_HideCursor (DevText *text)
void DevText_80302AC0 (DevText *text)
void DevText_ShowBackground (DevText *text)
void DevText_HideBackground (DevText *text)
void DevText_ShowText (DevText *text)
void DevText_HideText (DevText *text)
void DevText_SetScale (DevText *text, f32 x, f32 y)
void DevText_SetXY (DevText *text, int x, int y)
u8 DevText_StoreColorIndex (DevText *text, u8 index)
GXColor DevText_SetTextColor (DevText *text, GXColor color)
GXColor DevText_SetBGColor (DevText *text, GXColor color)
void DevText_Erase (DevText *text)
void DevText_AdvanceLine (DevText *text)
void DevText_Print (DevText *text, char *str)
void DevText_PrintInt (DevText *text, int num)
void DevText_Printf (DevText *text, char *format,...)
struct un_80304138_objalloc_tun_80302DF0 (void)
void un_80302DF8 (struct un_80304138_objalloc_t *arg0, void *arg1)
int un_80302E00 (struct un_80304138_objalloc_t_x8 *arg0, int arg1)
int un_80302EA4 (struct un_80304138_objalloc_t_x8 *arg0)
static GXColor adjust (GXColor c)
void un_80302FFC (struct un_80304138_objalloc_t *arg0)
bool un_80303444 (struct un_80304138_objalloc_t *arg0)
bool un_80303720 (struct un_80304138_objalloc_t *arg0)
int un_803039A4 (unsigned char arg0)
void un_80303AC4 (struct un_80304138_objalloc_t *arg0)
void fn_80303EF4 (HSD_GObj *gobj)
void un_80303FD4 (HSD_GObj *arg0, struct un_80304138_objalloc_t *arg1, struct un_80304138_objalloc_t_x8 *arg2, int arg3, int arg4, int arg5)
void un_80304138 (void)
HSD_GObjun_80304168 (void *arg0, int arg1, int arg2, int arg3)
struct un_80304138_objalloc_tun_80304210 (struct un_80304138_objalloc_t *arg0, void *arg1, int arg2, int arg3, int arg4)
void un_80304334 (struct un_80304138_objalloc_t *arg0)
void un_80304344 (struct un_80304138_objalloc_t *arg0)
bool un_80304470 (void)
bool un_80304510 (void)
bool un_803045A0 (void)
bool un_80304690 (void)
bool un_80304780 (void)

Variables

DevTextdevtext_drawlist
 ?
DevTextdevtext_poolhead
GXColor un_804DDC88
GXColor un_804DDC8C
GXColor un_804DDC90
GXColor un_804DDC94
GXColor un_804DDC98
f32 un_804DDC9C
f32 un_804DDCA0
struct un_80304138_objalloc_tun_804D6E40
struct un_80304138_objalloc_t_x8un_804D6E48
unsigned char un_804D6E4C
static HSD_ObjAllocData un_804A2688
 .bss
static struct un_80304138_objalloc_tun_804D6E44
 .sbss
GXColor white = { 0xFF, 0xFF, 0xFF, 0xFF }
GXColor red = { 0xFF, 0x80, 0x80, 0xFF }
GXColor green = { 0x80, 0xFF, 0x80, 0xFF }
GXColor blue = { 0x80, 0x80, 0xFF, 0xFF }
GXColor un_804D5A08 = { 0x40, 0x50, 0x80, 0x80 }
GXColor un_804D5A0C = { 0xE2, 0xE2, 0xE2, 0xFF }
GXColor un_804D5A10 = { 0xFF, 0x80, 0x20, 0xFF }
GXColor un_804D5A14 = { 0xA0, 0xA0, 0xFF, 0xFF }

Function Documentation

◆ find_by_id()

DevText * find_by_id ( char id)
inlinestatic

◆ DevText_Create()

DevText * DevText_Create ( char id,
int x,
int y,
int w,
int h,
char * buf )

◆ DevText_EraseFirstLine()

void DevText_EraseFirstLine ( DevText * text)

◆ DevText_Clamp()

int DevText_Clamp ( int val,
int max )
inline

◆ DevText_SetCursorXY()

void DevText_SetCursorXY ( DevText * text,
int x,
int y )

◆ DevText_SetCursorX()

void DevText_SetCursorX ( DevText * text,
int x )

◆ DevText_HideCursor()

void DevText_HideCursor ( DevText * text)

◆ DevText_80302AC0()

void DevText_80302AC0 ( DevText * text)

◆ DevText_ShowBackground()

void DevText_ShowBackground ( DevText * text)

◆ DevText_HideBackground()

void DevText_HideBackground ( DevText * text)

◆ DevText_ShowText()

void DevText_ShowText ( DevText * text)

◆ DevText_HideText()

void DevText_HideText ( DevText * text)

◆ DevText_SetScale()

void DevText_SetScale ( DevText * text,
f32 x,
f32 y )

◆ DevText_SetXY()

void DevText_SetXY ( DevText * text,
int x,
int y )

◆ DevText_StoreColorIndex()

u8 DevText_StoreColorIndex ( DevText * text,
u8 index )

◆ DevText_SetTextColor()

GXColor DevText_SetTextColor ( DevText * text,
GXColor color )

◆ DevText_SetBGColor()

GXColor DevText_SetBGColor ( DevText * text,
GXColor color )

◆ DevText_Erase()

void DevText_Erase ( DevText * text)

◆ DevText_AdvanceLine()

void DevText_AdvanceLine ( DevText * text)
inline

◆ DevText_Print()

void DevText_Print ( DevText * text,
char * str )

◆ DevText_PrintInt()

void DevText_PrintInt ( DevText * text,
int num )

◆ DevText_Printf()

void DevText_Printf ( DevText * text,
char * format,
... )

◆ un_80302DF0()

struct un_80304138_objalloc_t * un_80302DF0 ( void )

◆ un_80302DF8()

void un_80302DF8 ( struct un_80304138_objalloc_t * arg0,
void * arg1 )

◆ un_80302E00()

int un_80302E00 ( struct un_80304138_objalloc_t_x8 * arg0,
int arg1 )

◆ un_80302EA4()

int un_80302EA4 ( struct un_80304138_objalloc_t_x8 * arg0)

◆ adjust()

GXColor adjust ( GXColor c)
inlinestatic

◆ un_80302FFC()

void un_80302FFC ( struct un_80304138_objalloc_t * arg0)

◆ un_80303444()

bool un_80303444 ( struct un_80304138_objalloc_t * arg0)

◆ un_80303720()

bool un_80303720 ( struct un_80304138_objalloc_t * arg0)

◆ un_803039A4()

int un_803039A4 ( unsigned char arg0)

◆ un_80303AC4()

void un_80303AC4 ( struct un_80304138_objalloc_t * arg0)

◆ fn_80303EF4()

void fn_80303EF4 ( HSD_GObj * gobj)

◆ un_80303FD4()

void un_80303FD4 ( HSD_GObj * arg0,
struct un_80304138_objalloc_t * arg1,
struct un_80304138_objalloc_t_x8 * arg2,
int arg3,
int arg4,
int arg5 )

◆ un_80304138()

void un_80304138 ( void )

◆ un_80304168()

HSD_GObj * un_80304168 ( void * arg0,
int arg1,
int arg2,
int arg3 )

◆ un_80304210()

struct un_80304138_objalloc_t * un_80304210 ( struct un_80304138_objalloc_t * arg0,
void * arg1,
int arg2,
int arg3,
int arg4 )

◆ un_80304334()

void un_80304334 ( struct un_80304138_objalloc_t * arg0)

◆ un_80304344()

void un_80304344 ( struct un_80304138_objalloc_t * arg0)

◆ un_80304470()

bool un_80304470 ( void )

◆ un_80304510()

bool un_80304510 ( void )

◆ un_803045A0()

bool un_803045A0 ( void )

◆ un_80304690()

bool un_80304690 ( void )
Todo
Duplicate code of un_803045A0 with different data

◆ un_80304780()

bool un_80304780 ( void )
Todo
Duplicate code of un_803045A0 with different data

Variable Documentation

◆ devtext_drawlist

DevText* devtext_drawlist
extern

?

◆ devtext_poolhead

DevText* devtext_poolhead
extern

◆ un_804DDC88

GXColor un_804DDC88
extern

◆ un_804DDC8C

GXColor un_804DDC8C
extern

◆ un_804DDC90

GXColor un_804DDC90
extern

◆ un_804DDC94

GXColor un_804DDC94
extern

◆ un_804DDC98

GXColor un_804DDC98
extern

◆ un_804DDC9C

f32 un_804DDC9C
extern

◆ un_804DDCA0

f32 un_804DDCA0
extern

◆ un_804D6E40

struct un_80304138_objalloc_t* un_804D6E40

◆ un_804D6E48

struct un_80304138_objalloc_t_x8* un_804D6E48

◆ un_804D6E4C

unsigned char un_804D6E4C

◆ un_804A2688

HSD_ObjAllocData un_804A2688
static

.bss

◆ un_804D6E44

struct un_80304138_objalloc_t* un_804D6E44
static

.sbss

◆ white

GXColor white = { 0xFF, 0xFF, 0xFF, 0xFF }

◆ red

GXColor red = { 0xFF, 0x80, 0x80, 0xFF }

◆ green

GXColor green = { 0x80, 0xFF, 0x80, 0xFF }

◆ blue

GXColor blue = { 0x80, 0x80, 0xFF, 0xFF }

◆ un_804D5A08

GXColor un_804D5A08 = { 0x40, 0x50, 0x80, 0x80 }

◆ un_804D5A0C

GXColor un_804D5A0C = { 0xE2, 0xE2, 0xE2, 0xFF }

◆ un_804D5A10

GXColor un_804D5A10 = { 0xFF, 0x80, 0x20, 0xFF }

◆ un_804D5A14

GXColor un_804D5A14 = { 0xA0, 0xA0, 0xFF, 0xFF }