You can find more information about me, and my blog, here!
erlite / advisor Goto Github PK
View Code? Open in Web Editor NEWAn open source and expandable administration framework for your Garry's Mod servers and addons.
License: MIT License
An open source and expandable administration framework for your Garry's Mod servers and addons.
License: MIT License
You can find more information about me, and my blog, here!
advisor_text_scale
convar, takes a number between 0.5 and 2Advisor.NumSlider
UI element with the same style as the others. Derives from DNumSlider
Settings
menu page. For now, only add the text scale setting.cl_fonts
when the value is changed.This will allow users to scale the font according to their screen's pixel density. Resolution scaling alone won't give us a "perfect" result.
Versioning should follow the basic Major.Minor.Hotfix
scheme.
Fetch a text file containing the current version from this repository's root. Name it version.txt
The check should be done on both server and client. Clients will only perform the check on InitPostEntity
.
Run a hook once we have retrieved the latest version and store it somewhere (maybe a file in the framework
module).
Name the hook Advisor.OnVersionRetrieved
, pass the current and latest versions.
Version should be displayed in the menu's home page, with a warning if it's out of date.
This should be the case, but for some reason it doesn't. Check if SteamID and the likes are valid or not.
Module: ui
File: cl_fonts.lua
Font sizes need to be set based on the current screen resolution. Hook GM:OnScreenSizeChanged()
to also re-create them if the player changes their window's size.
All responsive code needs to base itself on a default of 2560 x 1440
.
We'll need to find a good documentation generator for Lua and then host a website for it. Ideas are welcome.
To reproduce:
advisor_slay
and add a spaceadvisor_slay[space][space][proposed argument]
There should only be a single space there.
I don't think there's a point in splitting those two. The commands
module can stay standalone since it'll only contain actual commands and not the command handler.
This will be required for things like timed bans and votes.
Examples:
!ban 60 User
- Bans "User" for 60 minutes
!ban 1mo2w User
- Bans "User for a month and two weeks".
Should be able to parse years, months, weeks, days, hours, minutes and seconds using short suffixes.
The parsed argument should be passed in the command as a number in seconds.
Module: ui
Most of the current UI for Advisor isn't entirely responsive. Some elements do use the screen's resolution, but the others also need to be implemented.
Right now, there's no real performance concern since we're not doing any heavy processing of info, nor receiving anything from the server to populate tabs. However that may be the case in the future. To alleviate this, we'll need to implement the following:
Using MySQL and a remote server just sounds like too much trouble, especially since MySQL and SQLite have different syntax.
This issue is a bit late, but I'll update it as progress goes.
advisor_users
table has been started.user
for example).A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.