Main Menu – Arma 3

From Bohemia Interactive Community
Revision as of 15:58, 14 June 2016 by Str (talk | contribs)
Jump to navigation Jump to search
class RscDisplayMain: RscStandardDisplay
{
	class Spotlight
	{
		class CoopCampaign
		{
			text = "Coop Campaign"; // Text displayed on the square button, converted to upper-case
			picture = "\a3\Ui_f\Data\GUI\Rsc\RscDisplayMain\spotlight_1_apex_ca.paa"; // Square picture, ideally 512x512
			video = "\a3\Ui_f\Video\spotlight_1_Apex.ogv"; // Video played on mouse hover
			action = "ctrlactivate ((ctrlparent (_this select 0)) displayctrl 101);"; // Code called upon clicking, passed arguments are [<button:Control>]
			actionText = $STR_A3_RscDisplayMain_Spotlight_Play; // Text displayed in top left corner of on-hover white frame
			condition = "true"; // Condition for showing the spotlight
		};
		class AnotherCoopCampaign
		{
			text = "Another Coop Campaign";
			picture = "\a3\Ui_f\Data\GUI\Rsc\RscDisplayMain\spotlight_1_eastwind_ca.paa";
			action = "ctrlactivate ((ctrlparent (_this select 0)) displayctrl 149);";
			actionText = $STR_A3_RscDisplayMain_Spotlight_Play;
			condition = "isKeyActive 'FinishedCoopCampaign';";
		};
	};
};