[Include] Dialog Center Text - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Dialog Center Text (
/showthread.php?tid=625090)
Dialog Center Text -
Ivan_Ino - 27.12.2016
Hey everyone, I was doing some dialogs and decided to make include which will center our text in dialog
Include
Code:
#include <DialogCenter>
How to use
There's no new functions..
To make text on middle dialog you must use
at first place in new line
Here is a example:
Code:
new str[512];
format(str, sizeof(str), "\
\\c{FFFFFF}Welcome back, {09E627}User\n \n\
\\c{FFFFFF}Please, insert your password in box below\
");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "\\cLogin", str, "OK", "Cancel");
Dialog Styles
It works with next styles in this version
- DIALOG_STYLE_MSGBOX
- DIALOG_STYLE_INPUT
- DIALOG_STYLE_PASSWORD
Screenshots
With caption support
Credits- Created by: Ino
- Consultations: [uL]Kanada42O
Changes
v1.0.2
Added support for caption (title)
-
-
Bugs
-
-
-
Download
(Version 1.0) Include + Example FS - GitHub ( https://github.com/Ino42O/Dialog-Center-Text )
Re: Dialog Center Text -
n0minal - 27.12.2016
Looks good, +9 reps.
Re: Dialog Center Text -
VVWVV - 27.12.2016
Good job!
Re: Dialog Center Text -
Ivan_Ino - 27.12.2016
Thanks mates xD
Re: Dialog Center Text -
Swedky - 27.12.2016
Good job there!
Re: Dialog Center Text -
Eoussama - 27.12.2016
Cool
Re: Dialog Center Text -
Tween73 - 27.12.2016
Nice
Re: Dialog Center Text -
morris91 - 28.12.2016
Nice work there bud.
Re: Dialog Center Text -
FreAkeD - 28.12.2016
This is awesome, good job dude!
Re: Dialog Center Text - iLearner - 28.12.2016
Will test it out, and probably merge it with another include.
Re: Dialog Center Text -
Ivan_Ino - 01.01.2017
Thank you guys
Re: Dialog Center Text -
Tenka - 02.01.2017
its work with easyDialog include?
Re: Dialog Center Text -
Ivan_Ino - 02.01.2017
I didn't tested yet
Re: Dialog Center Text -
Gammix - 02.01.2017
Since he's hooking ShowPlayerDialog, include this before easydialog and you should be good.
Re: Dialog Center Text -
Ivan_Ino - 10.01.2017
1.0.2 Update
Added support for caption (title)
Usage: \\c at first place on caption (check examples)
p.s. I expect some tiny bugs, if you find any, pls report it... Thanks
Re: Dialog Center Text -
Kar - 10.01.2017
Wow, this is amazing.
I don't really like the use of goto through.
Re: Dialog Center Text -
oMa37 - 10.01.2017
Creative, Awesome effort mate.
Re: Dialog Center Text - Jelly23 - 10.01.2017
Looks nice, might try it.
+REP
Re: Dialog Center Text -
Luis- - 10.01.2017
I fucking love this. Honestly it makes me feel all tingly inside seeing main headers centred like that.
Awesome job!
Re: Dialog Center Text -
ToiletDuck - 11.01.2017
Wow, this is way to awesome! I'll be using things Thanks!