[B]This is not an addon release, this is a thread for ideas, and general help.
[/B]
It is not meant to look good, and it's really ugly. It has a huge empty space in the right that can be used for something. It uses the default Derma skin because I haven't tried the paint function yet, so I'm probably going to try and change it soon.
The code is pretty gross looking, so you can change that if you want.
[URL="https://github.com/VeXan39231/vexadmin"]GitHub[/URL]
If there is anything you think should be changed (I know there will be, it's ugly as hell) then go ahead and create a pull.
Not so frequently asked questions made to take up space.
[B][U]What is VexAdmin?[/U][/B]
Some small, personal administration tool I'm working on.
[B][U]How does it work?[/U][/B]
As of the initial post, it is a simple derma menu with buttons, players, etc. It's using ULX as a base right now, but purely for functionality.
[B][U]Will it only be ULX?[/U][/B]
Nope. I'm going to work on my own commands and ranks for it.
[B][U]Why did you make this?[/U][/B]
It's pretty much just a project to help me learn Derma, but it branched off to more than that.
[B][U]How do I open it?[/U][/B]
Type '!vex' in chat.
[B][U]Pics:[/U][/B]
[IMG]https://i.gyazo.com/1405107ac62a7ce21e3063cf2f9768f5.png[/IMG]
Picture of the ugly, painted version.
[IMG]https://i.gyazo.com/77ba705f27e7a94e6c4b731ef2f58481.png[/IMG]
[B][U]Updates[/U][/B]
[B]V 0.2[/B]
- Uploaded Icons (How did I forget that?)
- Changed menu size.
- Added tooltips to all buttons. (Thanks to Skere_ and monkeymacman)
- Added unjail button.
- Added health button.
- Added slap button.
- Added freeze/unfreeze buttons.
- Added mute/unmute buttons.
- Added gag/ungag buttons.
I'd add tooltips to the image buttons to make things more clear
The [del]layout[/del] and colors, drives me crazy
The only thing I don't like (besides it not being painted yet) is that there aren't words stating what the commands are so if you have more complicated commands it might be a bit difficult to make something to tell what they are
Thanks for the suggestions, Skere and monkey, I'll be adding tooltips to the buttons.
I can work on the colors, Gamer, but that will probably look worse. There's some commented code at the bottom of the file that shows my attempt at a painted window, but it's kind of ugly.
Atleast you're not trying to sell stuff while you're learning lua.
Good job
Also, I like the choice of showing ply's steamID but I think you should still also show their rank
Plus if you are manually setting the position of each icon it might get annoying, you should probably look into using [url=https://wiki.garrysmod.com/page/Category:DIconLayout]DIconLayout[/url]. With this method you can use a function to display it and only display it if the player has access to that command.
[B]Major update![/B]
See the bottom of OP for changes.
[editline]15th December 2015[/editline]
I plan on changing the way the teleporting works, how do you guys think it should look?
Typing '!vex' seems not to work for me.
[QUOTE=monkeymacman;49331163]Typing '!vex' seems not to work for me.[/QUOTE]
Are you getting any Lua errors? The GitHub version works fine for me.
Oh, sorry for late response. Not sure if you changed something but I think before the chat command was inside of the command function, might work now I guess
Why are you calling it VexAdmin if it's just a derma menu using ulx commands? Why not just use the ULX menu?
This is the type of stuff you make to get better and not release, tbh.
Both of you didn't read the OP. I'm going to make my own commands and ranks eventually, as stated in OP. I'm releasing this to get ideas and get better, as stated in OP.
Yeah, I agree that this is the kind of stuff that you make to get better, but it doesn't mean you shouldn't release it though. It may help someone else out.
[CODE]
SID = v:SteamID() --Set the SteamID
if v:IsBot() then --Is the SteamID a bot?
SID = "Bot" --If it is, make it say Bot.
else
SID = v:SteamID() --Don't change the SteamID
end[/CODE]
why would u do that else for gods sakes?
the whole thing is unnecessary, ply:SteamID() returns "BOT" for bots...
[QUOTE=tzahush;49352020][CODE]
SID = v:SteamID() --Set the SteamID
if v:IsBot() then --Is the SteamID a bot?
SID = "Bot" --If it is, make it say Bot.
else
SID = v:SteamID() --Don't change the SteamID
end[/CODE]
why would u do that else for gods sakes?[/QUOTE]
Usually when something asks for a Bot's SteamID it returns "nil", so I did this. It changes the text to "Bot" and looks better, purely aesthetic.
[QUOTE=VeXan;49352932]Usually when something asks for a Bot's SteamID it returns "nil", so I did this. It changes the text to "Bot" and looks better, purely aesthetic.[/QUOTE]
He's talking about the else statement, you've already set SID to v:SteamID() so you don't need to do it again.
[QUOTE=Matryan;49353636]He's talking about the else statement, you've already set SID to v:SteamID() so you don't need to do it again.[/QUOTE]
Oh, I didn't read that right, I thought it was bad english. I'll remove the else, I suppose.
Sorry, you need to Log In to post a reply to this thread.