Menu

HowToDevDialogInNoticeBoard

Sahits GmbH

HowTo integrate dialogs in NoticeBoard

< HowTo for developers

  1. Add enum value for the board in ENoticeBoardType
  2. Implement the titel retrieval in ch.sahits.game.openpatrician.javafx.service.NoticeBoardMenuTitleProvider#createTitle
  3. Implement a NoticeBoard[XY]MenuProvider in ch.sahits.game.openpatrician.javafx.service including test
  4. Add case in ch.sahits.game.openpatrician.javafx.service.NoticeBoardMenuProvider#createMenu to call the newly created MenuProvider. Improve the test.
  5. Add a mapping to the board in ch.sahits.game.openpatrician.display.notice.OpenPatricianNoticeBoard#map(ch.sahits.game.openpatrician.event.EViewChangeEvent)
  6. Ensure that the ViewChangeEvent is set with the proper type in the PolygonInitialisation implementation
  7. Implement a case in ch.sahits.game.openpatrician.display.dialog.service.DialogFactory#getDialog(ch.sahits.game.openpatrician.javafx.model.EDialogType, ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX)
  8. Override ch.sahits.game.openpatrician.display.dialog.CloseButtonDialog#executeOnCloseButtonClicked in the dialogs to handle the disabling of the menu entry once the dialog closes.

MongoDB Logo MongoDB