Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. private ["_display","_text","_listBox","_index","_configName","_goTo","_name","_picture","_description","_textPosition"];
  2. _display = uiNamespace getVariable ["RRPDialogListGroups",displayNull];
  3. true call RRPClient_gui_util_blur;
  4. _text = _display displayCtrl 9803;
  5. _textPosition = ctrlPosition _text;
  6. _listBox = _this select 0;
  7. _index = _this select 1;
  8. _configName = _listBox lbData _index;
  9. _goTo = missionConfigFile >> "CfgGroups" >> "PremiumGroups";
  10. _name = getText (_goTo >> _configName >> "name");
  11. _picture = getText (_goTo >> _configName >> "picture");
  12. _description = getText (_goTo >> _configName >> "description");
  13. _text ctrlSetStructuredText (parseText (format [
  14. "<t><t size='1.5' font='gtav' color='%4' align='center'>%1</t><br/><br/>
  15. <t color='FF0000' size='7' align='center'><img image='%2'></t><br/><br/>
  16. <t size='1' color='%4'>%3</t></t>",_name,_picture,_description,profileNamespace getVariable ['GUI_V3_TXT_HTML','#000000']]));
  17. _textPosition set [3,((ctrlTextHeight _text) + (0.005 * safezoneH))];
  18. _text ctrlSetPosition _textPosition;
  19. _text ctrlCommit 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement