SA-MP Forums Archive
Color problem in DIALOG_STYLE_TABLIST_HEADERS - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Color problem in DIALOG_STYLE_TABLIST_HEADERS (/showthread.php?tid=630967)



Color problem in DIALOG_STYLE_TABLIST_HEADERS - Cypress - 20.03.2017

Well, I want to change the text color inside a dialog with tab lists and the color breaks just before \t so I have to reapply the color multiple times.

pawn Code:
ShowPlayerDialog(
    playerid,
    0,
    DIALOG_STYLE_TABLIST_HEADERS,
    "My dialog",
    "Header1\tHeader2\n{FF0000}Text1\t{FF0000}Text2\n, // the first {FF0000} stops at \t and the reset text is again a normal color it doesn't continue like in other dialogs and I have to reapply
    "
Select",
    "
Back"
);



Re: Color problem in DIALOG_STYLE_TABLIST_HEADERS - Variable™ - 20.03.2017

Hmm I know that one but I don't think they recognize it as a bug. Thought it's not good to repeat colors at each \t.


Re: Color problem in DIALOG_STYLE_TABLIST_HEADERS - Cypress - 20.03.2017

Quote:
Originally Posted by Variable™
View Post
Hmm I know that one but I don't think they recognize it as a bug. Thought it's not good to repeat colors at each \t.
It's not good because the string size in the format will have to increase which is a waste of memory plus you should be able to change the color of all text with a single color insert like in the other dialog types instead of having to repeat the color many times. That should be nonetheless considered as a bug since it affects the memory usage.


Re: Color problem in DIALOG_STYLE_TABLIST_HEADERS - Variable™ - 21.03.2017

I'm aware of this already, they should fix this issue too. That's why a new version is highly required, major and minor bugs are increasing.