Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Light/Weather/Particle Toggle Options (https://forums.graalonline.com/forums/showthread.php?t=134269695)

fowlplay4 11-25-2014 08:04 PM

Light/Weather/Particle Toggle Options
 
This can be it's own weapon script or be added to any weapon really.

PHP Code:

//#CLIENTSIDE

function OptGeneralPane2D.onShow() {
  
with (OptGeneralPane2D) {
    new 
OptOpenGLToggle2D("OptLightsToggle2D") {
      
x = OptFilenameScanToggle2D.x - 32;
      
y = 188 - 4;
      
text = "Light Effects";
      
checked = lighteffectsenabled;
    }
    new 
OptOpenGLToggle2D("OptWeatherToggle2D") {
      
x = OptFilenameScanToggle2D.x + 80;
      
y = 188 - 4;
      
text = "Weather Effects";
      
checked = weathereffectsenabled;
    }
    new 
OptOpenGLToggle2D("OptParticlesToggle2D") {
      
x = OptFilenameScanToggle2D.x - 32;
      
y = OptAutomappingToggle2D.y - 4;
      
text = "Particle Effects";
      
checked = particleeffectsenabled;
    }
  }
}

function 
OptLightsToggle2D.onAction() {
  
lighteffectsenabled = OptLightsToggle2D.checked;
}

function 
OptWeatherToggle2D.onAction() {
  
weathereffectsenabled = OptWeatherToggle2D.checked;
}

function 
OptParticlesToggle2D.onAction() {
  
particleeffectsenabled = OptParticlesToggle2D.checked;
} 



All times are GMT +2. The time now is 10:57 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.