Jump to content
zagor64bz

How to move hint box to the left?

Recommended Posts

I've googled up and down, but no luck on finding out how to move hint box from the right to the left side of sceen. I have a wip mission where there's 2 script running hints, and they get overlapped..hiding each other.Is even possible to move the box?

 

ps: one (the shortest) script is a countdown timer...

Spoiler

ELAPSED_TIME = 0; 
Minutes = 2700;
publicvariable "Minutes";
Minutesd = true;
publicvariable "Minutesd";

waitUntil {!isnil "Minutes"};
 
while {(Minutesd) && (Minutes > 0)} do {

		[{hintSilent parsetext format ["<br /><t align='center' color='#FF0000' size='1.3' font='TahomaB' >%1</t><br />",[((Minutes)/60)+.01,"HH:MM"] call BIS_fnc_timetostring];},"BIS_fnc_spawn",TRUE,FALSE] spawn BIS_fnc_MP;
		
      Minutes = Minutes - 1;
      publicvariable "Minutes";
      sleep 1;
 
};
Minutes = 0;
true;

waituntil {(Minutesd) && (Minutes == 0)};
// Script
titleText ["THE HVT LEFT THE ISLAND....MISSION FAILED!!", "PLAIN", 1] ;
["Failure",false,true] call BIS_fnc_endMission;

is possible to move this hint center or left?

Thank you all!

 

Share this post


Link to post
Share on other sites

You might be able to move the box with ctrl commands, but the hints aren't overlapping because there can only be one hint at the time. So you probably should create your own custom display for them or combine their contents to a single hint.

  • Like 1

Share this post


Link to post
Share on other sites
4 minutes ago, Greenfist said:

the hints aren't overlapping because there can only be one hint at the time

THANK you man.....Yap..that's what it is...didn't know that...mmmmm...since the hints come from un-conbinable events/scripts, I guess I have to create a custom display for the countdown timer. Where do I start with that?

Share this post


Link to post
Share on other sites

Here's a start: https://community.bistudio.com/wiki/Dialog_Control

 

Although a basic ctrlcreate script might be enough for simple hint replacement.
Something like this:

disableSerialization;
_ctrl = (findDisplay 46) ctrlCreate ["RscStructuredText", -1];
_ctrl ctrlSetPosition [safeZoneX+safeZoneW*0.01,safeZoneY-(safeZoneY*0.8),safeZoneW*0.1,safeZoneH*0.2];
_ctrl ctrlSetBackgroundColor [0, 0, 0, 0.2];
_ctrl ctrlSetStructuredText parsetext format ["Here's your hint,<br/>%1!",name player];
_ctrl ctrlCommit 0;
sleep 30;
_ctrl ctrlsetfade 1;
_ctrl ctrlCommit 2;
waitUntil {ctrlFade _ctrl == 1};
ctrlDelete _ctrl;


 

  • Like 1

Share this post


Link to post
Share on other sites
6 minutes ago, Greenfist said:

Here's a start: https://community.bistudio.com/wiki/Dialog_Control

 

Although a basic ctrlcreate script might be enough for simple hint replacement.
Something like this:


disableSerialization;
_ctrl = (findDisplay 46) ctrlCreate ["RscStructuredText", -1];
_ctrl ctrlSetPosition [safeZoneX+safeZoneW*0.01,safeZoneY-(safeZoneY*0.8),safeZoneW*0.1,safeZoneH*0.2];
_ctrl ctrlSetBackgroundColor [0, 0, 0, 0.2];
_ctrl ctrlSetStructuredText parsetext format ["Here's your hint,<br/>%1!",name player];
_ctrl ctrlCommit 0;
sleep 30;
_ctrl ctrlsetfade 1;
_ctrl ctrlCommit 2;
waitUntil {ctrlFade _ctrl == 1};
ctrlDelete _ctrl;


 

You've been VERY useful Greenfist...but me be a noob, where would I insert that script in the one I posted above?

Thank you man!!!

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

×