Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Fix delineation with pitch/volume tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo27 committed Jul 20, 2018
1 parent 06f7a36 commit dc9b336
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1553,12 +1553,17 @@ class Editor(val main: RHRE3Application, stageCamera: OrthographicCamera)
if (entity in selection) {
if (scrollMode == ScrollMode.VOLUME) {
if (entity is IVolumetric && (entity.isVolumetric || entity.volumePercent != IVolumetric.DEFAULT_VOLUME)) {
if (output.isNotEmpty()) {
output += "\n"
}
output += Localization["editor.msg.volume", entity.volumePercent]
}
} else if (scrollMode == ScrollMode.PITCH) {
if (entity is IRepitchable && (entity.canBeRepitched || entity.semitone != 0)) {
val semitoneText = (entity as? ModelEntity<*>)?.getTextForSemitone(
entity.semitone) ?: Semitones.getSemitoneName(entity.semitone)
val semitoneText = (entity as? ModelEntity<*>)?.getTextForSemitone(entity.semitone) ?: Semitones.getSemitoneName(entity.semitone)
if (output.isNotEmpty()) {
output += "\n"
}
output += if (entity is ShakeEntity) {
semitoneText
} else {
Expand Down

0 comments on commit dc9b336

Please sign in to comment.