-- [ Picked text/plain from multipart/alternative ] Okay, I used these two tutorials
http://developer.valvesoftware.com/wiki/VGUI_on_entity and http://developer.valvesoftware.com/w...creen_Creation<http://developer.valvesoftware.com/wiki/VGUI_Screen_Creation> to create vgui's in the mod, and I have having trouble with both. First of all, with the VGUI on entity, I am having the trouble of the vgui being drawn before the viewmodel so that that viewmodel is in top of it. If I move the attachment futher away from the viewmodel polygon towards the player view I, and move the mouse, I can see part of the vgui "behind" the viewmodel. In other words, I can only see the viewmodel in pixels where the viewmodel was not drawn. Also, if I have it in the original attachment point I can see it with mat_wireframe 1, only if a bit offset. This has led me to believe that the vgui is drawn before the viewmodel, even when the vgui should be between the camera and the viewmodel. I also tried it with the RPG model (my .qc looks very much the same), and even then the vgui is drawn before the viewmodel. Althou, in the tutorial screenshot they are clearly painted in the correct order, viewmodel first and then the vgui. Another problem is with the vgui_screens. Now, I did everything I was told in the tutorial, but the buttons just don't seem to react. I have tried both "MaterialButton" and "Button" in the code, but neither make the code react. I added DevMsg's in the ClientThink function both after and before we check if IN_ATTACK has been pressed, but it seems that the code doesn't even regocnize that the mouse if over the vgui. The tutorial sure leads me to believe that it should make buttons work as well, since one of them has a keypad. Tero "Au-heppa" Knuutinen -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

