z_parameter: Buttons (part 9) (#1192)

* import button docs

* cleanup

* sync timer val

* add flag comments

* Update src/code/z_parameter.c

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

* Update src/code/z_parameter.c

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

* Update src/code/z_parameter.c

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

* fix merge master

---------

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
This commit is contained in:
engineer124
2023-03-30 20:26:35 +11:00
committed by GitHub
parent 6685a4775e
commit f3c811d298
12 changed files with 1313 additions and 83 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ u16 gSceneIdsPerRegion[REGION_MAX][27] = {
s32 Inventory_GetBtnBItem(PlayState* play) {
if (gSaveContext.buttonStatus[0] == BTN_DISABLED) {
return ITEM_NONE;
} else if (gSaveContext.unk_1015 == ITEM_NONE) {
} else if (gSaveContext.bButtonStatus == BTN_DISABLED) {
return ITEM_NONE;
} else if (CUR_FORM_EQUIP(EQUIP_SLOT_B) == ITEM_NONE) {
if (play->interfaceCtx.unk_21C != 0) {
+1261 -42
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -2169,15 +2169,15 @@ void Player_DrawBlastMask(PlayState* play, Player* player) {
OPEN_DISPS(play->state.gfxCtx);
if (player->unk_B60 != 0) {
if (player->blastMaskTimer != 0) {
s32 alpha;
gSegments[0xA] = VIRTUAL_TO_PHYSICAL(player->maskObjectSegment);
AnimatedMat_DrawOpa(play, Lib_SegmentedToVirtual(&object_mask_bakuretu_Matanimheader_0011F8));
if (player->unk_B60 < 11) {
alpha = (player->unk_B60 / 10.0f) * 255;
if (player->blastMaskTimer <= 10) {
alpha = (player->blastMaskTimer / 10.0f) * 255;
} else {
alpha = 255;
}