gamma slider (wont recognize System)

Started by Buckethead, Thu 06/11/2008 16:50:53

Previous topic - Next topic

Buckethead

Hi,

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

Code: ags

if (System.SupportsGammaControl = true) {
    SystemGamma == sldGamma.Value
}
else
{
    sldGamma.Enabled = false;
}

Khris


Buckethead

oh right, I've made a typo there... but it still doesn't recognize System =(

Khris

#3
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?

Buckethead

Sorry for the inconvience. I thought I had the newest version before 3. It works now

Dualnames

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 =
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Buckethead

I actually copied the code from your old thread lol  ;)

anyway it works now.

Dualnames

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?
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Buckethead

It works on both 2.72 and 3. Just not on any version lower then 2.72

SMF spam blocked by CleanTalk