[B3][Display] Scores Table has weird boxes next to box label
Moderator: NADEO
- fng_thatoneguy
- Posts: 722
- Joined: 05 Jan 2011, 18:06
- Location: That One Place
- Contact:
[B3][Display] Scores Table has weird boxes next to box label
See screenshot
There are little white boxes (Unicode character?) to the left each of the boxes in the score table (Royal mode)...
They also appear next to the player stats at the bottom of the score table and the Points Limit specified for the server.
There are little white boxes (Unicode character?) to the left each of the boxes in the score table (Royal mode)...
They also appear next to the player stats at the bottom of the score table and the Points Limit specified for the server.

Re: [B3][Display] Scores Table has weird boxes next to box l
Yeah, it's not only my script 
http://dl.dropbox.com/u/58886549/Screen ... Shot18.jpg
these squares are shown when loclized strings are passed to the user interface, but not in every case (dunno when exactly)

http://dl.dropbox.com/u/58886549/Screen ... Shot18.jpg
these squares are shown when loclized strings are passed to the user interface, but not in every case (dunno when exactly)
- Darkminus
- Posts: 228
- Joined: 05 Jun 2012, 20:54
- Manialink: Interface
- Location: Dans mon monde.
- Contact:
Re: [B3][Display] Scores Table has weird boxes next to box l
I got this problem while coding my script on Beta 2.
This is because they use TextLib::Compose to show things on the screen. I dunno the reason.
I got rid of that by using concatenation (Var1^Var2)
Maybe is it different in that case...
Hope I could help you guys!
This is because they use TextLib::Compose to show things on the screen. I dunno the reason.
I got rid of that by using concatenation (Var1^Var2)
Maybe is it different in that case...
Hope I could help you guys!
Re: [B3][Display] Scores Table has weird boxes next to box l
I have this problem when I use the _("a string") function.
Should we modify our scripts or will it be fixed soon?
Should we modify our scripts or will it be fixed soon?
Re: [B3][Display] Scores Table has weird boxes next to box l
Exactly! _("Hello") is a string that will be translated and it seems the encoding screws things up...Akbalder wrote:I have this problem when I use the _("a string") function.
Should we modify our scripts or will it be fixed soon?
i started changing my scripts but then i stopped, because nadeo should definitely fix this, otherwise we wouldn't be able to make localized scripts... i'm pretty sure they will do something about it as it's even broken in their own scripts
Re: [B3][Display] Scores Table has weird boxes next to box l
This bug appears when you concatenate multiple strings with translation at the same time. To avoid that you can use the Compose function of the TextLib library.
We also added a new textprefix parameters that you can use in your <label />.
With this you won't have to do things like this anymore to style your text (it breaks the translation mechanism):
Better:
Code: Select all
declare MyTranslatedString = TextLib::Compose("%1 %2", _("First part of my string"), _("Second part of my string"))
Code: Select all
<label textprefix="$s$f0f" text="My text" />
Code: Select all
declare MyString = "$s$f0f"^_("Translate me: ")^Player.Name;
declare Manialink = """<label text="{{{MyString}}}" />""";
Code: Select all
declare MyString = TextLib::Compose(_("Translate me: %1"), Player.Name);
declare Manialink = """<label textprefix="$s$f0f" text="{{{MyString}}}" />""";
Re: [B3][Display] Scores Table has weird boxes next to box l
Thanks for sharing the knowledge!Eole wrote:This bug appears when you concatenate multiple strings with translation at the same time. To avoid that you can use the Compose function of the TextLib library.We also added a new textprefix parameters that you can use in your <label />.Code: Select all
declare MyTranslatedString = TextLib::Compose("%1 %2", _("First part of my string"), _("Second part of my string"))
With this you won't have to do things like this anymore to style your text (it breaks the translation mechanism):Code: Select all
<label textprefix="$s$f0f" text="My text" />
Better:Code: Select all
declare MyString = "$s$f0f"^_("Translate me: ")^Player.Name; declare Manialink = """<label text="{{{MyString}}}" />""";
Code: Select all
declare MyString = TextLib::Compose(_("Translate me: %1"), Player.Name); declare Manialink = """<label textprefix="$s$f0f" text="{{{MyString}}}" />""";


I hope the nadeo script will be updated soon?

Re: [B3][Display] Scores Table has weird boxes next to box l
They have been updated for the release. But we probably missed some translations. If you can report in which mode you saw it, it will help us to correct it faster. 

- fng_thatoneguy
- Posts: 722
- Joined: 05 Jan 2011, 18:06
- Location: That One Place
- Contact:
Re: [B3][Display] Scores Table has weird boxes next to box l
Royal modefng_thatoneguy wrote:See screenshot
There are little white boxes (Unicode character?) to the left each of the boxes in the score table (Royal mode)...
They also appear next to the player stats at the bottom of the score table and the Points Limit specified for the server.

Re: [B3][Display] Scores Table has weird boxes next to box l
Thanks for the screenshot.
It seems to be taken from an old version of Royal script.
This will be corrected as soon as this server is up to date.
It seems to be taken from an old version of Royal script.
This will be corrected as soon as this server is up to date.
Who is online
Users browsing this forum: No registered users and 1 guest