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
> Stopping flash command cursor, in the menù
Haku
post Aug 7 2011, 09:01 AM
Post #1


Level 11
Group Icon

Group: Revolutionary
Posts: 187
Type: Scripter
RM Skill: Advanced




Hi guys °°
I have a question...
I state that I have checked the code a little bit, but I have not found anything about it...
I would like the selection window is not flashing, and remained rather steady...
What should I change?
Go to the top of the page
 
+Quote Post
   
stripe103
post Aug 8 2011, 01:09 AM
Post #2


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




The cursor blink is in the Window class which is a built in class that I don't think can be changed.
The only way I can see to make the cursor stop blinking is to set the window active variable to false(by writing $window_name.active = false), but most scripts use that to decide what window is actually active, so you would basically have to rewrite everything that uses the active variable and make it use another variable instead.

This post has been edited by stripe103: Aug 8 2011, 01:11 AM


__________________________

By Axerax

The rest of my sig



Go to the top of the page
 
+Quote Post
   
Night_Runner
post Aug 8 2011, 01:34 AM
Post #3


Level 50
Group Icon

Group: +Gold Member
Posts: 1,525
Type: Scripter
RM Skill: Undisclosed




Window class.... setting self.active to false.... done smile.gif
code
CODE
#==============================================================================
# ** Window
#------------------------------------------------------------------------------
#  This class is for all windows.
#==============================================================================

class Window
  #--------------------------------------------------------------------------
  # * Alias Methods
  #--------------------------------------------------------------------------
  alias nr_flashing_update  update  unless $@
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update(*args)
    self.active = false
    ret_val = nr_flashing_update(*args)
    self.active = true
    return ret_val
  end
end


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   
Haku
post Aug 10 2011, 10:41 AM
Post #4


Level 11
Group Icon

Group: Revolutionary
Posts: 187
Type: Scripter
RM Skill: Advanced




@Night_Runner: you are my idol, i olve you xD =)

@stripe: thanks to you for the reply ^^
Go to the top of the page
 
+Quote Post
   
stripe103
post Aug 10 2011, 12:01 PM
Post #5


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




Or you could do like that.

I try to understand the script, but I can't quite. What does the $@ do?

Also, where can you get what all those classes look like? I can't find them in the manual. Well, some have it, but not all. This is one of them.


__________________________

By Axerax

The rest of my sig



Go to the top of the page
 
+Quote Post
   
Haku
post Aug 12 2011, 06:07 PM
Post #6


Level 11
Group Icon

Group: Revolutionary
Posts: 187
Type: Scripter
RM Skill: Advanced




In fact even I did not understand how it is used nell'unless $@ ^^'
Go to the top of the page
 
+Quote Post
   
stripe103
post Aug 13 2011, 02:32 AM
Post #7


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




As I read it, it activated it no matter what it was previously, so to avoid all windows getting activated I guess he put it there, but I'm not sure about it..

This post has been edited by stripe103: Aug 13 2011, 02:32 AM


__________________________

By Axerax

The rest of my sig



Go to the top of the page
 
+Quote Post
   
Night_Runner
post Aug 14 2011, 01:44 AM
Post #8


Level 50
Group Icon

Group: +Gold Member
Posts: 1,525
Type: Scripter
RM Skill: Undisclosed




The unless $@ was a snippet I picked up from a tutorial ages ago.
As far as I can tell, it basically says
CODE
alias new_method_name original_method_name unless new_method_name.exists?


You need the unless $@ for when you're dealing with the hidden scripts, such as Window and Audio, because when you do a soft reset (hit F12 during gameplay) it doesn't reload the hidden scripts, only the ones in the script editor.
And it becomes a problem because since it didn't reload the hidden scripts, the hidden scripts never remade original_method_name, so when you try and alias it problems occur smile.gif


@> stripe103: A fair chunk of the hidden scripts can be found in the Pokemon Starter Kit, but since I just aliased the method I didn't have to look at it to figure out what I needed to change (you're the one who mentioned that the window needs to be set to self.active = false for the update for class window) smile.gif


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   
stripe103
post Aug 14 2011, 07:01 AM
Post #9


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




Yeah, but like I said, the way I read it, all the windows that get updated will have their active set to true and not what they was before the update. Wouldn't that mean that all scripts that use the active variable will be kinda ruined? Or it just change it to true on certain occasions?


__________________________

By Axerax

The rest of my sig



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: 23rd May 2013 - 09:28 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker