Skip to content

Commit

Permalink
Fix gui issues
Browse files Browse the repository at this point in the history
fixes #133
  • Loading branch information
Beachman4 committed Feb 2, 2024
1 parent f7da577 commit a9b2193
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,13 @@ class MEWirelessTransceiverScreen(menu: MEWirelessTransceiverMenu, inventory: In
channels.forEachIndexed { index, channelInfo ->
val channelField = this.channelFields[channelInfo]
if (channelField != null) {
channelField.updateValues(shouldShowChannel(index), selectedChannel == channelInfo, channelY)
val shouldShow = shouldShowChannel(index)
channelField.updateValues(shouldShow, selectedChannel == channelInfo, channelY)
channelField.render(guiGraphics, 0, 0, 0f)

if (shouldShow) {
channelY += 12
}
}
}

Expand Down

0 comments on commit a9b2193

Please sign in to comment.