Permalink
Browse files

Save the biography between multiple edits.

  • Loading branch information...
1 parent f2d042e commit c1ff7fcbe5137d4e3cd47bc897654b9777604959 @mounirlamouri mounirlamouri committed Aug 24, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 gemrb/GUIScripts/iwd/CharGen.py
View
7 gemrb/GUIScripts/iwd/CharGen.py
@@ -2560,9 +2560,14 @@ def BiographyPress():
BiographyWindow = GemRB.LoadWindow (51)
BiographyField = BiographyWindow.GetControl (4)
BiographyField = BiographyField.ConvertEdit (3)
- BiographyField.SetText (19423)
BiographyField.SetStatus (IE_GUI_CONTROL_FOCUSED)
+ BIO = GemRB.GetToken("Biography")
+ if BIO:
+ BiographyField.SetText (BIO)
+ else:
+ BiographyField.SetText (19423)
+
BiographyClearButton = BiographyWindow.GetControl (5)
BiographyClearButton.SetState (IE_GUI_BUTTON_ENABLED)
BiographyClearButton.SetEvent (IE_GUI_BUTTON_ON_PRESS, BiographyClearPress)

0 comments on commit c1ff7fc

Please sign in to comment.