generated from sigonasr2/CPlusPlusProjectTemplate
Effects good to go
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
95d0f85cff
commit
e0f6a98407
@ -1502,7 +1502,6 @@ public:
|
||||
} else {
|
||||
DrawWrappedText({4,4},CURRENT_ENCOUNTER.entities[BATTLE_CURRENT_TURN_ENTITY]->name+" "+(char)('A'+BATTLE_CURRENT_TURN_ENTITY)+" with "+CURRENT_ENCOUNTER.entities[BATTLE_CURRENT_TURN_ENTITY]->selectedMove->name,WIDTH-8,WHITE,{2,2});
|
||||
}
|
||||
FillRectDecal({0,0},{WIDTH,HEIGHT},Pixel(ORIGINAL_FOREGROUND_EFFECT_COLOR.r,ORIGINAL_FOREGROUND_EFFECT_COLOR.g,ORIGINAL_FOREGROUND_EFFECT_COLOR.b,ORIGINAL_FOREGROUND_EFFECT_COLOR.a*PIXEL_EFFECT_TRANSPARENCY));
|
||||
}break;
|
||||
}
|
||||
if (IN_BATTLE_ENCOUNTER||(!CUTSCENE_ACTIVE&&PLAYER_HP!=PLAYER_MAXHP)) {
|
||||
@ -1531,6 +1530,7 @@ public:
|
||||
FillRectDecal(pixels[i]->pos,pixels[i]->size,{pixels[i]->r,pixels[i]->g,pixels[i]->b,pixels[i]->a});
|
||||
}
|
||||
}
|
||||
FillRectDecal({0,0},{WIDTH,HEIGHT},Pixel(ORIGINAL_FOREGROUND_EFFECT_COLOR.r,ORIGINAL_FOREGROUND_EFFECT_COLOR.g,ORIGINAL_FOREGROUND_EFFECT_COLOR.b,ORIGINAL_FOREGROUND_EFFECT_COLOR.a*PIXEL_EFFECT_TRANSPARENCY));
|
||||
SetDrawTarget(1);
|
||||
}
|
||||
if (messageBoxVisible) {
|
||||
@ -2045,7 +2045,7 @@ public:
|
||||
Clear(BLANK);
|
||||
SetDrawTarget(1);
|
||||
applyPixelEffect(
|
||||
{(pos.x-PLAYER_COORDS[0])*32+WIDTH/2-16-effect->effectSize.x/2,(pos.y-PLAYER_COORDS[1])*32+HEIGHT/2-16-effect->effectSize.y/2},
|
||||
{(pos.x-PLAYER_COORDS[0])*32+WIDTH/2-effect->effectSize.x/2,(pos.y-PLAYER_COORDS[1])*32+HEIGHT/2-effect->effectSize.y/2},
|
||||
effect->effectSize,
|
||||
effect->pos_low,
|
||||
effect->pos_high,
|
||||
@ -2065,7 +2065,7 @@ public:
|
||||
Clear(BLANK);
|
||||
SetDrawTarget(1);
|
||||
applyPixelEffect(
|
||||
{(pos.x-PLAYER_COORDS[0])*32+WIDTH/2-16-power->effect->effectSize.x/2,(pos.y-PLAYER_COORDS[1])*32+HEIGHT/2-16-power->effect->effectSize.y/2},
|
||||
{(pos.x-PLAYER_COORDS[0])*32+WIDTH/2-power->effect->effectSize.x/2,(pos.y-PLAYER_COORDS[1])*32+HEIGHT/2-power->effect->effectSize.y/2},
|
||||
power->effect->effectSize,
|
||||
power->effect->pos_low,
|
||||
power->effect->pos_high,
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user