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.
[RESOLVED] Horizontal Menu script

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 88
I would like to make my CMS to be like this:
Spoiler for:
How would i go about implementing this?
P.S. I've tried Tsunokiete's vertical/horizontal script, it gave an error, can't remember, but I would prefer to make the CMS myself, I just want to learn how to do this for now.
« Last Edit: January 05, 2008, 02:16:34 AM by Falcon »
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

***
Rep:
Level 88
Smarter than the average bear
heh i know how to make a horizontal selection, but thats it.
see how most scripts use an @item_max = # well that means up and down. @column_max = # is left and right. Or maybe I have those backwards..

***
Rep:
Level 88
heh i know how to make a horizontal selection, but thats it.
see how most scripts use an @item_max = # well that means up and down. @column_max = # is left and right. Or maybe I have those backwards..

no you got them right, but how would i make it so that the locations of the selections are the 4 characters? I'm really noob, as in i still haven't learned how to make a selectable menu, but i can figure out anything you throw at me...
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

***
Rep:
Level 88
OK, here's an example of how to do it:

Spoiler for:
Code: [Select]
class Test_Menu_1 < Window_Selectable
 
  def initialize
    super(0, 0, 190,80)
    self.contents = Bitmap.new(width-32, height-32)
    self.contents.font.name = "Arial" 
    self.contents.font.size = 24
    @item_max = 4
    @column_max = 4
    @commands = ["", "", "", ""]
    refresh
    self.index = 0
  end
 
  def refresh
    self.contents.clear
    for i in 0...@item_max
      draw_item(i)
    end
  end
 
  def draw_item(index)
    x = 15 + index * 40
    actor = $game_party.actors[index]
    draw_actor_graphic(actor, x, 45)
  end
end

Code: [Select]
class Test_Scene
#BLOCK 1
def main
   @window_1=Test_Menu_1.new
   @window_2=Test_Menu_2.new
   @window_2.x=190
   @window_3=Test_Menu_3.new($game_variables[56])
   @window_3.y=80
   @window_4=Test_Menu_4.new
   @window_4.x=190
   @window_4.y=55
   @window_5=Test_Menu_5.new
   @window_5.x=190
   @window_5.y=290
   @window_6=Test_Menu_6.new
   @window_6.x=190
   @window_6.y=395
  #BLOCK 2
   Graphics.transition
   loop do
    Graphics.update
    Input.update
    update
    if $scene != self
     break
    end
   end
#BLOCK 3
  Graphics.freeze
   @window_1.dispose
   @window_2.dispose
   @window_3.dispose
   @window_4.dispose
   @window_5.dispose
   @window_6.dispose
  end
#BLOCK 4
def update
   @window_1.update
   
   if Input.trigger?(Input::B)
     $game_system.se_play($data_system.cancel_se)
     $scene = Scene_Map.new
   end
   
   #this is where you set what happens at each menu position, just when the cursor is on it, not when selected
   case @window_1.index
    when 0
      @window_3.dispose
      @window_3=Test_Menu_3.new(0)
      @window_3.y=80
    when 1
      @window_3.dispose
      @window_3=Test_Menu_3.new(1)
      @window_3.y=80
    when 2
      @window_3.dispose
      @window_3=Test_Menu_3.new(2)
      @window_3.y=80
    when 3
      @window_3.dispose
      @window_3=Test_Menu_3.new(3)
      @window_3.y=80
    end
   
   #this is what happens when a selection is made
   if Input.trigger?(Input::C)
    case @window_1.index
      when 0
        $Character_Id_I_Am_Working_With = 0
        $scene = Test_Scene_2.new
      when 1
        $Character_Id_I_Am_Working_With = 1
        $scene = Test_Scene_2.new
      when 2
        $Character_Id_I_Am_Working_With = 2
        $scene = Test_Scene_2.new
      when 3
        $Character_Id_I_Am_Working_With = 3
        $scene = Test_Scene_2.new
      end
    end
   
  end
end
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
Necropost much?

Moved to script requests.