From e9006842cd5ea8617c5271287aa040483c97fe4d Mon Sep 17 00:00:00 2001 From: Chris Kitching Date: Fri, 19 Dec 2014 23:26:03 +0000 Subject: [PATCH] Remove unused SetNewButtonTextures function. --- lua/ui/uiutil.lua | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/lua/ui/uiutil.lua b/lua/ui/uiutil.lua index eac36132bf..92c8504004 100644 --- a/lua/ui/uiutil.lua +++ b/lua/ui/uiutil.lua @@ -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) @@ -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