[Commands GUI] Adjust scaling for VT2
This commit is contained in:
parent
1da287592a
commit
09245cda24
1 changed files with 9 additions and 1 deletions
|
@ -54,8 +54,12 @@ local function word_wrap(text, font_material, font_size, max_width)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function draw(commands_list, selected_command_index)
|
local function draw(commands_list, selected_command_index)
|
||||||
--vmf:pcall(function()
|
-- VT2 requires applying additional HUD scaling
|
||||||
|
if not VT1 then
|
||||||
|
UPDATE_RESOLUTION_LOOKUP(true, UISettings.hud_scale * 0.01)
|
||||||
|
end
|
||||||
|
|
||||||
|
--vmf:pcall(function()
|
||||||
local selected_command_new_index = 0
|
local selected_command_new_index = 0
|
||||||
|
|
||||||
-- pick displayed commands
|
-- pick displayed commands
|
||||||
|
@ -166,6 +170,10 @@ local function draw(commands_list, selected_command_index)
|
||||||
total_number_indicator_position, Color(255, 100, 100, 100))
|
total_number_indicator_position, Color(255, 100, 100, 100))
|
||||||
end
|
end
|
||||||
--end)
|
--end)
|
||||||
|
|
||||||
|
if not VT1 then
|
||||||
|
UPDATE_RESOLUTION_LOOKUP(true)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return draw
|
return draw
|
||||||
|
|
Loading…
Add table
Reference in a new issue