Author Topic: Votebox - text label overlap in translation [Fixed in 1.5.1]  (Read 2242 times)

0 Members and 1 Guest are viewing this topic.

Offline Polifen

  • Soldier
  • **
  • Posts: 127
Votebox - text label overlap in translation [Fixed in 1.5.1]
« on: April 11, 2011, 01:32:53 pm »
Current votebox is kinda stupid, it uses 5 ( or even 6 ) labels when it could use 3. The problem is attached, voter's nick is overlayed by "Glosujacy" ( voter ) and reason is overlayed with "przyczyna". Come on, it's Delphi - you can add strings with '+', that's easier than using 10 labels.

Discussion for 1.6.
Add Yes and No labels with current number of yes/no votes and time to end of vote like in most newer games. Maybe Y/N letter in F1 menu to see other's chooses.

Edit: Yeah. ofc I forgot to upload screen.

Edit: Fixed meaningless subject
« Last Edit: June 27, 2011, 02:12:36 am by Shoozza »

Offline Monsteri

  • Artist
  • Flagrunner
  • ******
  • Posts: 769
  • Strange thing
Re: Votebox
« Reply #1 on: April 11, 2011, 02:19:34 pm »
At least the overlapping should be fixed.
Sorry if I'm insolent.

Offline homerofgods

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2029
  • We can do better!
Re: Votebox
« Reply #2 on: April 11, 2011, 05:15:13 pm »
Yes it's kinda stupid although it works.
« Last Edit: April 11, 2011, 05:17:08 pm by homerofgods »

Offline Polifen

  • Soldier
  • **
  • Posts: 127
Re: Votebox
« Reply #3 on: April 11, 2011, 11:52:04 pm »
It works as 5 labes ( 5 texts ), this results in problems with other translations than english ( for example Polish, where those texts are longer ). Simple way to fix it is to use 3 labels with summing text - Delphi supports just Text + Text2, here it would be 'Przyczyna : ' + Nick and there would be no overlay.

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Votebox
« Reply #4 on: April 16, 2011, 11:56:10 am »
Yep 4 ore 5 labels are necessary:

"Kick" "PlayerToKick"     <-- 2 Labels (because red and white text color)
"Voter: VoterNick
Reason: ReasonText"    <-- 1 Label with linebreak or 2 labels (depends on linebreak)
"F12 - Yes    F11 - No" <-- 1 Label with space in between

Not sure if you really need to know the votes :P
Maybe the result message is enough link the no map has been voted or player wan't voted to leave the game.
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline Polifen

  • Soldier
  • **
  • Posts: 127
Re: Votebox
« Reply #5 on: April 16, 2011, 12:38:43 pm »
OK, "kick <nick>" is fine as 2 labels ( "kick" seems to be same in every language? Ot at least it's short ). Others can be done with 1 label per text, so it's fine.

As I said in the first post, knowing the count of Yes/No votes would be cool, but there are more important things to do in 1.5.1. The message that the vote ended should be simple and you could do it in 1.5.1 I think.

Offline Fryer

  • Camper
  • ***
  • Posts: 261
  • Game dev
Re: Votebox
« Reply #6 on: April 16, 2011, 06:45:23 pm »
It should calculate the length of the word if it's aligned to the right though, so I'll try to fix that.
...PC vs Mac is like AK47 vs M4A1...
<DutchFlame`> i once heard running runescape in the background gave you a speedboost
<Mr> yes, it allocates more electrons, so there are more electrons available for Soldat -> they are streched less and it is more fluent

Soldat PolyWorks 1.5.0.13 - AimMode - Aim practise gamemode script - Fryer's SoldatStream Mod

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Votebox
« Reply #7 on: June 17, 2011, 07:07:58 am »
Ok fixed this.
Rules
Tools: ARSSE - SARS - SRB - chatMod