SSBM Decomp
Loading...
Searching...
No Matches
textlib.c File Reference
#include "textlib.h"
#include "baselib/controller.h"
#include "baselib/debug.h"
#include "dolphin/os.h"
#include "gm/gm_unsplit.h"
#include "gm/gmmain_lib.h"
#include "if/textdraw.h"
#include "if/types.h"
#include "lb/lb_00B0.h"
#include "lb/lbaudio_ax.h"
#include "lb/lblanguage.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  idk

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)
void un_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)
int un_GetTrophyTotal (void)
static unsigned short * idk (void)
int un_803048C0 (int arg0)
bool un_80304924 (int arg0)
void un_80304988 (int arg0)
bool un_803049F4 (int arg0)
void un_80304A58 (int arg0)
bool un_80304B0C (int arg0)
int un_80304B94 (int option)
bool un_80304CC8 (int arg0)
int un_80304D30 (void)

Variables

DevTextdevtext_drawlist
 ?
DevTextdevtext_poolhead
unsigned short un_804A26B8 [1000]
unsigned short un_804A284C [1000]
short * un_804D6EB4
struct un_80304138_objalloc_tun_804D6E40
struct un_80304138_objalloc_t_x8un_804D6E48
struct idk un_803B8810
struct idk un_803B87DC
struct idk un_803B87A8
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 color_08 = { 0x40, 0x50, 0x80, 0x80 }
GXColor color_0C = { 0xE2, 0xE2, 0xE2, 0xFF }
GXColor color_10 = { 0xFF, 0x80, 0x20, 0xFF }
GXColor color_14 = { 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()

void 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 )

◆ un_80304780()

bool un_80304780 ( void )

◆ un_GetTrophyTotal()

int un_GetTrophyTotal ( void )

◆ idk()

unsigned short * idk ( void )
inlinestatic

◆ un_803048C0()

int un_803048C0 ( int arg0)

◆ un_80304924()

bool un_80304924 ( int arg0)

◆ un_80304988()

void un_80304988 ( int arg0)

◆ un_803049F4()

bool un_803049F4 ( int arg0)

◆ un_80304A58()

void un_80304A58 ( int arg0)

◆ un_80304B0C()

bool un_80304B0C ( int arg0)

◆ un_80304B94()

int un_80304B94 ( int option)

◆ un_80304CC8()

bool un_80304CC8 ( int arg0)

◆ un_80304D30()

int un_80304D30 ( void )

Variable Documentation

◆ devtext_drawlist

DevText* devtext_drawlist
extern

?

◆ devtext_poolhead

DevText* devtext_poolhead
extern

◆ un_804A26B8

unsigned short un_804A26B8[1000]

◆ un_804A284C

unsigned short un_804A284C[1000]

◆ un_804D6EB4

short* un_804D6EB4

◆ un_804D6E40

struct un_80304138_objalloc_t* un_804D6E40

◆ un_804D6E48

struct un_80304138_objalloc_t_x8* un_804D6E48

◆ un_803B8810

struct idk un_803B8810

◆ un_803B87DC

struct idk un_803B87DC

◆ un_803B87A8

struct idk un_803B87A8

◆ 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 }

◆ color_08

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

◆ color_0C

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

◆ color_10

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

◆ color_14

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