-
Notifications
You must be signed in to change notification settings - Fork 108
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
(WIP) VGUI Library #1413
(WIP) VGUI Library #1413
Conversation
Should probably use normal Lua operators instead of GLua specific ones. Breaks like 90% of code editors. |
Also might want to default the permission for these to owner only and add a system to limit the amount of panels you can create, probably using SF.LimitObject. |
I'll add the LimitObject |
Will start looking at it soon. One downside I forsee is this is going to pollute the docs. |
Maybe all the type names can be prefixed UI so that they all appear together at the bottom of the type list. |
For example, instead of DTextEntry, UITextEntry. |
Is it possible to have undocumented aliases? |
StarfallEx/lua/starfall/instance.lua Lines 452 to 477 in 3fe27da
These do not show up in the documentation. Unfortunately they are not syntax highlighted because of that ;f |
Those are just aliases for backwards compatibility. If you want something to be undocumented, just change the Why do you want aliases? |
That's a good thing, otherwise you'd never know if your script is using now deprecated functions since starfall doesn't have a warning system or anything. |
Alright, renamed all of the types to start with UI instead of D. That was painful. I don't think I missed any of them, if there are any typos they are hopefully only in the docs. |
1000 default panel limit and no default permission for |
Code could be slimmed down a ton if you didn't create the temporary variables for the unwrapped vgui element |
Forgot to make it owner only by default. Fixed. |
Not much has changed since the last PR that I closed, if anything. Just wanted to leave this here so people don't think it was lost forever or something.
Still needs permissions and an efficient way to override the panels' Paint functions.