Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #27 from Hoikas/flash
Browse files Browse the repository at this point in the history
Client Window Flashing
  • Loading branch information
branan committed Apr 6, 2012
2 parents a6fae0d + 5d6a7fd commit 298b96b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Python/plasma/Plasma.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ def PtFirstPerson():
"""is the local avatar in first person mode"""
pass

def PtFlashWindow():
"""Flashes the client window if it is not focused"""
pass

def PtFogSetDefColor(color):
"""Sets default fog color"""
pass
Expand Down
5 changes: 5 additions & 0 deletions Python/xKI.py
Original file line number Diff line number Diff line change
Expand Up @@ -7044,6 +7044,10 @@ def IAddRTChat(self,player,message,cflags,forceKI=1):
else:
headerColor = ChatHeaderBroadcastColor
pretext = PtGetLocalizedString("KI.Chat.BroadcastMsgRecvd")
# if we're forcing the KI open, then it would probably be a good idea to flash
# the client window (usually happens with PMs and CCR/admin messages)
if forceKI:
PtFlashWindow()
# make sure the miniKI is up, if needs to be forced up
if forceKI and not IKIDisabled and not mKIdialog.isEnabled():
mKIdialog.show()
Expand Down Expand Up @@ -10364,6 +10368,7 @@ def IAlertKIStart(self):
global AlertTimeToUse
if not PtIsSinglePlayerMode():
if theKILevel >= kNormalKI:
PtFlashWindow()
if not AlertTimerActive:
PtDebugPrint("xKI: show KI alert",level=kDebugDumpLevel)
NewItemAlert.dialog.show()
Expand Down

0 comments on commit 298b96b

Please sign in to comment.