@IF preprocessor command

Find quick help here to get you started with Hollywood
Post Reply
bitRocky
Posts: 80
Joined: Fri Nov 14, 2014 7:01 pm

@IF preprocessor command

Post by bitRocky » Mon Feb 26, 2018 10:28 pm

I wanted to do something like that:

Code: Select all

@DISPLAY { Width = 800, Height = 600, Title = "Blu Morpho - Lost In Space",
@IF #HW_ANDROID
	Mode = "FullScreenScale"
@ELSE
	Mode = "Windowed"
@ENDIF
}
But this doesn't seem to work, I get an error.

SamuraiCrow
Posts: 130
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: @IF preprocessor command

Post by SamuraiCrow » Tue Feb 27, 2018 12:55 am

Code: Select all

@IF #HW_ANDROID
@DISPLAY {TITLE="Blue Morpho - Lost in Space", MODE="FullScreenScale"}
@ELSE
@DISPLAY {MODE="Windowed", TITLE="Blue Morpho - Lost in Space"}
@ENDIF
should work. If you need the title defined once, use a const directive.

User avatar
airsoftsoftwair
Posts: 2482
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: @IF preprocessor command

Post by airsoftsoftwair » Tue Feb 27, 2018 11:20 pm

As @IF is itself a preprocessor command, it can't be included in the middle of another preprocessor command so you have to do it as shown by SamuraiCrow.

Post Reply