Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.

Author Topic:  Textwindows  (Read 25374 times)

0 Members and 0 Guests are viewing this topic.

smacky

« on: 27, January 2010, 18:19:14 »
Coming soon to a B5 near you: dynamic textwindows!

You can resize either textwindow in all eight directions and set the font for either one.

As you can see from the screenshot below, there are still a few bugs (ie, the buffer isn't big enough which is why my shout is truncated, I seem to have broken transparency, and a few things you can't see here).

But these are minor tweaks. The main work is done..

Once this is finished, it'll be pretty easy (I think!) to add copy and paste and proper fonts (means truetype or whatver the format is) -- which also means proper sizing, bold, italic, underline, and so on, like in a browser.

Here's a screenshot:


ddhanna

« Reply #1 on: 27, January 2010, 19:21:05 »
being able to adjust the size of the text will be very nice. when using a larger monitor, the text can be very small and hard to follow.
looking forward to it....... :)

clobber

« Reply #2 on: 28, January 2010, 17:37:53 »
Can we make like an audio Dai? So some NPCs have voices and some text is read aloud?

Nice Smacky, opening up a whole new world to the visually disabled :)
Posted by Clobber

Collector Of Burnt out torches, 0 and Counting.

,-.  ___ ,-.
 \/ .   .  \ / 
(___O___)
 /  \      /   )
 ( ||       || )
  000     000
Woof, Woof!

Quote from: Longir
I use caution, fear is a distraction

smacky

« Reply #3 on: 29, January 2010, 02:05:05 »
Do people currently use the textured (non-alpha) background at all?

Is the current scrollback (250, or 249, lines) sufficient? I can easily make the number of lines a user-settable option.

_people_

« Reply #4 on: 29, January 2010, 06:33:12 »
1.  I don't.

2.  That would be nice :)

Would it be too much to ask for italicized text? It's hard to express emphasis with caps  ;)
-- _people_ :)

smacky

« Reply #5 on: 29, January 2010, 13:15:45 »
Would it be too much to ask for italicized text? It's hard to express emphasis with caps  ;)

Already done (or actually I just checked and it is not working 100% yet -- it works when you type it in but for some reason isn't modifying the output). ATM we use colour for emphasis because of our limited fonts.

So, as in the NPC and book GUIs, green text denotes italics and yellow text denotes bold. You toggle these with ~ and |. (There is also gold toggled with ` (SENTInce uses this for intetitles)).

When we use proper fonts we can make this real italics, bold, and underline.

smacky

« Reply #6 on: 02, February 2010, 18:51:11 »


The green borders are resizing borders. When you hover over an edge or corner of a window that edge (or two edges if you're over a corner) turns green. If you then hold the LMB down you can drag to resize the window.

smacky

« Reply #7 on: 02, February 2010, 21:26:25 »


EDIT:
« Last Edit: 03, February 2010, 22:57:51 by smacky »

smacky

« Reply #8 on: 04, February 2010, 11:46:57 »
Here's (user-settable) indentation of chat messages to aid readability:


smacky

« Reply #9 on: 10, February 2010, 12:00:59 »
Currently (by default) we use INSERT and DELETE to scroll the message textwindow up/down by one line and PAGEUP/PAGEDOWN to scroll the chat.

This seems backwards as by default the chat window is on the left of the screen and the message window is on the right. So this should reflected in the key layout, rather than having the opposite.

But also, ATM we just scroll by one line (with the keyb anyway, the mouse can scroll in larger steps). If, as we will be able to in B5, we can have very large scrollback buffers, this makes little sense.

One more sensible layout would be: INS/DEL scrolls the chat window by one line, PGUP/PGDN scrolls the chat window by one page, and HOME/END goes straight to the top/bottom of the chat window. If SHIFT is held down, operate on the message window instead.

Obviously currently SHIFT opens the inv, but this can (indeed should) be changed (so for example, I (can be rebound like any other key) would toggle inventory mode).

Alternatively we can use ALT to change textwindows (ALT is not needed for running in B5) to avoid this minor conflict right now.

Opinions?

EDIT: I've done it like this:

There are 6 new ?M_ commands: ?M_TEXTWIN_LINEUP, ?M_TEXTWIN_LINEDOWN, ?M_TEXTWIN_TOP, ?M_TEXTWIN_BOTTOM, ?M_TEXTWIN_PAGEUP, and  ?M_TEXTWIN_PAGEDOWN.

These can be bound to keys in the normal way. When the key is pressed, the given action is performed on the chat window. If SHIFT is held down, the action is performed on the message window.

The existing ?M_PAGEUP/DOWN(_TOP) are retained to keep people who don't like change relatively happy.

So by default, the new ?M_TEXTWIN_* commands are bound to INS/DEL, HOME/END, and PGUP/PGDN, and the old commands are unbound.

This means that new players get the more powerful scrolling but existing keys.dat files will still work.
« Last Edit: 10, February 2010, 14:54:15 by smacky »

clobber

« Reply #10 on: 10, February 2010, 17:41:50 »
Is this just for B5? ... only I'm having a bit of trouble misreading a lot of what is going on in shout :p If there is a way to make it bigger I would appreciate it hugely :)
Posted by Clobber

Collector Of Burnt out torches, 0 and Counting.

,-.  ___ ,-.
 \/ .   .  \ / 
(___O___)
 /  \      /   )
 ( ||       || )
  000     000
Woof, Woof!

Quote from: Longir
I use caution, fear is a distraction

smacky

« Reply #11 on: 10, February 2010, 18:32:46 »
B5+.

clobber

« Reply #12 on: 10, February 2010, 22:33:21 »
Ah well... will need to wait two weeks then ;)
Posted by Clobber

Collector Of Burnt out torches, 0 and Counting.

,-.  ___ ,-.
 \/ .   .  \ / 
(___O___)
 /  \      /   )
 ( ||       || )
  000     000
Woof, Woof!

Quote from: Longir
I use caution, fear is a distraction

smacky

« Reply #13 on: 16, February 2010, 15:39:19 »
Currently when you logout the 'mix' window (chat and messages in the same window) is displayed. This is not scrollable.

Although I've removed the mix window entirely (because it meant twice the work and twice the memory usage every time a message/chat is displayed), it's not a problem to simply display both the message and chat windows side by side at this point.

I can also make them scrollable even here. Thus allowing players to logout and review the text.

Howver, is this useful, given that you can already create textfile logs of everything?

smacky

« Reply #14 on: 21, February 2010, 13:36:55 »
You can now assign any colour (RGB in the range 0x00000 to 0xffffff) to chat and highlighting text in the client.

This info is part of the skin definition so Subaru people can produce more complete/consistent skins.

Although I haven't done it yet, it's a small next step to allow the server/scripts to send such RGB colours with messages to allow true colours here too (in this case the choice of colour would be down to the server/scripter, not the client/skinner).

Tags: