TEXTnPIC Customizable Engine
TEXTnPIC is simple engine for creators to make their own some text and/or picture based things.

Features:
* text with line breaks (\n) (texts.txt) (textnpic.txt: texts=1)
* picture (jpg, gif or png) (pics.txt) (textnpic.txt: pics=1)
* link (url with optional general name) (urls.txt) (textnpic.txt: urls=1, urltext=linkname)
* synchronization mode with player note (everybody see the same) (textnpic.txt: players=1, sync=1)
* three work modes: order (textnpic.txt: randomly=0), random (textnpic.txt: randomly=1), unique random (textnpic.txt: randomly=1, randomunique=1)
* visual settings: text color (textnpic.txt: textfontcolor=0xFFFFC6), background color (textnpic.txt: textbgcolor=0x000000), background transparency (textnpic.txt: textbgtransparency=0.5), background corner rounds (textnpic.txt: textbground=10), default text width (textnpic.txt: textwidth=0), text align (textnpic.txt: textformatalign=left)

There are up to four files to do:
textnpic.txt - main configuration file
texts.txt - file with texts (every text as single line - you can use n as line break)
pics.txt - file with picture file names (every picture as single line)
urls.txt - file with www links (every link as single line)


* TRY IT *



*** textnpic.txt default configuration ***
texts=1
# text object (1 to turn on, texts.txt)
pics=1
# picture object (1 to turn on, pics.txt)
players=1
# players object (1 to turn on)
urls=1
# url link object (1 to turn on, urls.txt)
sync=1
# synchronization (everybody share the same current data)
randomly=1
# random element (not from first to the last)
randomunique=1
# any element shows once (until stack will not reach end)
textwidth=0
# text area width in pixels (if 0, its same as picture width)
textfontcolor=0xFFFFC6
# color of font used in text (HTML code, 0xFFFFFF)
textformatalign=left
# text format (examples: left, right, justify, center)
textbgcolor=0x000000
# color of text background (HTML code, 0x000000)
textbground=10
# rounds in background corners (0 means standard rectangle)
textbgtransparency=0.5
# text background transparency (examples: 0, 0.5, 1)
urltext=
# link text (if nothing, then used short url name)

*** EXAMPLE 1: IMVU PHOTOALBUM ***
Shows pictures from first to the last by clicking on them. Everybody see the same current picture.
--- textnpic.txt example ---
pics=1
texts=1
sync=1
randomly=0
textfontcolor=0xFFFFFF
textbground=0
textbgtransparency=1
--- pics.txt example ---
1.jpg
2.jpg
--- texts.txt example ---
speedstar84\n---\nFemale avatar for contest
speedstar84 with friends\n---\nGroup dance at public room

*** EXAMPLE 2: COMMAND GAME ***
Shows random unique picture command for player. Other players see what he get.
--- textnpic.txt example ---
pics=1
texts=1
players=1
sync=1
randomly=1
randomunique=1
--- pics.txt example ---
1.jpg
2.jpg
--- texts.txt example ---
Simon says:\nTell a joke
Simon says:\nDance with someone

*** EXAMPLE 3: PRODUCT CATALOGUE ***
Shows product pictures with description and catalog link, from first to the last by clicking on them. Everybody browse catalogue independently.
--- textnpic.txt example ---
pics=1
texts=1
urls=1
sync=0
randomly=0
textbgtransparency=1
textbground=20
urltext=Product Page
--- pics.txt example ---
1.jpg
2.jpg
--- texts.txt example ---
* Music Sync Player *\nFully synchronized music player with shared playlist, song memory and built in song search\n- Derivable -
* IMVU Business Game* \n3 x 2 Player Monopoly Game\n- Derivable -
--- urls.txt example ---
http://www.imvu.com/shop/product.php?products_id=11509279
http://www.imvu.com/shop/product.php?products_id=11307329

*** EXAMPLE 4: JOKES DATABASE ***
Shows random unique jokes for all.
--- textnpic.txt example ---
texts=1
players=1
sync=1
randomly=1
randomunique=1
textwidth=200
--- texts.txt example ---
Only Chuck Norris finished IMVU
How to contact Chuck Norris? Its simple. You cant! Chuck Norris will find you!

Related: