Skip to content

Commit

Permalink
fixed credit info missing in one button
Browse files Browse the repository at this point in the history
  • Loading branch information
TimGoll committed Oct 10, 2023
1 parent 44a7209 commit 07f2cc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gamemodes/terrortown/gamemode/client/cl_search.lua
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,11 @@ function SEARCHSCRN:Show(data)
if data.credits > 0 and client:IsActiveShopper() and not clientRD.preventFindCredits then
if data.credits == 1 then
buttonConfirm:SetText("search_take_credit")
buttonConfirm:SetParams({credit = data.credits})
else
buttonConfirm:SetText("search_take_credits")
buttonConfirm:SetParams({credits = data.credits})
end
buttonConfirm:SetParams({credits = data.credits})
buttonConfirm:SetIcon(materialCredits)
buttonConfirm:SetSize(self.sizes.widthButtonCredits, self.sizes.heightButton)
buttonConfirm:SetPos(self.sizes.widthMainArea - self.sizes.widthButtonCredits, self.sizes.padding + 1)
Expand Down

0 comments on commit 07f2cc4

Please sign in to comment.