[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: UI - multiple issues
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
> // DESCRIPTION: Insert a '_' before first letter found in str
> // except char
> // PARAMETERS : str - string to change
> // char - letters to skip (case insensitive)
> // RETURNS : character before which '_' was inserted
> ////////////////////////////////////////////////////////////////////////
>
> 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".
Jens