mirror of
https://github.com/CTR-tools/CTR-ModSDK.git
synced 2025-03-01 09:36:28 +00:00
for pc port
This commit is contained in:
parent
daa8853a70
commit
585dee76d8
@ -9,7 +9,7 @@ void DECOMP_MENUBOX_DrawQuip(char *comment, short startX, int startY, u_int size
|
||||
|
||||
if ((sizeX & 0xffff) == 0)
|
||||
{
|
||||
width = DecalFont_GetLineWidth(comment, fontType);
|
||||
width = DECOMP_DecalFont_GetLineWidth(comment, fontType);
|
||||
sizeX = width + 0xc;
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ void DECOMP_MENUBOX_DrawQuip(char *comment, short startX, int startY, u_int size
|
||||
sizeY = (u_int)data.PlayerCommentBoxParams[fontType];
|
||||
|
||||
// Draw string
|
||||
DecalFont_DrawLine(comment,
|
||||
DECOMP_DecalFont_DrawLine(comment,
|
||||
startX, (data.PlayerCommentBoxParams[4 + fontType] + startY),
|
||||
fontType, textFlag);
|
||||
|
||||
@ -32,5 +32,5 @@ void DECOMP_MENUBOX_DrawQuip(char *comment, short startX, int startY, u_int size
|
||||
r.y = startY;
|
||||
r.w = sizeX;
|
||||
r.h = sizeY;
|
||||
MENUBOX_DrawInnerRect(&r, boxFlag, sdata->gGT->backBuffer->otMem.startPlusFour);
|
||||
DECOMP_MENUBOX_DrawInnerRect(&r, boxFlag, sdata->gGT->backBuffer->otMem.startPlusFour);
|
||||
}
|
@ -135,6 +135,8 @@ int DECOMP_MEMPACK_GetFreeBytes();
|
||||
void DECOMP_MEMPACK_PopState();
|
||||
int DECOMP_MEMPACK_PushState();
|
||||
|
||||
void DECOMP_MENUBOX_DrawQuip(char *comment, short startX, int startY, u_int sizeX, short fontType,
|
||||
int textFlag, short boxFlag);
|
||||
void DECOMP_MENUBOX_DrawInnerRect(RECT* r, int x, void* ot);
|
||||
void DECOMP_MENUBOX_DrawSelf(struct MenuBox* mb, int param_2, short param_3, short width);
|
||||
void DECOMP_MENUBOX_DrawPolyGT4(struct Icon* icon, short posX, short posY, struct PrimMem* primMem, u_long* ot, u_int color0, u_int color1, u_int color2, u_int color3, char transparency, short scale);
|
||||
|
@ -180,7 +180,7 @@
|
||||
#include "../decompile/General/MenuBox/MENUBOX_DrawRwdTriangle.c"
|
||||
#include "../decompile/General/MenuBox/MENUBOX_DrawOuterRect_LowLevel.c"
|
||||
#include "../decompile/General/MenuBox/MENUBOX_DrawOuterRect_HighLevel.c"
|
||||
// MENUBOX_DrawQuip.c (wip)
|
||||
#include "../decompile/General/MenuBox/MENUBOX_DrawQuip.c"
|
||||
#include "../decompile/General/MenuBox/MENUBOX_DrawInnerRect.c"
|
||||
#include "../decompile/General/MenuBox/MENUBOX_DrawFullRect.c"
|
||||
#include "../decompile/General/MenuBox/MENUBOX_GetHeight.c"
|
||||
|
Loading…
x
Reference in New Issue
Block a user