mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
HUD tracking: R button prompt for ice cubes
This commit is contained in:
parent
f0c759dc2f
commit
c429dfb880
1 changed files with 9 additions and 0 deletions
|
|
@ -130,6 +130,9 @@ struct TargetTracking
|
|||
case MT_BUBBLESHIELDTRAP:
|
||||
return false;
|
||||
|
||||
case MT_PLAYER:
|
||||
return !tooltip;
|
||||
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
|
|
@ -392,6 +395,12 @@ std::optional<TextElement> object_tooltip(const mobj_t* mobj)
|
|||
[&] { return TextElement("Try \xA7!").font(splitfont); }
|
||||
);
|
||||
|
||||
case MT_PLAYER:
|
||||
return conditional(
|
||||
mobj->player == stplyr && stplyr->icecube.frozen,
|
||||
[&] { return TextElement("\xA7"); }
|
||||
);
|
||||
|
||||
default:
|
||||
return {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue