fork/training-mode-ce
git clone https://git.julia.blue/fork/training-mode-ce
4f5d26e
techchase-camera
1#ifndef MEX_H_DEVTEXT 2#define MEX_H_DEVTEXT 3 4#include "structs.h" 5#include "gx.h" 6 7/*** Structs ***/ 8 9struct DevText 10{ 11int x0 ;// 0x0 12u8 width ;// 0x4 13u8 height ;// 0x5 14u8 cursor_x ;// 0x6 15u8 cursor_y ;// 0x7 16Vec2 scale ;// 0x8 17GXColor bg_color ;// 0x10 18int x14 ;// 0x14 19int x18 ;// 0x18 20int x1c ;// 0x1c 21int x20 ;// 0x20 22char x24 ;// 0x24 23char x25 ;// 0x25 24char show_text :1 ;// 0x26 25char show_background :1 ;// 0x26 26char x26_20 :1 ;// 0x26 27char show_cursor :1 ;// 0x26 28char x27 ;// 0x27 29u8 * text_data ;// 0x28 30int x2c ;// 0x2c 31DevText * next ;// 0x30 32int x34 ;// 0x34 33int x38 ;// 0x38 34int x3c ;// 0x3c 35int x40 ;// 0x40 36int x44 ;// 0x44 37int x48 ;// 0x48 38int x4c ;// 0x4c 39int x50 ;// 0x50 40int x54 ;// 0x54 41int x58 ;// 0x58 42int x5c ;// 0x5c 43}; 44 45/*** Functions ***/ 46 47DevText * DevelopText_CreateDataTable (int unk1 ,int x ,int y ,int width ,int height ,void * alloc ); 48void DevelopText_Activate (void * unk ,DevText * text ); 49void DevelopText_Deactivate (void * unk ); 50void DevelopText_AddString (DevText * text , ...); 51void DevelopText_EraseAllText (DevText * text ); 52void DevelopText_ResetCursorXY (DevText * text ,int x ,int y ); 53void DevelopText_StoreTextColor (DevText * text ,GXColor * RGBA ); 54void DevelopText_StoreBGColor (DevText * text ,GXColor * RGBA ); 55void DevelopText_ShowText (DevText * text ); 56void DevelopText_HideText (DevText * text ); 57void DevelopText_ShowBG (DevText * text ); 58void DevelopText_HideBG (DevText * text ); 59void DevelopText_StoreTextScale (DevText * text ,float x ,float y ); 60void Develop_DrawSphere (float size ,Vec3 * pos1 ,Vec3 * pos2 ,GXColor * diffuse ,GXColor * ambient ); 61void Develop_UpdateMatchHotkeys (); 62 63static int * stc_dblevel = R13_OFFSET (-0x6C98 ); 64 65#endif