Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Simple Option Menu for Brightness, Volume, Normal Text Color Adjustment
feniix
post Jan 25 2010, 06:29 AM
Post #1


Level 1
Group Icon

Group: Member
Posts: 5
Type: None
RM Skill: Undisclosed




Hello guys. Barely new scripter here. I'm having trouble on how to add scripts that would adjust brightness, volume, and the normal text color.
The look can be very simple, just two keys I guess to adjust all three (seperately ofcourse happy.gif ), maybe like and arrow keys to the left and right.
I guess I'm being really specific tongue.gif

[Show/Hide] Here's my code so far
#=========================================================================
=====
# Options Window
#------------------------------------------------------------------------------
# Adjust Brightness, Volume, and Text Color.
#==============================================================================
class Window_Options < Window_Base
def initialize()
super(20, 20, 500, 380)
self.windowskin = Cache.system("WindowTitle")
refresh
end

def refresh
self.contents.clear
draw_options(0, 0)
end

def draw_options(x, y)
self.contents.font.color = system_color
self.contents.draw_text(x+175, y, 300, WLH, "Game Options")
self.contents.font.color = normal_color
draw_enter_text(x+80, y+30, 500, WLH, "Adjust in game brightness, volume \n and text color to your preference")
self.contents.font.color = text_color(2)
self.contents.draw_text(x+30, y+120, 300, WLH, "Brightness")
self.contents.draw_text(x+200, y+120, 300, WLH, "Volume")
self.contents.draw_text(x+350, y+120, 300, WLH, "Text Color")
end
end

class Scene_Options < Scene_Base
def initialize()
end

def start
super
create_menu_background
@options_window = Window_Options.new
end

def terminate
super
dispose_menu_background
@options_window.dispose
end

def return_scene
$scene = Scene_Title.new
end

def update
update_menu_background
@options_window.update
if Input.trigger?(Input::cool.gif
Sound.play_cancel
return_scene
end
end
end
Go to the top of the page
 
+Quote Post
   
dricc
post Jan 25 2010, 07:00 AM
Post #2


Level 8
Group Icon

Group: Revolutionary
Posts: 117
Type: None
RM Skill: Undisclosed




You can have a look at yanfly's script :

http://pockethouse.wordpress.com/vx/menu-system-options/

Go to the top of the page
 
+Quote Post
   
feniix
post Jan 25 2010, 05:26 PM
Post #3


Level 1
Group Icon

Group: Member
Posts: 5
Type: None
RM Skill: Undisclosed




QUOTE (dricc @ Jan 25 2010, 07:00 AM) *
You can have a look at yanfly's script :

http://pockethouse.wordpress.com/vx/menu-system-options/


Thanks for the fast reply dricc. I'm going to try this. But I hope someone can still help me with my code. I need to learn how to code on my own. Thanks again! biggrin.gif
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 03:03 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker