You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zwolf8 opened this issue
Feb 19, 2020
· 0 comments
Labels
FeatureSuggestions or PRs that add new featuresGUIStuff to do with the GUI systemsLong termFeature requests that a more of a long term thing rather than a do now thing
Add mathematical operators (eg. GuiDim.new(10, 0, 0, 0) + GuiDim.new(5, 0, 0, 0))
Add liner interpolation (lerp) (eg. myDim:Lerp(otherDim), 0.1) would allow to smoothly move between two points with a gui.
Add tostring support when using tostring(myDim) (also applies to print(myDim) it will print the coordinates. Useful for debugging.
Implementations ideas [optional]
Mathematical operators and tostring can be done through metatables.
(__add)
(__sub)
(__mul)
/ (__div)
% (__mod)
^ (__pow)
tostring/print = (__tostring)
Lerp impl: float lerp(float a, float b, float t) { return a + (b - a) * t; }
FeatureSuggestions or PRs that add new featuresGUIStuff to do with the GUI systemsLong termFeature requests that a more of a long term thing rather than a do now thing
Describe your suggestion
Add mathematical operators (eg. GuiDim.new(10, 0, 0, 0) + GuiDim.new(5, 0, 0, 0))
Add liner interpolation (lerp) (eg. myDim:Lerp(otherDim), 0.1) would allow to smoothly move between two points with a gui.
Add tostring support when using tostring(myDim) (also applies to print(myDim) it will print the coordinates. Useful for debugging.
Implementations ideas [optional]
Mathematical operators and tostring can be done through metatables.
/ (__div)
% (__mod)
^ (__pow)
tostring/print = (__tostring)
Lerp impl:
float lerp(float a, float b, float t) { return a + (b - a) * t; }
see here for sol metatable documentation.
The text was updated successfully, but these errors were encountered: