![]() |
Shop Menu
Heyo guys, I had never really scripted anything using Gui Controls before, so I decided to try something tonight.
Had a bit of help from Twinny, on the "button.onAction()" functions. Anyway, here's a basic menu class that is brought up once you enter the level containing the class (preferably a shop ;)). I left the some space inbetween the buttons and chat. You can put your icons or whatever there, or even rearrange it. Just so you have something to start you off/help you out! Class: PHP Code:
|
You don't actually have anything in that scroll control. If you wanted to add a control to it, you would do
PHP Code:
Why not add a way to easily add items to be sold? Make an inventory system? So far it's just an empty gui control. |
you should put this on your examples for GUI controls. Its a super simple script to just read and understand (of course add some //Purpose, after each line
|
| All times are GMT +2. The time now is 07:25 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.