Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-25-2014, 08:04 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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;

__________________
Quote:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:04 PM.


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