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") {
      
OptFilenameScanToggle2D.32;
      
188 4;
      
text "Light Effects";
      
checked lighteffectsenabled;
    }
    new 
OptOpenGLToggle2D("OptWeatherToggle2D") {
      
OptFilenameScanToggle2D.80;
      
188 4;
      
text "Weather Effects";
      
checked weathereffectsenabled;
    }
    new 
OptOpenGLToggle2D("OptParticlesToggle2D") {
      
OptFilenameScanToggle2D.32;
      
OptAutomappingToggle2D.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 02:11 AM.

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