Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Fury on May 21, 2009, 12:21:04 am

Title: add-sun-bitmap grayed out?
Post by: Fury on May 21, 2009, 12:21:04 am
Why are add-sun-bitmap and add-background-bitmap always grayed out on fred2_open 3.6.10 rc2? What are the prerequisites to get them working? Their remove-variations do work.
Title: Re: add-sun-bitmap grayed out?
Post by: FUBAR-BDHR on May 21, 2009, 12:24:47 am
You have to define a variable first for either add bitmap sexp as it returns a value to store to the variable.
Title: Re: add-sun-bitmap grayed out?
Post by: karajorma on May 21, 2009, 01:32:31 am
I'm thinking about making that variable an optional argument for just this reason. You don't really need it except if you later want to remove that bitmap.
Title: Re: add-sun-bitmap grayed out?
Post by: FUBAR-BDHR on May 21, 2009, 01:39:02 am
Even then it's usually easier to just keep track of it manually and remove it that way. 
Title: Re: add-sun-bitmap grayed out?
Post by: Fury on May 21, 2009, 01:54:07 am
You have to define a variable first for either add bitmap sexp as it returns a value to store to the variable.
Uh, how can I define a variable if I can't select the sexp in the first place?
Title: Re: add-sun-bitmap grayed out?
Post by: FUBAR-BDHR on May 21, 2009, 01:59:16 am
Right click on any event/sexp/etc and add variable. 
Title: Re: add-sun-bitmap grayed out?
Post by: Fury on May 21, 2009, 02:01:29 am
Ah, so THAT'S what it needs to work. Thanks.
Title: Re: add-sun-bitmap grayed out?
Post by: karajorma on May 22, 2009, 08:40:13 am
I'm thinking about making that variable an optional argument for just this reason.

And after taking a look at it, I've decided not to do it.

You wouldn't believe the sheer amount of new code it would require to make this work! :rolleyes: