Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Add tooltip for difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo27 committed May 27, 2019
1 parent 3fb8775 commit 2b8b9bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/assets/localization/default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ initialParams.results.second.positive=Second line (if really positive):
initialParams.results.second.negative=Second line (if really negative):
initialParams.metadata.version=Last saved in {0}
initialParams.metadata.recommendedDifficulty=Recommended difficulty:
initialParams.metadata.recommendedDifficulty.tooltip=This difficulty will be shown on the game select screen if set.
initialParams.metadata.difficultyNotSet=Difficulty not yet set
tapalong.info=Tap to the music/remix to find the tempo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class MetadataStage(ipStage: InitialParamsStage, palette: UIPalette)
this.text = "initialParams.metadata.recommendedDifficulty"
this.textWrapping = false
this.textAlign = Align.left
this.tooltipTextIsLocalizationKey = true
this.tooltipText = "initialParams.metadata.recommendedDifficulty.tooltip"
}
difficultyDown = Button(palette, this, this).apply {
this.location.set(pixelX = 8f, screenX = 0f, screenWidth = 0f, pixelWidth = 40f, screenHeight = 0f, screenY = 1f, pixelY = -40f * 2, pixelHeight = 40f)
Expand Down

0 comments on commit 2b8b9bd

Please sign in to comment.