Skip to content

Commit

Permalink
Remove unused SetNewButtonTextures function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisKitching committed Dec 20, 2014
1 parent 7d92cac commit e900684
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions lua/ui/uiutil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -524,24 +524,6 @@ function CreateButton(parent, up, down, over, disabled, label, pointSize, textOf
return button
end

function SetNewButtonTextures(button, up, down, over, disabled)
-- if strings passed in, make them skinnables, otherwise assume they are already skinnables
if type(up) == 'string' then
up = SkinnableFile(up)
end
if type(down) == 'string' then
down = SkinnableFile(down)
end
if type(over) == 'string' then
over = SkinnableFile(over)
end
if type(disabled) == 'string' then
disabled = SkinnableFile(disabled)
end

button:SetNewTextures(up, down, over, disabled)
end

--* create a button with standardized texture names
--* given a path and button name prefix, generates the four button asset file names according to the naming convention
function CreateButtonStd(parent, filename, label, pointSize, textOffsetVert, textOffsetHorz, clickCue, rolloverCue)
Expand Down Expand Up @@ -626,14 +608,6 @@ function CreateDialogButtonStd(parent, filename, label, pointSize, textOffsetVer
return button
end

function SetNewButtonStdTextures(button, filename)
SetNewButtonTextures(button
, filename .. "_btn_up.dds"
, filename .. "_btn_down.dds"
, filename .. "_btn_over.dds"
, filename .. "_btn_dis.dds")
end

--* return the standard scrollbar
function CreateVertScrollbarFor(attachto, offset_right, filename, offset_bottom, offset_top)
offset_right = offset_right or 0
Expand Down

0 comments on commit e900684

Please sign in to comment.