SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 27/12/2016, 08:39 PM   #1
Ivan_Ino
Big Clucker
 
Join Date: Oct 2012
Location: Croatia
Posts: 102
Reputation: 120
Exclamation Dialog Center Text

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
Code:
\\c
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 )

Last edited by Ivan_Ino; 10/01/2017 at 06:27 PM.
Ivan_Ino is offline   Reply With Quote
Old 27/12/2016, 08:40 PM   #2
n0minal
High-roller
 
n0minal's Avatar
 
Join Date: Mar 2013
Location: Rio de Janeiro
Posts: 4,029
Reputation: 758
Default Re: Dialog Center Text

Looks good, +9 reps.
n0minal is offline   Reply With Quote
Old 27/12/2016, 08:43 PM   #3
VVWVV
Big Clucker
 
Join Date: Jun 2015
Posts: 142
Reputation: 70
Default Re: Dialog Center Text

Good job!
VVWVV is offline   Reply With Quote
Old 27/12/2016, 08:44 PM   #4
Ivan_Ino
Big Clucker
 
Join Date: Oct 2012
Location: Croatia
Posts: 102
Reputation: 120
Default Re: Dialog Center Text

Thanks mates xD
Ivan_Ino is offline   Reply With Quote
Old 27/12/2016, 09:07 PM   #5
Swedky
Banned
 
Join Date: Jun 2013
Location: Argentina.
Posts: 2,043
Reputation: 827
Default Re: Dialog Center Text

Good job there!
Swedky is offline   Reply With Quote
Old 27/12/2016, 09:17 PM   #6
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,070
Reputation: 266
Default Re: Dialog Center Text

Cool
__________________

|===[Web taxi]===|
List of my work
Github
Pastebin

|===[Interesting topics]===|
Semantic Versioning
Eoussama is offline   Reply With Quote
Old 27/12/2016, 10:17 PM   #7
Tween73
Banned
 
Join Date: Aug 2014
Posts: 104
Reputation: 0
Default Re: Dialog Center Text

Nice
Tween73 is offline   Reply With Quote
Old 28/12/2016, 07:25 AM   #8
morris91
Big Clucker
 
morris91's Avatar
 
Join Date: Feb 2008
Location: London, England
Posts: 140
Reputation: 32
Default Re: Dialog Center Text

Nice work there bud.
morris91 is offline   Reply With Quote
Old 28/12/2016, 07:28 AM   #9
FreAkeD
Gangsta
 
FreAkeD's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 630
Reputation: 87
Default Re: Dialog Center Text

This is awesome, good job dude!
FreAkeD is offline   Reply With Quote
Old 28/12/2016, 07:57 AM   #10
iLearner
Guest
 
Posts: n/a
Default Re: Dialog Center Text

Will test it out, and probably merge it with another include.
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dialog text at center bboytimix Scripting Help 2 25/09/2016 01:34 PM
SA-MP Dialog - To much text? :P faff Scripting Help 8 14/06/2013 02:59 PM
help: dialog text NewbieScripter Scripting Help 1 15/08/2012 09:08 PM
How to Center a text on pawno? KissOfDeath Scripting Help 6 27/09/2011 06:32 AM


All times are GMT. The time now is 06:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.