Skip to content

Commit

Permalink
Move derma icon browser to a more sensible place
Browse files Browse the repository at this point in the history
So we don't have to worry about forcing clients to download a pointless file that returns on execution
  • Loading branch information
robotboy655 committed Apr 19, 2023
1 parent d089448 commit cb7ab3c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion garrysmod/lua/derma/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ include( "derma_menus.lua" )
include( "derma_animation.lua" )
include( "derma_utils.lua" )
include( "derma_gwen.lua" )
include( "derma_icon_browser.lua" )

function Derma_Hook( panel, functionname, hookname, typename )

Expand Down
1 change: 0 additions & 1 deletion garrysmod/lua/includes/extensions/string.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function string.ToTable( input )
return tbl
end


--[[---------------------------------------------------------
Name: string.JavascriptSafe( string )
Desc: Takes a string and escapes it for insertion in to a JavaScript string
Expand Down
2 changes: 2 additions & 0 deletions garrysmod/lua/includes/init_menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ include( "util/javascript_util.lua" )
include( "util/tooltips.lua" )

require( "notification" )

include( "menu/derma_icon_browser.lua" )
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
-- Keep the icon browser as part of the menu UI - convenient for quickly pressing ESC to open/close icon browser once derma_icon_browser has been run
if not MENU_DLL then return end

function Derma_OpenIconBrowser()
-- Because the icon browser will be part of the menu, activate the menu so that it definitely shows up otherwise a derma_icon_browser bind does nothing
Expand Down

0 comments on commit cb7ab3c

Please sign in to comment.