Guest User

Untitled

a guest
Aug 13th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 2.47 KB | None | 0 0
  1. /*
  2.     Author: Karel Moricky
  3.  
  4.     Description:
  5.     Show AAN article
  6.  
  7.     Parameter(s):
  8.         0: ARRAY of ARRAYS - each subarray defines part of an article, can be:
  9.  
  10.             ["title", <text:string>]
  11.                 Article title
  12.  
  13.             ["meta", [<author:string>, <date:array Y,M,D,H,M>, <timezoneName:string>]]
  14.                 Article author and date
  15.  
  16.             ["text",<text:string>]
  17.                 Paragraph
  18.  
  19.             ["textbold",<text:string>]
  20.                 Bold paragraph
  21.  
  22.             ["textlocked",[<text:string>,<prompt:string>]]
  23.                 Locked paragraph with subscriber prompt. There should be no paragraph after it.
  24.  
  25.             ["image",[<path:string>, <description:string>, <source:string>]]
  26.                 Image with description. The image should have 2:1 ratio.
  27.  
  28.             ["box",[<path:string>, <description:string>]]
  29.                 Link to another "fake" article displayed on left. The image should have 2:1 ratio.
  30.  
  31.             ["author",[<path:string>, <description:string>]]
  32.                 Author's bio. The iage should have 1:1 ratio.
  33.  
  34.         1: DISPLAY - parent display
  35.         2: BOOL - true to fade from black (default: false)
  36.  
  37.     Example:
  38.         [
  39.             [
  40.                 ["title","My Title"],
  41.                 ["meta",["Catherine Bishop",[2035,2,24,11,38],"CET"]],
  42.                 ["textbold","This is a bold text"],
  43.                 ["image",["\a3\Missions_F_Orange\Data\Img\orange_overview_ca.paa","Some image description"]],
  44.                 ["box",["\a3\Missions_F_Orange\Data\Img\Faction_IDAP_overview_CA.paa","You won't believe what playing IDAP showcase can bring you"]],
  45.                 ["text","Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi tincidunt pretium ultricies. Etiam ac ornare est, quis posuere nisl. Mauris facilisis lectus eu turpis maximus consequat. Donec ut metus nec risus tristique mattis. Ut posuere rutrum tellus, ut molestie orci mattis id. Cras ultrices euismod diam, in venenatis nunc commodo eget. Interdum et malesuada fames ac ante ipsum primis in faucibus. Morbi congue dolor rutrum lectus euismod, ac faucibus magna molestie. Aliquam in libero sit amet eros sagittis tristique. Nam pellentesque dignissim aliquam."],
  46.                 ["textlocked",["Sed non est risus. Nulla condimentum at leo sed bibendum. Phasellus laoreet sit amet leo tincidunt consequat. Curabitur nec hendrerit purus. Nam massa nisi, mattis in aliquet consectetur, ornare eget nibh. Nunc dignissim, nibh sit amet ultrices tincidunt, mi nulla fermentum quam, non condimentum dolor eros vulputate massa.","SUBSCRIBE PLZ"]],
  47.                 ["author",["\a3\Missions_F_Orange\Data\Img\avatar_journalist_ca.paa","Catherine Bishop is a journalist"]]
  48.             ]
  49.         ] call bis_fnc_showAANArticle;
  50.  
  51.     Returns:
  52.     DISPLAY
  53. */
Add Comment
Please, Sign In to add comment