To download this library for your Linux/Mac installation, enter this on your command line:
DreamDownload byond://ExPixel.InterfaceObject##version=5 Emulator users, in the BYOND pager go to File | Open Location and enter this URL:byond://ExPixel.InterfaceObject##version=5 For those of use who hate to use winset. [More]
|
Advertisement Forum_account: (Mar 27 2012, 5:00 pm)
It looks like the biggest difference is that you can use your library to create a single control object, then bind it to different clients as you need to change things on their interface. With my library each control object has an owner, so you'd create one instance of a control object per client (since it caches values, the cache is specific to a single client and can't be shared).
ExPixel: (Mar 27 2012, 4:55 pm)
Forum_account wrote:
Yep, all you have to do is this: OH! I may have misunderstood the way your library works then. Forum_account: (Mar 27 2012, 4:47 pm)
Yep, all you have to do is this:
The library's code was generated and it can also generate code from a .dmf file - it creates the control definitions for every control on a window. These steps aren't necessary though. Kaiochao: (Mar 27 2012, 4:45 pm)
ExPixel wrote:
With Forum_Account's you generate the code. I saw you said this at least twice already, but I have no clue what you mean by this. I can't find any documentation for the Interface library, but it appears that all you need to do to "bind a control to a client" is make a variable with the appropriate type and initialize it by calling new(window, control, player). ExPixel: (Mar 27 2012, 4:25 pm)
Galactic Soldier wrote:
It's a slightly more ineffective way to produce the same results; tunneling one procedure through another. Maybe an improvement in conventional coding mannerisms (shouldn't matter, the other way of doing it is quite self-explanatory), but nothing more than that. There is a difference between his and my library. With mine you create the object representing a control on the interface and you user the bind() proc to bind that object to the interface. With Forum_Account's you generate the code. Mine is easier to get started with and use. Forum_Account's offers more functionality. |
Copyright © 2013 BYOND.
All rights reserved.
