Skip to content

Commit

Permalink
Update snowflakes loc entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuchenjimmy authored Jan 8, 2025
1 parent adc8aa1 commit d9d2dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/ui/lobby/lobby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6588,7 +6588,7 @@ function ShowLobbyOptionsDialog()
if true then
--snowflakes count
local currentSnowFlakesCount = Prefs.GetFromCurrentProfile('SnowFlakesCount') or 100
local slider_SnowFlakes_Count_TEXT = UIUtil.CreateText(dialogContent, LOC("<LOC lobui_0410>Snowflakes count").. currentSnowFlakesCount, 14, 'Arial', true)
local slider_SnowFlakes_Count_TEXT = UIUtil.CreateText(dialogContent, LOC("<LOC lobui_0447>Snowflakes count").. currentSnowFlakesCount, 14, 'Arial', true)
LayoutHelpers.AtRightTopIn(slider_SnowFlakes_Count_TEXT, dialogContent, 27, 202)

-- slider for changing chat font size
Expand All @@ -6601,7 +6601,7 @@ function ShowLobbyOptionsDialog()
slider_SnowFlakes_Count:SetValue(currentSnowFlakesCount)
slider_SnowFlakes_Count.OnValueChanged = function(self, newValue)
local sliderValue = math.floor(newValue)
slider_SnowFlakes_Count_TEXT:SetText(LOC("<LOC lobui_0410>Snowflakes count").. sliderValue)
slider_SnowFlakes_Count_TEXT:SetText(LOC("<LOC lobui_0447>Snowflakes count").. sliderValue)
Prefs.SetToCurrentProfile('SnowFlakesCount', sliderValue)
import("/lua/ui/events/SnowFlake.lua").Clear()
import("/lua/ui/events/SnowFlake.lua").CreateSnowFlakes(GUI, sliderValue)
Expand Down

0 comments on commit d9d2dbb

Please sign in to comment.