Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Neico on September 04, 2007, 06:15:36 PM

Title: ULX Skin
Post by: Neico on September 04, 2007, 06:15:36 PM
I made a not bad looking but quick ULX Skin i hope you like it maybe someone will make it better :D


here is my code for the ulx.lua wich is in the lua/skins folder (get automatic sended to client from the server so nothing much to do :D)
Code: [Select]
local SKIN = {};

SKIN.bg_color = Color(0, 100, 100, 150);
SKIN.bg_color_sleep = Color(0, 200, 200, 150);
SKIN.bg_color_dark = Color(0, 0, 90, 150);
SKIN.control_color = Color(50, 100, 200, 255);
SKIN.control_color_highlight = Color(80, 130, 230, 255);
SKIN.control_color_active = Color(150, 50, 0, 255);
SKIN.control_color_bright = Color(0, 100, 200, 255);

function SKIN:DrawGenericBackground(x, y, w, h, color)
surface.SetDrawColor(0, 0, 100, 100);
surface.DrawRect(x, y, w, h);
surface.SetDrawColor(180, 180, 255, 200);
surface.DrawOutlinedRect( x, y, w, h);
surface.SetDrawColor(150, 150, 225, 180);
surface.DrawOutlinedRect(x + 1, y + 1, w - 2, h - 2);
surface.SetDrawColor(120, 120, 195, 160);
surface.DrawOutlinedRect(x + 2, y + 2, w - 4, h - 4);
surface.SetDrawColor(90, 90, 165, 140);
surface.DrawOutlinedRect(x + 3, y + 3, w - 6, h - 6);
end

function SKIN:SchemeTextEntry(panel)
panel:SetTextColor(Color(50, 100, 200, 255));
panel:SetHighlightColor(Color(20, 200, 250, 255));
panel:SetCursorColor(Color(0, 0, 100, 255));
end

derma.DefineSkin("ulx", "ULX Standard Skin", SKIN);

Here is a Screen from it wich shows the derma_test window the ulx Main Menu and the Map Menu wich are currently the only menus that are derma (megiddo is already at working to convert Admin Menu and Client Menu to derma :D) at the Admin button shows the color of it when you press at it when cover over it it goes like the background01 button (is a bit hard too see because of the sky but i think if you look good enaugh you see it :D)

(http://img374.imageshack.us/img374/6393/ulxskinpk8.jpg) (http://imageshack.us)

please comment and give some suggestions if there are some :D and dont blame me about the white thing around the image i used paint because photoshop takes too long for me to do that xD;
Title: Re: ULX Skin
Post by: Megiddo on September 04, 2007, 06:43:26 PM
Add some rounding! Squares are for... well... in all honesty? SQUARES!
Title: Re: ULX Skin
Post by: JamminR on September 04, 2007, 07:13:08 PM
Nice Neico.
Now, we just need to make a utils menu with sliders to adjust colors on the fly, then once chosen/applied, can be saved for next time.
:)
Title: Re: ULX Skin
Post by: Neico on September 04, 2007, 08:38:49 PM
like i said just a quick thing :P ill think of it to make it rounded (im not that good with client side things yet :S) :P

if you make a Util Menu ill implent it into the skin i mean most things are already moveable into the util menu just need to be created :P

oh and Megiddo now is the Admin Menu left :P (and make it useable for other gamemodes via the ini file or lua functions :D)