Jump to content
  • 0

[solved] class RscTitles : RscPicture


TolH

Question

Hi, me again...  sorry for being so dumb, but it looks like i am the only one asking for help here :D

So i was playing with something i found out a few days ago (ArmA-UI-Editor) and had picture problem that i can't quite get why it's not working.

The test picture on the left is working just fine, but the one to the right is not showing. Some will some other don't. Doesn't seem to matter if it's jpg,paa,png or whatever, some just don't want to be shown.

What are the rule for picture that can be shown by the rscPicture.

My test looks like this:

Spoiler

//============================================////============================================//
class RscTitles
{
	//TO USE: 
	#include "custom\ZombieMission.hpp"
	class ZOMBIE_MISSION_NOTIFICATION
	{
		duration = 10;
		fadeIn = 1;
		fadeOut = 3;
		movingEnable = false;
		idd = -1;
		class controls
		{
			class ZOMBIE_TEXT : RscStructuredText
			{
				sizeEx = 0.05;
				font = "PuristaSemiBold";
				y = "SafeZoneY + (854.999999999999 / 1080) * SafeZoneH";
				x = "SafeZoneX + (615 / 1920) * SafeZoneW";
				w = "(585 / 1920) * SafeZoneW";
				h = "(134.999999999999 / 1080) * SafeZoneH";
				text = "My UI Starts here testing 123123123123123<br />___________________________<br />123123123123123";
				colorBackground[] = {0.1, 0.1, 0.1, 0.2};
			};
			class ZOMBIE_IMG1 : RscPicture
			{
				text = "GUI_ON_THE_FLY\ZOMBRELLA\img\icon.paa" ;
				x = "SafeZoneX + (495 / 1920) * SafeZoneW";
				y = "SafeZoneY + (855 / 1080) * SafeZoneH";
				w = "(120 / 1920) * SafeZoneW";
				h = "(135 / 1080) * SafeZoneH";
			};
			class ZOMBIE_IMG2 : RscPicture
			{
				text = "GUI_ON_THE_FLY\ZOMBRELLA\img\biohazard_logo.png" ;
				x = "SafeZoneX + (1200 / 1920) * SafeZoneW";
				y = "SafeZoneY + (855 / 1080) * SafeZoneH";
				w = "(120 / 1920) * SafeZoneW";
				h = "(135 / 1080) * SafeZoneH";
			};
		};
	};
};
//============================================////============================================//

 

solved. Accept .paa factor of 2.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...