[tuhopuu-devel] Theme GUI help

car tuhopuu-devel@blender.org
Tue, 5 Aug 2003 19:33:46 -0400


--Apple-Mail-2-214847718
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed

Hey.
I am trying to contact one last time for this.

I really wanted to hack together some of the GUI code to color=20
aramatures
and remove the edge of all of the buttons.

Please help. These are the notes from Madprof and my comments .

______________________________________________
Besides that. Feature request!

Armatures! both for select and deselect. I have been building tuhopuu
with red and yellow,, Much Better to see and edit for meee.
everything else is your call, and there are a lot of them. Or just tell
me and I will try to hack in your code system to the armature place.

Not a problem. If you want to take a dekko, the place to check first is=20=

in

source/blender/include/BIF_resources.h

Here you should find a whole bunch of colours in an enum. Just add=20
another
colourname in, appros to armatures.  =BF=BF ARMATURES  =BF=BF =
<------------ So=20
far this is easy. I just named it
to ArmatureSelected and Armaturedeselected Is this the proper name ?


source/blender/src/space.c

Find the preferences area, and then the menu in there. Kind of ugly, I=20=

know.
If you add the correct item in there, in the same way the others are,=20
good.
<---------- Again easy.


source/blender/src/resources.c (I think)

there is a function somewhere with all the definitions of the actual=20
colours
used... search for "def_col" or so. Again, add yours in the same way as=20=

the
others. <------------------ here is where is does not compile if I put=20=

the wrong color scale. Web colors ( eg. FFFFF77 )
rgb will compile but it mistakenly changes the background color instead.

<----------All of this below is at alost for me--------->
Oh and see if you can remove the borders to as an option, As I did with
your previous code, That made it look realy slick !

source/blender/makesdan/DNA_userpref.h

add a new #define for the new type of button drawing. (with the others)

source/blender/src/interface.c

add a new button draw function, along where the others are, and find
where the "if" statement is which sets which one to use, and add yours
in there as well.

source/blender/src/space.c

in the userpreferences area, again in the correct tab, add a new button
as the others are, with the correct new value (the value you #define'd
in DNA_userpref.h

Anyway... hope thats been of some help,

Happy hacking,

Dan=

--Apple-Mail-2-214847718
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
	charset=ISO-8859-1

Hey.=20

I am trying to contact one last time for this.=20


I really wanted to hack together some of the GUI code to color
aramatures=20

and remove the edge of all of the buttons.=20


Please help. These are the notes from Madprof and my comments .=20


______________________________________________

<color><param>0000,0000,DDDD</param>Besides that. Feature request!

</color>

<color><param>0000,0000,DDDD</param>Armatures! both for select and
deselect. I have been building tuhopuu =20

with red and yellow,, Much Better to see and edit for meee.

everything else is your call, and there are a lot of them. Or just
tell =20

me and I will try to hack in your code system to the armature place.

</color>

Not a problem. If you want to take a dekko, the place to check first
is in=20


source/blender/include/BIF_resources.h


Here you should find a whole bunch of colours in an enum. Just add
another

colourname in, appros to armatures.  =BF=BF ARMATURES  =BF=BF =
<<------------
So far this is easy. I just named it=20

to ArmatureSelected and Armaturedeselected Is this the proper name ? =20



source/blender/src/space.c


Find the preferences area, and then the menu in there. Kind of ugly, I
know.

If you add the correct item in there, in the same way the others are,
good.

<<---------- Again easy.=20



source/blender/src/resources.c (I think)


there is a function somewhere with all the definitions of the actual
colours

used... search for "def_col" or so. Again, add yours in the same way
as the

others. <<------------------ here is where is does not compile if I
put the wrong color scale. Web colors ( eg. FFFFF77 )=20

rgb will compile but it mistakenly changes the background color
instead.=20


<<----------All of this below is at alost for me---------> =
<fontfamily><param>GoodRiddance</param><bigger><bigger><bigger>

=
</bigger></bigger></bigger></fontfamily><color><param>0000,0000,DDDD</para=
m>Oh
and see if you can remove the borders to as an option, As I did with =20

your previous code, That made it look realy slick !

</color>

source/blender/makesdan/DNA_userpref.h


add a new #define for the new type of button drawing. (with the others)


source/blender/src/interface.c


add a new button draw function, along where the others are, and find

where the "if" statement is which sets which one to use, and add yours

in there as well.


source/blender/src/space.c


in the userpreferences area, again in the correct tab, add a new button

as the others are, with the correct new value (the value you #define'd

in DNA_userpref.h


Anyway... hope thats been of some help,=20


Happy hacking,


Dan=

--Apple-Mail-2-214847718--