ULX

Author Topic: ULX Skin  (Read 7303 times)

0 Members and 1 Guest are viewing this topic.

Offline Neico

  • Newbie
  • *
  • Posts: 13
  • Karma: 4
    • Neic0.de
ULX Skin
« 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)



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;
« Last Edit: September 05, 2007, 05:45:17 PM by Neico »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: ULX Skin
« Reply #1 on: September 04, 2007, 06:43:26 PM »
Add some rounding! Squares are for... well... in all honesty? SQUARES!
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Skin
« Reply #2 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.
:)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Neico

  • Newbie
  • *
  • Posts: 13
  • Karma: 4
    • Neic0.de
Re: ULX Skin
« Reply #3 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)
« Last Edit: September 05, 2007, 10:53:50 PM by Neico »