Jump to content
Sign in to follow this  
AdirB

BIS_fnc_dynamicText position not synced on screens

Recommended Posts

Hello, I wrote a dynamicText code on my screen it works fine, but on my friends screen it's half out the screen.

["<t align='left' font='PuristaBold'>Campaign missions designed<br/>by Adir…</t>",-0.6,1.1,5,2,0,789] spawn BIS_fnc_dynamicText;

The in-game video settings of both me and my friends are the same.

I have 24 inch screen and he have 21 inch screen.

 

Is there a way to make the position at the same place and synced on both screens?

Share this post


Link to post
Share on other sites

Hey, thanks for answer.

If I use this

fnc_dynamicText = {
	disableserialization;
	(_this select 4) cutrsc ["RscTime","plain down"];
	_control = (uinamespace getvariable "BIS_InfoTime") displayctrl 112301;
	_control ctrlsetstructuredtext parsetext (_this select 0);
	sleep (_this select 5);
	_pos = ctrlposition _control;
	_control ctrlsetfade 0;
	_pos set [1,(_pos select 1) + (_this select 3)];
	_control ctrlsetposition _pos;
	_control ctrlcommit (_this select 1)
};

the text positiong might be fixed?

where should I put the fnc?

just make a SQF file called  fnc_dynamicText and put it in the same folder as the text sqf?

Share this post


Link to post
Share on other sites

Hey, thanks for answer.

If I use this

fnc_dynamicText = {
	disableserialization;
	(_this select 4) cutrsc ["RscTime","plain down"];
	_control = (uinamespace getvariable "BIS_InfoTime") displayctrl 112301;
	_control ctrlsetstructuredtext parsetext (_this select 0);
	sleep (_this select 5);
	_pos = ctrlposition _control;
	_control ctrlsetfade 0;
	_pos set [1,(_pos select 1) + (_this select 3)];
	_control ctrlsetposition _pos;
	_control ctrlcommit (_this select 1)
};

the text positiong might be fixed?

where should I put the fnc?

just make a SQF file called  fnc_dynamicText and put it in the same folder as the text sqf?

 

idk if it fixes the problem, after revos post i doubt it.

its a function and u should nknow how to use it. if not then read this:

https://community.bistudio.com/wiki/Function

Share this post


Link to post
Share on other sites

idk if it fixes the problem, after revos post i doubt it.

its a function and u should nknow how to use it. if not then read this:

https://community.bistudio.com/wiki/Function

  

I'd say that is a bug. I've reported it here https://forums.bistudio.com/topic/160780-spawn-bis-fnc-dynamictext-position-values-and-duration/#entry2599029Let's see what the devs say.

I will try the function anyway, but you think its the BIS FNC problem and has nothing to do with screens/inch s or code lines?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×