Re: Two bugs in 4.1.1
Brazen <odbrazen-/[email protected]> Mon, 26 Jul 2004 06:04:03 -0700 (PDT)
| Newsgroups | gmane.comp.games.mud.client.lyntin |
|---|---|
| Message-ID | <[email protected]> |
--- Eugene <[email protected]> wrote: > On Sun, 25 Jul 2004 07:34:03 -0700 (PDT) > Brazen <odbrazen-/[email protected]> wrote: > >Something for 5.0, have seperate buffers & GUI widgets > >for each session. > >I hacked up a tkui variant that does this (in the > >sandbox) and someone > >had mentioned doing something similar on the list. Text > >goes to the > >wigdet to just the session the socket is associated with, > >but you can > >write to that plus the current session if you like. > > Just a note: if it was the case, then it would be easier > just run several instanses of the Lyntin. The whole point > of multisessioning is to have all the sessions in the > single user interface, as far as I understand it. > The main per-session widget in this setup is the scrolled text buffer (and I only tried it with tkui). So switching to a new session just hides the active textscroller and unhides the one for the target session. I didn't implement snoop in sanbox/leantin[1] but it would be as easy as having two session share the same TkuiSession instance. This is close to how tinyfugue handles it, IIRC. It gets a little fancier in order to make it easy to add custom UI widgets above or below the scrolledtext window. Each TkuiSession instance has an empty frame above and below the scroller where user's can drop their own buttons, dropdowns, whatever. We hide/unhide the frames as well when sessions are changed so the user doesn't have to do any more than the original setup. I have a simple row of buttons and textboxes at the top of my client for "wimpy hp %" (textbox) "main combat spell" (dropdown), etc[2]. Inbetween the scroller and the command input I have a little status area. -Brazen [1] http://cvs.sourceforge.net/viewcvs.py/lyntin/lyntin40/sandbox/leantin/tkui.py?rev=1.3&view=auto [2] same directory as above, myworlds.py defines the logins. mytk.py handles the little custom widget setup and is called for the 'overdrive' session after you connect. __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click