void CreateEditingWidgets() { DisposeEditingWidgets(); buttons[8] = Make( -140, 60, "Key: " + curHotkey.BaseKey, 250, 30, textFont, BaseKeyClick ); buttons[9] = Make( 140, 60, "Modifiers: " + MakeFlagsString( curHotkey.Flags ), 250, 30, textFont, ModifiersClick ); buttons[10] = Make( -10, 120, curHotkey.MoreInput ? "yes" : "no", 50, 25, textFont, LeaveOpenClick ); buttons[11] = Make( -100, 160, "Save changes", 160, 30, textFont, SaveChangesClick ); buttons[12] = Make( 100, 160, "Remove hotkey", 160, 30, textFont, RemoveHotkeyClick ); currentAction = MenuInputWidget.Create( game, 0, 90, 600, 25, "", Anchor.Centre, Anchor.Centre, regularFont, titleFont, hintFont, new StringValidator( 64 ) ); currentMoreInputLabel = TextWidget.Create( game, -170, 120, "Keep input bar open:", Anchor.Centre, Anchor.Centre, textFont ); if( curHotkey.Text == null ) curHotkey.Text = ""; currentAction.SetText( curHotkey.Text ); }