Old 19th December 2002, 18:29   #1
Brennan
Monkey Hump Master
 
Brennan's Avatar
 
Join Date: Apr 2000
Posts: 782
A little somethin for the skinners

Coming in the next build (#494), str8 from the dev log:
code:
18-dec-2002 brennan
gradients!
there's a gradient xui object:
<gradient gradient_x1="1.0" gradient_y1="0.5"
points="0=64,64,64;1.0=0,0,0" />


and imageloader:
code:
<bitmap id="blah" file="$gradient" w="80" h="80"
gradient_x2="1" gradient_y2="1" points="0=255,255,255;1=0,0,0" />



So, in english, the idea is you define a line with gradient_[xy][12] and then specify colors along that line, from 0.0 to 1.0. Specifying 2.5 or -8.0 or something else past the endpoints is ok too. The coordinates for the endpoints are from 0.0 to 1.0 and stretched to fit the actual size of the control. You can also just generate the gradient as a bitmap. It's kinda hard to explain in words so just try it out when you get your hands on it.

As a bonus, something which was in since 492:
code:
added solid color image generator, i.e. <bitmap id="blah" file="$solid"
w="1" h="1" alpha="128" color="255,255,255" />



Hell, you know what, I'm gonna attach a guiobjects.wac to this post with the control in it. I dunno if it'll work on older builds, but we'll find out...


--Brennan
Attached Files
File Type: zip guiobjects.zip (99.1 KB, 350 views)
Brennan is offline   Reply With Quote
Old 19th December 2002, 18:59   #2
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,694
Build 488 gives an invalid entrypoint call immediately then proceeds to start normally.
Build 493 does the same, but fails to start with an assertation error ("wasabi.button.appmenu.pressed" expression: bits!=null)

-=Gonzotek=-

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 19th December 2002, 20:06   #3
will
Nullsoft Newbie (Moderator)
 
will's Avatar
 
Join Date: Mar 2001
Location: Sheffield, England
Posts: 5,569
So, who is going to be the first with the image-less skin?

DO NOT PM ME WITH TECH SUPPORT QUESTIONS
will is offline   Reply With Quote
Old 19th December 2002, 20:20   #4
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Dont make graphic people look obselete
hammerhead is offline   Reply With Quote
Old 19th December 2002, 20:25   #5
Brennan
Monkey Hump Master
 
Brennan's Avatar
 
Join Date: Apr 2000
Posts: 782
Dang, I guess guiobjects.wac already changed too much. Well, lemme try again. This wac only includes the <bitmap file="$gradient" ...> version, not the <gradient> object. (And the $solid generator too.) Plus it's pretty tiny. (23k)


--Brennan
Attached Files
File Type: zip imggen.zip (11.9 KB, 332 views)
Brennan is offline   Reply With Quote
Old 19th December 2002, 22:48   #6
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,694
This one sort of works in 493 but not in 488. 488 loads fine, but on loading my simple gradient demo shows the generic "bitmap not found" image.

493 shows the same gradient regardless of id. Demo add-on attached. It appears that the first gradient element used in a layer's xml image="id" will always be displayed in other layers' gradients. Try swapping the layers positions in the xml to see example of this behaviour in action.

For anyone who wants to try this, I put the new wac in Wasabi\1.1\Wacs\wasabi.system\ui\guiobjects

-=Gonzotek=-
Attached Files
File Type: zip gradient demo.zip (11.8 KB, 356 views)

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 20th December 2002, 01:48   #7
Brennan
Monkey Hump Master
 
Brennan's Avatar
 
Join Date: Apr 2000
Posts: 782
Hmm, the caching system isn't realizing those are separate bitmaps. Ah well, I just fixed that for next build anyway, which should be coming up very soon.


--Brennan
Brennan is offline   Reply With Quote
Old 20th December 2002, 02:17   #8
mc^^^^
Forum King
 
mc^^^^'s Avatar
 
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,608
great to hear, thx brennan.

so, is there any other uses for the gradients other than the obvious?

mc^^^^ is offline   Reply With Quote
Old 20th December 2002, 10:55   #9
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
when will next un-developers build be released? (or un-NDSN?)
This is going to be really useful, thanks brennan
hh
hammerhead is offline   Reply With Quote
Old 20th December 2002, 17:45   #10
Brennan
Monkey Hump Master
 
Brennan's Avatar
 
Join Date: Apr 2000
Posts: 782
Quote:
so, is there any other uses for the gradients other than the obvious?
This is Wasabi. There are ALWAYS nonobvious uses for EVERYTHING.


--Brennan
Brennan is offline   Reply With Quote
Old 20th December 2002, 18:05   #11
Bizzeh
Forum Pirate
Beta Team
 
Bizzeh's Avatar
 
Join Date: Oct 2001
Posts: 2,032
the best use for this gradient stuff would be slider maps wouldnt it?
Bizzeh is offline   Reply With Quote
Old 20th December 2002, 18:21   #12
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,694
You only need a b&w gradient with two points for that kind of stuff. These are much more flexible. I can imagine a bunch of good looking styles that can be built up using gradients and solids. Sakura would probably benefit immensely from them, for instance. The file size would be smaller, at the very least.

-=Gonzotek=-

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 22nd December 2002, 22:50   #13
shiffty
Junior Member
 
Join Date: Dec 2002
Location: ireland
Posts: 12
Question

hi Brennan, lookin 4 major help , cannot understand the concepts off skininn, the tutorials confuse me pplz , help me , where could i go to understand xml/hmtl/ etc (xcertra), somewhere where simplr ppl like me can go..... & , cheerz pal..
shiffty is offline   Reply With Quote
Old 23rd December 2002, 01:55   #14
mc^^^^
Forum King
 
mc^^^^'s Avatar
 
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,608
shiffty, the tutorials make it as easy as its gonna get, if you dont try the tutorials or cant do them, well, your not gonna find anything easier. try and try again

mc^^^^ is offline   Reply With Quote
Old 23rd December 2002, 10:31   #15
Adil
Major Dude
 
Adil's Avatar
 
Join Date: Sep 2001
Posts: 1,377
Send a message via ICQ to Adil Send a message via AIM to Adil Send a message via Yahoo to Adil
Quote:
Originally posted by hammerhead
Dont make graphic people look obselete
OH GOD ! I'm so scared !!! Coders will be able to make gradients!! OHLALA !



THis kinda stuff is known from sonique 2, bits for exemple did a skin for s2 that used no graphics, it waas just a simple frame with text information insid, the buttons were done using webdings font.
Adil is offline   Reply With Quote
Old 23rd December 2002, 10:50   #16
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Quote:
Originally posted by Adil
OH GOD ! I'm so scared !!! Coders will be able to make gradients!! OHLALA !



THis kinda stuff is known from sonique 2, bits for exemple did a skin for s2 that used no graphics, it waas just a simple frame with text information insid, the buttons were done using webdings font.
And it sucked, right? (I mean the skin of course).
hammerhead is offline   Reply With Quote
Old 23rd December 2002, 14:59   #17
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,694
No it didn't, really. bits is a decent coder, irrespective of his choice of platform.

-=Gonzotek=-

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump