Skip to main content
Version: 26.1.2 (Latest)

Scholarship

Scholarship is the part of a book page that the player sees and interacts with when research is involved. It draws the research of an entry on the page, and handles the clicks on it: a scholarship block shows the stages and rows of the entry research, and the player clicks a row to perform an action or completes a stage.

Scholarship is the UI and interaction layer. The research data it shows is described in Research, and the conditions that unlock content are described in Research Conditions. The Glossary explains how the three fit together.

What scholarship covers​

  • Scholarship block: the box on a page that lists the rows of the current stage. It is drawn at the bottom of a page, and it is also the content of a scholarship page.
  • Rows: one line per research element of the stage, with an icon, a title, details and a met or not met state. Rows are grouped into scholarship groups.
  • Click interactions: a row with an action is clickable, and so is the Complete button of a manual stage. Hovering a row shows its costs.
  • Icons: the icons and badges of rows and groups, and the textures used when a row has no icon of its own, see Icons and Textures.
  • Presenters: the client-side code that turns a hook, an effect or a cost into a row. The built-in presenters cover the common cases, and Custom Presenters describes how to add your own.
  • Feedback messages: short messages that tell the player why an action did not happen, e.g. that it is not available right now.
  • Display modes: where the block appears on the entry, see Scholarship Display.
  • Scholarship page type: a page that shows the block, see Scholarship Page.
  • Lang keys: the built-in texts of the block and its actions, see Scholarship Lang Keys.

Action verbs​

An action row shows a verb that depends on the kind of action:

KeyTextWhen it is shown
modonomicon.gui.scholarship.action.takeClick to take %sAn action that gives the player something, e.g. a blank research note
modonomicon.gui.scholarship.action.take_againClick to take another %sThe same action again, for a repeatable take
modonomicon.gui.scholarship.action.performClick to perform this actionAn action without a title
modonomicon.gui.scholarship.action.perform_titledClick to perform: %sAn action with a title
modonomicon.gui.scholarship.action.already_heldYou already have this.A take action when the player already holds what it gives

Actions are described in Actions, Costs and Effects.

Terms in the datagen API​

  • EntryProvider.scholarshipPage(...) declares a scholarship page, see Entry Research.
  • EntryProvider.scholarshipDisplay(...) sets the display mode of the entry.
  • BookModel.withDefaultScholarshipDisplay(...) sets the default display mode of the book.