v1.2.0:improved the noticeablity of the journal button flashing
This commit is contained in:
parent
01757b71e5
commit
c6dd031c9a
|
@ -268,6 +268,7 @@ public class MenuPane extends Component {
|
||||||
if (flashingPage != null){
|
if (flashingPage != null){
|
||||||
journalIcon.am = (float)Math.abs(Math.cos( StatusPane.FLASH_RATE * (time += Game.elapsed) ));
|
journalIcon.am = (float)Math.abs(Math.cos( StatusPane.FLASH_RATE * (time += Game.elapsed) ));
|
||||||
keyIcon.am = journalIcon.am;
|
keyIcon.am = journalIcon.am;
|
||||||
|
bg.brightness(0.5f + journalIcon.am);
|
||||||
if (time >= Math.PI/StatusPane.FLASH_RATE) {
|
if (time >= Math.PI/StatusPane.FLASH_RATE) {
|
||||||
time = 0;
|
time = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user