[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: UI - multiple issues



On Fri, 24 Jun 2005 19:19:35 +0200, Jens Granseuer <jensgr@xxxxxxx> wrote:

On 23.06.2005 22:29, Andrej Krivulčík wrote:
On Thu, 23 Jun 2005 18:49:07 +0200, Jens Granseuer <jensgr@xxxxxxx> wrote:
>> Also I have noticed that it's not possible (I think) to select the blue
>> player only with keyboard. When I hit Enter I select the yellow player
>> and
>> there's no way to select the blue player... Prove me wrong :-).
>
> I can't...


Hmm, looks like we need something like:

////////////////////////////////////////////////////////////////////////
// NAME       : NiceFunction
// [details]
////////////////////////////////////////////////////////////////////////

You could then call
NiceFunction(&SecondPlayerName, NiceFunction(&FirstPlayerName, ' '));
and the problem would be resolved (I *think*).

It's a little more complicated than that because you may encounter multi-byte characters. A simpler way to do it would be something like "(_1) Player 1 | (_2) Player 2".

But that wouldn't like that cool... And skipping the multi-byte characters is not too difficult (all of them begin with byte > 127, I think. Skipping the next byte would do the trick, no?), isn't it? If the function doesn't find anything useful (in player names with every character accentuated :-) ), the numbers will have to suffice...


Andrej