[Include] Dialog Center Text
#1

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 )
Reply
#2

Looks good, +9 reps.
Reply
#3

Good job!
Reply
#4

Thanks mates xD
Reply
#5

Good job there!
Reply
#6

Cool
Reply
#7

Nice
Reply
#8

Nice work there bud.
Reply
#9

This is awesome, good job dude!
Reply
#10

Will test it out, and probably merge it with another include.
Reply
#11

Thank you guys
Reply
#12

its work with easyDialog include?
Reply
#13

I didn't tested yet
Reply
#14

Since he's hooking ShowPlayerDialog, include this before easydialog and you should be good.
Reply
#15

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
Reply
#16

Wow, this is amazing.

I don't really like the use of goto through.
Reply
#17

Creative, Awesome effort mate.
Reply
#18

Looks nice, might try it.

+REP
Reply
#19

I fucking love this. Honestly it makes me feel all tingly inside seeing main headers centred like that.

Awesome job!
Reply
#20

Wow, this is way to awesome! I'll be using things Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)