Got it. The textures actually do not have to be defined in any script file.
The game looks for them starting in materials/vgui, a valid texture name
would be "scrollbar_slider" instead of "materials/vgui/scrollbar_slider".

 

Jan

 

Von: [email protected]
[mailto:[email protected]] Im Auftrag von Jan Hartung
Gesendet: Sonntag, 15. Juni 2014 14:55
An: Discussion of Half-Life Programming
Betreff: [hlcoders] UseImages on Scrollbar

 

Hi list,

 

I'm trying to use textures as the scrollbar background and slider, which is
what the function "UseImages" is there for. The texture names which are the
parameters to this function are not paths to vmt/vtf files, but texture
names. And this is where the problem starts for me. I tried defining the
textures in scripts/mod_textures.txt and scripts/hud_textures.txt but no
matter what I do, I always see the "missing texture" texture (black and
purple checkerboard) on the scrollbar.

Does anyone know where I have to define the texture names for this to
actually work?

 

Jan

 

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders

Reply via email to