Skip to content

Commit

Permalink
Scale attach context based on the UI scale setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnwop committed May 2, 2020
1 parent 3eb777e commit bf7bc5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ManualAttach.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ function ManualAttach:new(mission, input, i18n, inputDisplayManager, soundManage
self.allowPtoEvent = true
self.handleEventCurrentDelay = ManualAttach.TIMER_THRESHOLD

self.uiScale = g_gameSettings:getValue("uiScale")
self.context = ContextActionDisplay.new(self.hudAtlasPath, inputDisplayManager)
self.context:setScale(self.uiScale)

self.detectionHandler = ManualAttachDetectionHandler:new(self.isServer, self.isClient, self.mission, modDirectory)

Expand Down

0 comments on commit bf7bc5e

Please sign in to comment.