RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
MOG & SEL STYLED MENUS editing

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 84
Above Characters
Hi there!
Lets go straight to the point. I am using mog & sel styled menus in my project.
http://rmrk.net/index.php/topic,30304.0.html
I tweaked it alot - made custom graphics, sounds, placed pieces of the interface just as i want them to be (done that by randomely changing the numbers in the scripts and watching what each one of them doing :P yeah i know im a total noob at scripting - all these text piles are real nightmare to me).
Well i got almost everything like i want. Almost. There is one problem that i am uncapable to solve by myself (i dont know, maybe it is really easy, but like i said, im a NOOB). So heres what it is.

If you try the demo, enter the menu and select any option except the first one (for example, the Equip command), go to the character selection mode and then in the actual equip menu. So if you press Escape button you will go back to main menu screen. I want the command that was highlighted when i was entering the equip menu (the Equip line in this case) remain in that position. But instead it switches to first one (Items) and only then goes to previously highlighted tab (Equip). This flickering is almost not noticable in the original version of the menu system, but in my case it ruins all of the experience.
Sorry for my awful explanation - the english is not my native language.

I hope somebody will help me)
« Last Edit: March 01, 2010, 11:42:25 PM by 104251 »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Yeah, it's because it starts at that no matter what. If you go into the menu scene and find this in the start method of Scene_Menu:

Code: [Select]
    @menu_com = Sprite.new
    @menu_com.bitmap = Cache.menu ("Menu_Com01")

It is because it automatically starts out at Menu_Com01 that there is a delay. You could replace that with something like this:

Code: [Select]
   
    @menu_com = Sprite.new 
    @menu_com.bitmap = case @menu_index
    when 0 then Cache.menu("Menu_Com01") # Item
    when 1 then Cache.menu("Menu_Com02") # Status
    when 2 then Cache.menu("Menu_Com03") # Equip
    when 3 then Cache.menu("Menu_Com04") # Skill
    when 4 then Cache.menu("Menu_Com05") # Save   
    when 5 then Cache.menu("Menu_Com06") # Game End
    end   

Where the Menu_Com, etc.. is replaced with whatever you have those graphics named as for as many possibilities as you have. I don't know what edits you've made, so you figure it out from there.

**
Rep: +0/-0Level 84
Above Characters
Wow, it actually works! So it was really easy but due to my ignorance i couldn't figure that out  ;D
Thank you, Modern Algebra, you really are almighty.

Now its all smooth and clean) mmm) Solved i guess.

**
Rep: +0/-0Level 84
Above Characters
---bump---

Ouch, its solved, yes, but i have another problem. I decided to make a key items tab in the items menu. I found this script: http://rmrk.net/index.php/topic,36904.msg435419.html#msg435419
and used it to make the 4-th tab. I succeeded in making the actual tab, but the rest is messed up.
Demo here: http://www.mediafire.com/?r5k3mmf4dm2. I cut out all graphics and sounds and packed the default ones, so layout is really messy now. I only added the new tab right there:
Spoiler for:
Tabs are switching properly, but when i enter the items screen it shows two tabs instead of one -
Spoiler for:
But thats not important, i can find the cause of that one. The major stuff is that the fourth tab must show only the key items, but it shows all of them. Maybe theres something missing, maybe i messed something up, i dont know. What can I do to fix it?
« Last Edit: March 01, 2010, 11:04:00 PM by 104251 »

**
Rep: +0/-0Level 84
Above Characters
« Last Edit: March 02, 2010, 04:30:37 PM by 104251 »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Both of your problems are arising from the start method of your Scene_Item.

First problem:

Code: [Select]
   @key_window.visible = true
    @key_window.active = true

That makes the key window visible and active when you open Scene_Item. The item window is already visible and active. Thus you have two separate windows, both visible and active. Turn those values to false and it will only show the Item window when you first enter the scene.

Second problem:

Code: [Select]
   @key_window = Window_Key.new(250, 70, 295, 280)

Note that the initialize method of Window_Key class has these arguments:

Code: [Select]
def initialize(x, y, width, height, relic=false)

Therefore, if you don't put a fifth argument when you create the window, relic (and therefore @relic) will be false. The following:

Code: [Select]
     if @relic
        next unless item.note.include?("KEY")
      else
        next if item.note.include?("KEY")
      end
shows that when @relic is false, the window will draw only non-key items, while if @relic is true, it will only draw key items. What is happening in your scene is that you are not specifying that relic should be true when you create the window, and therefore it defaults to false. SO, to solve this problem is really easy, all you have to do is replace:

Code: [Select]
   @key_window = Window_Key.new(250, 70, 295, 280)
with:

Code: [Select]
   @key_window = Window_Key.new(250, 70, 295, 280, true)



**
Rep: +0/-0Level 84
Above Characters
Haha, i have nothing to say. Thanks, M.A.)

===================================================================
                               ___      ___                   ____
                             |     \    /     |                /   _  \
                             |      \  /      |               /   / \   \
                             |       \/       |              |   |_ |  |
                             |   |\     /|   |              |     __   |
                             |   | \__/ |   |             |   |   |   |
                             |   |        |   |   __      |   |    |   |   __
                             |__|        |__|  |_|    |__|    |__|  |_|
===================================================================