VGUI screens - how the hell do you use t Created 14 years ago2009-09-27 15:39:43 UTC by Instant Mix Instant Mix

Created 14 years ago2009-09-27 15:39:43 UTC by Instant Mix Instant Mix

Posted 14 years ago2009-09-27 15:39:43 UTC Post #273749
I have to say , I've been looking them up , and it is the only thing that pretty much has no documentation on it. For example , there is pretty much no code anywhere saying how you can use buttons , images , etc.
There's pretty much nothing apart from what little there is in the "example" vgui screens. And they don't have any comments or showing how stuff works.

If anyone has any documentation on it , or hints , tips , or saying that it's pointless wasting so much time on it , please say so - I'd really appreciate it.
lolthanks

Reason why: In the end , I want to be able to make a crappy vending machine which can "dispense" 4 items ( Due to the 4 fire outputs). I know how to do everything for it APART from the VGUI screen.
Instant Mix Instant MixTitle commitment issues
Posted 14 years ago2009-09-27 15:51:58 UTC Post #273750
Make a vending machine (prop_physics with motion disabled, most likely), add nodraw buttons where the buttons are, and set them to make the items.
You can have the prop_physics dispenser from HL2, or env_beverage (you'll need can.mdl first, you can get it at the snarkpit) or weapons/ammo.
Notewell NotewellGIASFELFEBREHBER
Posted 14 years ago2009-09-27 15:56:34 UTC Post #273751
Posted 14 years ago2009-09-27 16:12:49 UTC Post #273752
^Or if you really want to, you could actually use VGUI.
Notewell NotewellGIASFELFEBREHBER
Posted 14 years ago2009-09-27 16:33:14 UTC Post #273753
Chicken , I've already gone through them.
The first one is about menus ( A dialog box that comes up , not an in-world entity) and the second one is expanding on more menus.
I'm not entirely sure if they use the same basis. If they do , then I'm pissed , but the code structure looks completely different comparing the files
Instant Mix Instant MixTitle commitment issues
Posted 14 years ago2009-09-27 17:19:02 UTC Post #273757
Ffrom what I understand it does use the same system. But it seems the whole entity is broken by default and requires coding to get working, and additional coding to get it to accept input, which would explain the lack of documentation :P

VGUI Screen Creation
ChickenFist ChickenFist<Witty Title>
Posted 14 years ago2009-09-28 14:46:13 UTC Post #273788
Damn. You need a stand alone mod.

Actually , not damn , considering I was intending it for a mod anyway.
If it doesn't work I'll just ramble on at you , Chicken
Instant Mix Instant MixTitle commitment issues
Posted 14 years ago2009-10-05 07:13:28 UTC Post #274069
From what I understand through discussions with Source programmers VGUI is somewhat of a pain in the butt. I would recommend using game logic and entities to perform what you are describing in terms of a vending machine. It would probably save you time and achieve the same result (unless a VGUI screen is extremely important for some reason)
RabidMonkey RabidMonkeymapmapmapfapmap
You must be logged in to post a response.