Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu Presence / ROC / ROM #52

Open
Vurv78 opened this issue Mar 27, 2022 · 1 comment
Open

Menu Presence / ROC / ROM #52

Vurv78 opened this issue Mar 27, 2022 · 1 comment
Labels
A-Lua Api Area: Lua Api (for plugins) R-Enhancement New feature or request S-Low Severity: Low

Comments

@Vurv78
Copy link
Owner

Vurv78 commented Mar 27, 2022

Have a menu.lua file that will be run when the game launches in all plugins

Essentially could act as a replacement for https://github.com/glua/gmod-menu-plugins

As well as for ROC (https://github.com/glua/gm_roc), except this would be between both realms.

Then there'd be ability to communicate with Autorun, with an api potentially like:

-- CLIENT
Autorun.sendToMenu(55, "hello", "world")
Autorun.getFromMenu(print)

-- MENU
Autorun.getFromClient(function(xyz)
	print(xyz)
end)
Autorun.sendToClient(55)

--[[
Or an event based design
]]

-- CLIENT or MENU
Autorun.onEvent("xyz", function()

end)

-- CLIENT or MENU
Autorun.runEvent("xyz", 55)

Feel free to give API design ideas in here or on the discord.

@Vurv78 Vurv78 added R-Enhancement New feature or request S-Low Severity: Low A-Lua Api Area: Lua Api (for plugins) labels Mar 27, 2022
@Andrew-Eathan
Copy link

an event based design would be more practical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Lua Api Area: Lua Api (for plugins) R-Enhancement New feature or request S-Low Severity: Low
Projects
None yet
Development

No branches or pull requests

2 participants