![]() |
Local GUI controls
I think it would be nice to have a way to create GUI controls locally to an NPC... similar to this.vars.
Since GUI's are pretty much global, it wouldn't be hard for a script from one person to overwrite the script of another, simply because they named their window, "Window". This way, controls will only be accessible by the same NPC, and eliminate any interference from outside scripts, or cause any interference. I'm not sure how it would be done, but I still think it would be a nice addition. |
Methinks you could use an md5 hash to insure a unique name for the gui control, then just use your object variables to point to it.
PHP Code:
|
Quote:
|
Quote:
My suggestion eliminates unintentional overwriting of GUI controls based on name conflict. |
Quote:
Quote:
|
Quote:
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 10:53 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.