[crossfire] Request for ui bindings for scripts.

Mark Wedel mwedel at sonic.net
Fri May 27 10:25:49 CDT 2005


Preston Crow wrote:
>
     
      On Sat, 2005-05-14 at 13:39, Andrew Fuchs wrote:
     
     >
     
     
     >>
     
     It would be nice if a script can intergrate more fully with the
     
     >>
     
     client's ui.  Namly, add enteries to the menubar, and otherwise
     
     >>
     
     maniuplate the ui of the client.
     
     >
     
     
     >
     
     
     >
     
      That would be nice.
     
     >
     
     
     >
     
      One thing nice about the current interface is it requires very little
     
     >
     
      modification of the non-common client code.  It can be used with the old
     
     >
     
      cfclient, gtkclient, and pretty much anything else.
     
     >
     
     
     >
     
      If someone wrote a generic "add button" interface to the various
     
     >
     
      clients, then it would be fairly easy to hook the scripting in to it.
     
     >
     
     
     >
     
      I'm not familiar enough with the various toolkits to do something like
     
     >
     
      that.
     
     
  For GTK, it wouldn't be hard to have a pull down menu for the scripts (putting 
buttons someplace is harder, because you need that space someplace to draw those 
buttons, and most of the clients don't have the space).

  In terms of an interface, presumably not all clients would necessary have to 
support it - it is in a sense a convenience function.  So clients in which it is 
easy to implement such a thing could certainly do so, but for other clients, 
like the X11 which really can't, the callback function could basically be a an 
empty function.


    
    


More information about the crossfire mailing list