Jump to content
Sign in to follow this  
HazJ

Dialog Transition - Cut off point

Recommended Posts

Hi all,

I have started to make a simple dialog transition, have done a few in the past with no issues. I am looking to create some kind of cut off point (not sure what to call it exactly). Similar to how the text scrolls across on the BIS AAN news function. That uses the edge of the screen though. I want to create the cut off at the end of the background control. I don't want to use a set value either if possible. I don't want the whole thing to fade off all at once, only parts that reach the edge of the background control. I'm thinking some kind of invisible control outside the background control (on each side - left/right) which has some higher priority over everything else, thus making it appear to be invisible... Not sure how to do this exactly though.

EDIT: Resolved! There is no possible fix for the map control it seems, look at the video. Watch it in slow mo for the best effect lol.

 

 

Share this post


Link to post
Share on other sites

I tried. Not sure if it's what you want exactly. Hopefully it helps.

Create and slide

Spoiler

	TEST_fnc_CtrlSlide = 
	{
		disableSerialization;
		params ["_currPage", "_nextPage"];
		_currPagePos = ctrlPosition _currPage;
		_currPagePos params ["_xposC","_yposC","_sizewC","_sizehC"];
		_nextPagePos = ctrlPosition _nextPage;
		_nextPagePos params ["_xposN","_yposN","_sizewN","_sizehN"];
		_currPage ctrlSetPosition [_xposC,_yposC,0,_sizehC];
		_currPage ctrlCommit 0.15;
		_nextPage ctrlSetPosition _currPagePos;
		_nextPage ctrlCommit 0.15;

	};
	_display = findDisplay 46;
	_display ctrlCreate ["IGUIBack", 850004];
	_infoBack = ((findDisplay 46) displayCtrl ( 850004));
	_posX = 0.225 * safezoneW + safezoneX;
	_posY = 0.225 * safezoneH + safezoneY;
	_sizeW = 0.55 * safezoneW;
	_sizeH = 0.55 * safezoneH;
	_infoBack ctrlSetPosition [_posX, _posY, _sizeW, _sizeH];
	_infoBack ctrlSetBackgroundColor [0.1,0.1,0.1,0.9];
	_infoBack ctrlCommit 0;

	_display ctrlCreate ["RscText", 850005];
	_item1 = ((findDisplay 46) displayCtrl ( 850005));
	_posX = 0.25 * safezoneW + safezoneX;
	_posY = 0.25 * safezoneH + safezoneY;
	_sizeW = 0.5 * safezoneW;
	_sizeH = 0.5 * safezoneH;
	_item1 ctrlSetPosition [_posX, _posY, _sizeW, _sizeH];
	_item1 ctrlSetText "TESTING TESTING TESTING TESTING TESTING TESTING TESTING TESTING ";
	_item1 ctrlSetBackgroundColor [1,0,0,0.9];
	_item1 ctrlCommit 0;

	_display ctrlCreate ["RscText", 850006];
	_item2 = ((findDisplay 46) displayCtrl ( 850006));
	_posX = 0.75 * safezoneW + safezoneX;
	_posY = 0.25 * safezoneH + safezoneY;
	_sizeW = 0 * safezoneW;
	_sizeH = 0.5 * safezoneH;
	_item2 ctrlSetPosition [_posX, _posY, _sizeW, _sizeH];
	_item2 ctrlSetText "TESTING TESTING TESTING TESTING TESTING TESTING TESTING TESTING ";
	_item2 ctrlSetBackgroundColor [0,1,0,0.9];
	_item2 ctrlCommit 0;

	_display ctrlCreate ["RscText", 850007];
	_item3 = ((findDisplay 46) displayCtrl ( 850007));
	_posX = 0.75 * safezoneW + safezoneX;
	_posY = 0.25 * safezoneH + safezoneY;
	_sizeW = 0 * safezoneW;
	_sizeH = 0.5 * safezoneH;
	_item3 ctrlSetPosition [_posX, _posY, _sizeW, _sizeH];
	_item3 ctrlSetText "TESTING TESTING TESTING TESTING TESTING TESTING TESTING TESTING ";
	_item3 ctrlSetBackgroundColor [0,0,1,0.9];
	_item3 ctrlCommit 0;

	_display ctrlCreate ["RscText", 850008];
	_item4 = ((findDisplay 46) displayCtrl ( 850008));
	_posX = 0.75 * safezoneW + safezoneX;
	_posY = 0.25 * safezoneH + safezoneY;
	_sizeW = 0 * safezoneW;
	_sizeH = 0.5 * safezoneH;
	_item4 ctrlSetPosition [_posX, _posY, _sizeW, _sizeH];
	_item4 ctrlSetBackgroundColor [0,1,1,0.9];
	_item4 ctrlSetText "TESTING TESTING TESTING TESTING TESTING TESTING TESTING TESTING ";
	_item4 ctrlCommit 0;

	_display ctrlCreate ["RscText", 850009];
	_item5 = ((findDisplay 46) displayCtrl ( 850009));
	_posX = 0.75 * safezoneW + safezoneX;
	_posY = 0.25 * safezoneH + safezoneY;
	_sizeW = 0 * safezoneW;
	_sizeH = 0.5 * safezoneH;
	_item5 ctrlSetPosition [_posX, _posY, _sizeW, _sizeH];
	_item5 ctrlSetText "TESTING TESTING TESTING TESTING TESTING TESTING TESTING TESTING ";
	_item5 ctrlSetBackgroundColor [1,0,1,0.9];
	_item5 ctrlCommit 0;
	
	_display ctrlCreate ["RscText", 850010];
	_item6 = ((findDisplay 46) displayCtrl ( 850010));
	_posX = 0.75 * safezoneW + safezoneX;
	_posY = 0.25 * safezoneH + safezoneY;
	_sizeW = 0 * safezoneW;
	_sizeH = 0.5 * safezoneH;
	_item6 ctrlSetPosition [_posX, _posY, _sizeW, _sizeH];
	_item6 ctrlSetText "TESTING TESTING TESTING TESTING TESTING TESTING TESTING TESTING ";
	_item6 ctrlSetBackgroundColor [1,1,0,0.9];
	_item6 ctrlCommit 0;

	[_item1,_item2,_item3,_item4,_item5,_item6] spawn 
	{
		disableSerialization;
		params ["_item1","_item2","_item3","_item4","_item5","_item6"];
		sleep 5;
		[_item1,_item2] spawn TEST_fnc_CtrlSlide;
		sleep 2;
		[_item2,_item3] spawn TEST_fnc_CtrlSlide;
		sleep 2;
		[_item3,_item4] spawn TEST_fnc_CtrlSlide;
		sleep 2;
		[_item4,_item5] spawn TEST_fnc_CtrlSlide;
		sleep 2;
		[_item5,_item6] spawn TEST_fnc_CtrlSlide;

	};

 

 

Delete

Spoiler

	for "_i" from 850004 to 850010 do 
	{
		_ctrl = ((findDisplay 46) displayCtrl ( _i));
		ctrlDelete _ctrl;
	};

 

 

Share this post


Link to post
Share on other sites

No? Thanks anyway. By the way, you replied after I edited it with status resolved. Look at the second video.

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  

×