NarumiSTG_HyperSnowDrifter/script/KevinSystem/Kevin_PlayerLib_HUD.dnh

133 lines
3.5 KiB
Plaintext

task _ShowChainHUD(){
// Playfield
// Multiplier
async{
let objPIVNum = ObjText_Create();
// AAAAAAA WHYYYYYYY
ObjText_SetFontSize(objPIVNum, 60);
ObjText_SetFontBold(objPIVNum, true);
ObjText_SetFontType(objPIVNum, "Origami Mommy");
ObjText_SetFontColorTop(objPIVNum, 0xFFFFFF);
ObjText_SetFontColorBottom(objPIVNum, 0xFFFFFF);
ObjText_SetFontBorderType(objPIVNum, BORDER_FULL);
ObjText_SetFontBorderColor(objPIVNum, 95, 209, 255);
ObjText_SetFontBorderWidth(objPIVNum, 4);
ObjText_SetHorizontalAlignment(objPIVNum, ALIGNMENT_LEFT);
Obj_SetRenderPriorityI(objPIVNum, 19);
ObjText_SetSidePitch(objPIVNum, -3);
ObjRender_SetPosition(objPIVNum, 32, 128, 0);
// DEBUG
//Obj_SetVisible(objPIV, false);
float value = 0;
while(true){
value = min(GetCommonDataPtr(POINTER_CHAIN, 1), CHAIN_MAX);
//PIVMultiplierValue = value/1000;
let yass = rtos("00.00", value);
if(GetCommonDataPtr(POINTER_SPECIALCHECK, false) == false){
ObjText_SetFontBorderWidth(objPIVNum, 3);
if(value < CHAIN_MAX){
ObjText_SetFontBorderColor(objPIVNum, 42, 0, 237);
ObjText_SetText(objPIVNum,
yass ~ "[font size=25 oy=32]x"
);
}
else{
ObjText_SetFontBorderColor(objPIVNum, 0, 240, 117);
ObjText_SetText(objPIVNum,
yass ~ "[font size=25 oy=32]x"
);
}
}
else{
ObjText_SetFontBorderColor(objPIVNum, 0xFF9A00);
ObjText_SetText(objPIVNum,
yass ~ "[font size=25 oy=32]x"
);
}
yield;
}
}
// Chain Timer
async{
let timerText = CreateTextObject(
275, 210, 32,
"", "Unispace",
0xB5FFEE, 0xFFFFFF,
0x397D88, 2,
19
);
while(true){
ObjText_SetText(timerText, IntToString(GetCommonDataPtr(POINTER_CHAINGAUGE, 100)));
yield;
}
}
// Chain Status
async{
let timerText = CreateTextObject(
275, 255, 32,
"", "Unispace",
0xFFE0A2, 0xFFFFFF,
0xCB6D00, 2,
19
);
while(true){
ObjText_SetText(timerText, GetCommonDataPtr(POINTER_SPECIALCHECK, false) ? "ACTIVE" : "INACTIVE");
ObjText_SetFontBorderColor(timerText, GetCommonDataPtr(POINTER_SPECIALCHECK, false) ? 0xCB6D00 : 0x67A41E);
ObjText_SetFontColorTop(timerText, GetCommonDataPtr(POINTER_SPECIALCHECK, false) ? 0xFFE0A2 : 0xD8FFA8);
yield;
}
}
// Ammo Status
async{
let ammoText = CreateTextObject(
1585, 445, 48,
"", "Unispace",
0xFFB8A0, 0xFFFFFF,
0xC53000, 2,
19
);
ObjText_SetFontBold(ammoText, true);
while(true){
ObjText_SetText(ammoText, rtos("000.00", GetCommonDataPtr(POINTER_SPECIALAMMO, 100)) ~ "[font sz=24 oy=20]/100.00");
yield;
}
}
}