Skip to content

Conversation

lL1l1
Copy link
Contributor

@lL1l1 lL1l1 commented Oct 13, 2025

Description of the changes

Annotate OnMouseButtonPress and related code

Testing done on the proposed changes

read output from clicking with left/right/middle mouse buttons after using this command

local ui = import("/lua/ui/uimain.lua")
local f = function(event)
	reprsl(event)
end
ui.AddOnMouseClickedFunc(event)
ForkThread(function()
	WaitSeconds(5)
	ui.RemoveOnMouseClickedFunc(f)
end)

Checklist

@lL1l1 lL1l1 requested a review from 4z0t October 13, 2025 23:45
@lL1l1 lL1l1 added area: ui Anything to do with the User Interface of the Game type: intellisense labels Oct 13, 2025
@lL1l1 lL1l1 marked this pull request as ready for review October 13, 2025 23:46
@4z0t
Copy link
Member

4z0t commented Oct 14, 2025

Perhaps creating an alias for this function type would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui Anything to do with the User Interface of the Game type: intellisense

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants