Skip to content

Commit

Permalink
Merge pull request GmodStarfall#139 from Xandaros/starfallUsed
Browse files Browse the repository at this point in the history
Rename starfall_used to starfallUsed
  • Loading branch information
awilliamson committed Mar 23, 2014
2 parents d7e4e8d + 153ecec commit 9b633ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/entities/starfall_screen/cl_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ usermessage.Hook( "starfall_screen_used", function ( data )
local screen = Entity( data:ReadShort() )
local activator = Entity( data:ReadShort() )

screen:runScriptHook( "starfall_used", SF.Entities.Wrap( activator ) )
screen:runScriptHook( "starfallUsed", SF.Entities.Wrap( activator ) )

-- Error message copying
if screen.error then
Expand Down
2 changes: 1 addition & 1 deletion lua/entities/starfall_screen/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function ENT:Use( activator )
umsg.End( )
end
if self.sharedscreen then
self:runScriptHook( "starfall_used", SF.Entities.Wrap( activator ) )
self:runScriptHook( "starfallUsed", SF.Entities.Wrap( activator ) )
end
end

Expand Down
5 changes: 5 additions & 0 deletions lua/starfall/libs_cl/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,11 @@ function render_library.getScreenPos()
return pos, rot
end

--- Called when a player uses the screen
-- @name starfallUsed
-- @class hook
-- @param activator Player using the screen

---
-- @name Screen information table
-- @class table
Expand Down

0 comments on commit 9b633ca

Please sign in to comment.