Permalink
Browse files

InventoryCommon: added basic pst note highlighting

  • Loading branch information...
1 parent d7fb0ad commit ffb4c1df77065ab5f5068a4dd2f5af8e5dc3baed @lynxlynxlynx lynxlynxlynx committed Dec 29, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 gemrb/GUIScripts/InventoryCommon.py
@@ -276,6 +276,12 @@ def DisplayItem (itemresref, type):
text = item["ItemDesc"]
else:
text = item["ItemDescIdentified"]
+ if GUICommon.GameIsPST():
+ # add NOTE highlighting; obviously English-only
+ text = GemRB.GetString (text)
+ tmp = text.split("NOTE:")
+ if len(tmp) > 1:
+ text = "[color=FFFFFF]NOTE:[/color]".join(tmp)
Text.SetText (text)
#left button

0 comments on commit ffb4c1d

Please sign in to comment.