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
Render & Client functions Ideas (UI, ...) #33
Comments
There are many things here that are really great 👍 |
Fixed Alpha color is not working. Note: Lines still doesn't support Alpha |
I've added |
WE NEED TO FUND THIS!!!! |
Maybe the possibility to add fonts and use fonts' names instead of numbers ? 🤔 |
Audios and HTML frames got in! I think the other Canvas/UI functions are deprecated now with that xD. |
Maybe we can close this issue? |
It still contains some other stuff that are still valid suggestions |
I think we should keep the Canvas/UI as it can be useful for quick and dirty debugging stuff. |
Introduction
This is a big list of my ideas to improve and add new functions for UI
For now, only for client interface, but maybe later, include some of them to render directly into the server so that everyone can see (ex : Text displays name of pnj, circle on the ground for entity interaction like create/destroy car, ect)
I know that some functions of parameters will not be possible for now due to limitations.
Notes:
This list can be updated by me at anytime to precise some functions or add new ones
I use
n
for numbersAnd sorry for my mistakes in this long message
It may be possible that i forgot some parameters in the functions
Also, some functions can be useless sometimes.
Before that, some bugs (not tested since discovered)
- Alpha color is not workingNow, good reading :)
This is a list for modifying existing functions
AddBox(number
ID,Vector2D
StartPosition,Vector2D
EndPosition,number
Thickness,Color
Color)number
ID,Vector2D
StartPosition,Vector2D
EndPosition,number
Thickness,Color
ThicknessColor,boolean
isfilled,Color
fillcolor)NEW Functions that draws something
number
ID,struct
Locations,number
ThicknessBorder,Color
ThicknessBorderColor,boolean
isfilled,Color
fillcolor)Vector2D
) are stored in a structure so struct[0], struct[n
] until nillnumber
ID,string
ImageLocation,Vector2D
Position,number
Scale,Vector2D
putcustomsize,number
Opacity,boolean
backgcolor,Color
backgrcolor)number
ID,Vector2D
Position,string
Basetext,number
fontid,number
fontsize,number
CharacterLimit,Vector2D
MaxCharSize)number
ID,Vector2D
Position,number
NumberInside,number
fontid,number
fontsize,number
CharacterLimit,Vector2D
MaxCharSize)number
ID,Vector2D
StartPosition,Vector2D
EndPosition,string
Text,Color
TextColor,number
ThicknessBorder,Color
ColorThicknessBorder,boolean
isfilled,Color
fillcolor,Color
HoverColor)HoverColor
if isfilled is false then this color will be the ColorThicknessBorder when mouse hover the button, else, it will be the fillcolornumber
ID,string
ImageLocation,Vector2D
Position,number
Scale,Vector2D
Size,number
Opacity,Color
outlinehover,boolean
backgcolor,Color
backgrcolor)number
ID,Vector2D
StartPosition,Vector2D
EndPosition,Color
Background)number
ID,Vector2D
StartPosition,Vector2D
EndPosition,string
DefaultBind,Color
TextColor,number
ThicknessBorder,Color
ColorThicknessBorder,boolean
isfilled,Color
fillcolor,Color
HoverColor)press any key to bind
when clicking, replace the old bind key by the new onenumber
ID,Vector2D
Position,Vector2D
BoxSize,Vector2D
TableSize,number
ThicknessBorder,Color
ThicknessColorBorder,boolean
isfilled,Color
fillcolor)number
ID,Vector2D
StartPosition,Vector2D
EndPosition,string
ImageForOptionalCustomSliderIndicator,number
DefaultValue,number
SlideMinValue,number
SlideMaxValue,Color
LineColor,number
ThicknessBorder,Color
ColorThicknessBorder,boolean
hasbackgrcolor,Color
backgrcolor)number
ID,Vector2D
StartPosition,Vector2D
EndPosition,string
ModelLocation,number
ThicknessBorder,Color
ColorThicknessBorder,boolean
hasbackgrcolor,Color
backgroundcolor,boolean
usercaninteract,Vector
DefaultCameraPos,Rotator
DefaultCameraRotation )number
ID,Vector2D
StartPosition,Vector2D
EndPosition,number
ThicknessBorder,Color
ColorThicknessBorder,boolean
isfilled,Color
fillcolor)NEW events
Not sure about theses one in the events.
number
id,type
button)number
id,type
button)Add custom events, pls
NEW get functions
Vector2D
number
ID)Vector2D
number
ID)Vector2D
number
ID)Vector2D
number
ID)Vector2D
number
ID)boolean
number
ID)Vector2D
number
ID)string
number
ID)Vector2D
number
ID)number
number
ID)number
number
ID)Vector2D
number
ID)number
number
ID)number
number
ID)string
number
ID)Vector
number
ID)Rotator
number
ID)Vector2D
number
ID)Vector2D
number
ID)string
number
ID)Color
number
ID)Vector2D
number
ID)Vector2D
number
ID)number
number
ID)string
number
ID)Vector2D
number
ID)Vector2D
Vector
Rotator
Vector
String
NEW set functions
Character
Character,number
ViewMode,Vector
NewCameraPos,Rotator
NewCameraRotation)Character
Character,number
ViewMode)Draw in the map
Add possibility to draw and interact with UI elemements like in the screen but instead of being draw on the screen, theses can be draw on the server, in the map so for example in the map, in a certain location, a image when we can interact with it and draw buttons on it that can be interactive when the cursor is inside or when we click.
Voila, this thing cost me too much time, but here it is
If you have any suggestions, comment below
And sorry if sometimes i am not clear (or english mistakes :/)
Thanks.
EDITS
EDITS
EDITS
here i will make some editings
20:56 15/05/20
It could be good to add server redirection, for example when creating gamemode, some type of gamemode can require different servers to help seperate games.
number
ip,number
port,string
passwordIfAny)boolean
number
ip,number
port)string
number
ip,number
port)string
number
ip,number
port)number
number
ip,number
port)number
number
ip,number
port)Of course, need limitations to avoid DDOS attacks.
Also it can be good that there is possibility to connect to a seperate mysql databse for example grades between server, communication of multiple server for a gamemode (see the state of a game, ect) But only server file to avoid steal password
Audio
Yes audio, great, ability to play music files
Example of functions
number
ID,string
audiofile,number
volume,boolean
isloop)number
ID)number
ID)number
ID)number
ID)number
ID,boolean
isloop)number
ID,number
volume)number
number
ID)boolean
number
ID)string
number
ID)HTML frame
Play videos, url for info, communities, ect
Add a option to Nanos game settings to disable it.
number
ID,string
URL,Vector2D
StartPosition,Vector2D
EndPosition,number
ThicknessBorder,Color
ThicknessBorderColor)number
ID)number
ID,boolean
audioplay)number
ID,string
URL)string
number
ID)string
number
ID)boolean
number
ID)Vector2D
number
ID)Vector2D
number
ID)Forgot to add some get function for UI
EDIT 16/05/20
Vector2D
number
ID)Vector2D
number
ID)Vector2D
number
ID)Vector2D
number
ID)Vector2D
number
ID)Vector2D
number
ID)Vector2D
number
ID)Vector2D
number
ID)Vector2D
number
ID)Vector2D
number
ID)And also events
Again not really sure about theses ones
number
id,type
input)number
id,type
input)number
id,type
input)number
id)number
id,type
numberorcharacter)number
id)number
id)number
id)number
id)The text was updated successfully, but these errors were encountered: