Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Buckethead on Thu 06/11/2008 16:50:53

Title: gamma slider (wont recognize System)
Post by: Buckethead on Thu 06/11/2008 16:50:53
Hi,

I'm trying to make a gamma slider in AGS 2.7 but it doesn't seem to recognize 'System'  :(


if (System.SupportsGammaControl = true) {
    SystemGamma == sldGamma.Value
}
else
{
    sldGamma.Enabled = false;
}
Title: Re: gamma slider (wont recognize System)
Post by: Khris on Thu 06/11/2008 16:52:08
System DOT Gamma
Title: Re: gamma slider (wont recognize System)
Post by: Buckethead on Thu 06/11/2008 16:55:30
oh right, I've made a typo there... but it still doesn't recognize System =(
Title: Re: gamma slider (wont recognize System)
Post by: Khris on Thu 06/11/2008 17:01:32
Where did you get that code from?
After a quick look at 2.7's manual I get it doesn't seem to support a custom gamma setting.

Edit: System.Gamma was added when 2.72 went from beta 6 to beta 7 ::)
Why are you still using such an outdated version anyway?
If you dislike 3, that's fine, but why not work with 2.72 then?
Title: Re: gamma slider (wont recognize System)
Post by: Buckethead on Thu 06/11/2008 17:20:55
Sorry for the inconvience. I thought I had the newest version before 3. It works now
Title: Re: gamma slider (wont recognize System)
Post by: Dualnames on Fri 07/11/2008 10:22:57
if (System.SupportsGammaControl == true) {
    System.Gamma == sldGamma.Value
}
else
{
    sldGamma.Enabled = false;
}

I think ags 2.72 supports.. but check the first line, (you forgot a =
Title: Re: gamma slider (wont recognize System)
Post by: Buckethead on Fri 07/11/2008 10:41:48
I actually copied the code from your old thread lol  ;)

anyway it works now.
Title: Re: gamma slider (wont recognize System)
Post by: Dualnames on Fri 07/11/2008 12:48:21
Quote from: Buckethead on Fri 07/11/2008 10:41:48
I actually copied the code from your old thread lol  ;)

anyway it works now.

That sort of explains , why I got some PM's about the slider...thanks for hanging me Bucket..actually question does it work on 3.0 or 2.72 or both?
Title: Re: gamma slider (wont recognize System)
Post by: Buckethead on Fri 07/11/2008 14:37:35
It works on both 2.72 and 3. Just not on any version lower then 2.72