VX 스크립트

메뉴
2010.04.23 22:17

매우 간단명료한 메뉴.

profile
조회 수 6619 추천 수 0 댓글 32
Atachment
첨부 '1'

#==============================================================================
#  Compact Custom Menu System
#         RMVX Version
#            v1.0
#         by  Rubymatt
#==============================================================================


#==============================================================================
# ** NEW Window_Gold
#==============================================================================

class Window_Gold < Window_Base
  def initialize(x, y)
    super(x, y, 224, WLH + 32)
    refresh
  end
  def refresh
    self.contents.clear
    draw_currency_value($game_party.gold, 4, 0, 184)
  end
end

#==============================================================================
# ** NEW Window_MenuStatus
#==============================================================================

class Window_NewMenuStatus < Window_Selectable
  def initialize(x, y)
    super(0, 0, 64, $game_party.members.size * 36 + 32)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
    self.active = false
    self.index = -1
  end
  def refresh
    self.contents.clear
    @item_max = $game_party.members.size
    for actor in $game_party.members
      x = 66
      y = actor.index * 36
      draw_actor_graphic(actor, x - 51, y + 32)
    end
  end
  def update_cursor
    if @index < 0
      self.cursor_rect.empty
    else
      self.cursor_rect.set(-2, @index * 36 - 2, 36, 36)
    end
  end
end

#==============================================================================
# ** NEW Scene_Menu
#==============================================================================

class Scene_Menu < Scene_Base
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  def start
    super
    create_menu_background
    create_command_window
    @gold_window = Window_Gold.new(160, 248)
    @status_window = Window_NewMenuStatus.new(160, 0)
    @status_window.x = 320
    if $game_party.members.size == 4
      @status_window.y = 72
    elsif $game_party.members.size == 3
      @status_window.y = 88
    elsif $game_party.members.size == 2
      @status_window.y = 104
    elsif $game_party.members.size == 1
      @status_window.y = 120
    else
      @status_window.y = 72
    end
  end
  def terminate
    super
    dispose_menu_background
    @command_window.dispose
    @gold_window.dispose
    @status_window.dispose
  end
  def update
    super
    update_menu_background
    @command_window.update
    @gold_window.update
    @status_window.update
    if @command_window.active
      update_command_selection
    elsif @status_window.active
      update_actor_selection
    end
  end
  def create_command_window
    s1 = Vocab::item
    s2 = Vocab::skill
    s3 = Vocab::equip
    s4 = Vocab::status
    s5 = Vocab::save
    s6 = Vocab::game_end
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])
    @command_window.x = 160
    @command_window.y = 72
    @command_window.height = 176
    @command_window.index = @menu_index
    if $game_party.members.size == 0       
      @command_window.draw_item(0, false)   
      @command_window.draw_item(1, false)   
      @command_window.draw_item(2, false)     
      @command_window.draw_item(3, false)     
    end
    if $game_system.save_disabled             
      @command_window.draw_item(4, false)   
    end
  end
  def update_command_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      if $game_party.members.size == 0 and @command_window.index < 4
        Sound.play_buzzer
        return
      elsif $game_system.save_disabled and @command_window.index == 4
        Sound.play_buzzer
        return
      end
      Sound.play_decision
      case @command_window.index
      when 0     
        $scene = Scene_Item.new
      when 1,2,3 
        start_actor_selection
      when 4     
        $scene = Scene_File.new(true, false, false)
      when 5   
        $scene = Scene_End.new
      end
    end
  end
  def start_actor_selection
    @command_window.active = false
    @status_window.active = true
    if $game_party.last_actor_index < @status_window.item_max
      @status_window.index = $game_party.last_actor_index
    else
      @status_window.index = 0
    end
  end
  def end_actor_selection
    @command_window.active = true
    @status_window.active = false
    @status_window.index = -1
  end
  def update_actor_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      end_actor_selection
    elsif Input.trigger?(Input::C)
      $game_party.last_actor_index = @status_window.index
      Sound.play_decision
      case @command_window.index
      when 1
        $scene = Scene_Skill.new(@status_window.index)
      when 2
        $scene = Scene_Equip.new(@status_window.index)
      when 3 
        $scene = Scene_Status.new(@status_window.index)
      end
    end
  end
end

 

출처:rmrk

스샷:

zxc.jpg

Comment '32'
  • ?
    드림스 2010.04.23 22:35

    와 깔끔하다

  • ?
    NightWind AYARSB 2010.04.24 11:16

    엄청나게 심플한..

     

     

  • ?
    햄스터 2010.04.24 12:47

    제가 옛날에 학교 컴퓨터부 RPGVX반을 다녀서 제가만든거를 CD로 받았거든요?; 근데 CD를 실행시키려면 RPGVX를 다운받아야되는데 어디서다운받는지 아시는분있으신가요?

  • profile
    비극ㆍ 2010.04.24 12:59

    자료실-게임제작 툴 요

  • ?
    배군 2010.04.26 19:32

    그런부가 있어요? 어느학교임 빨랑 불어요!!!!<예의가없잖아!!!

  • ?
    Kain 2010.06.20 09:52

    네.. 다니는데요..

  • ?
    바람따라 구름따라 2010.08.30 15:42

    ㅋㅋ거기다녔지만 ,,

    배울거없음 배운거라곤 죄다 아방스꺼..(강좌도뭐고 다쓰레기였 괸히다녔

  • ?
    카이온 2010.06.19 22:38

    그 학교 어딤? 전학 가고싶군.....알폰스군....자네 학교도 다니나?

  • ?
    Kain 2010.06.19 22:34

    하핫 우리학교에는 RPG XP부가 있는데.. ㅋㅋㅋㅋ

    뭐 전 하지도 않았고... ( 부모님의 거센 항의와 반대에 의해)

    해봤자 돈도 아깝고 지금은 안 하니깐 ... ㅋㅋ

    근데 신기한건 RPG XP를 컴쌤보다 제가 더 잘한다는 거죠. < 신기신기

  • profile
    Ilike게임 2012.10.06 21:43
    저희 학교에서는 xp를 강좌해서 한번 가봤더니,
    그냥 데이타베이스만 알려줍니다;; 덕분에 잉여게임 수십개만 만든 시간낭비
  • profile
    [A]새장속새 2010.05.23 18:07

     심플 이즈 베스틐

  • ?
    칼리아 2010.06.08 21:03

    완전 심플..ㅎㅎㅎㅎㅎ

  • ?
    폭풍 Soul 2010.06.28 16:52

    극히 깔끔하다!!!

  • ?
    나이트퓨리 2010.07.08 17:36

    잘쓰겠습니다~

  • ?
    포인트팡팡 2010.07.08 17:36
    축하합니다. 나이트퓨리님은 65포인트에 당첨되셨습니다
  • ?
    다토르 2010.07.23 15:19

    와 심플

  • ?
    원수발 2010.07.23 22:52

    감사합니다!!!

  • ?
    화염 2010.07.26 19:15

    너무 간단해보인다 ㄷㄷ

  • profile
    Cloudy 2010.07.26 21:42

    으흠 깔끔해서 보기좋네요 ㅎ;

  • ?
    감자떡 2010.07.28 13:20

    감사합니다, 잘쓸게요

    ㅇㅂㅇ

  • ?
    여네이 2010.08.17 18:51

    감사합니다.

  • ?
    용주명 2010.10.20 22:08

    심플의종결자 ㅋㅋㅋㅋㅋㅋ

  • ?
    파이어 2010.12.05 18:19

    심플하긴 한데.. 몬스터도감이 작아져버릴것 같아서..

  • ?
    강아지인형 사랑 2010.12.10 17:09

    와우 심플심플 라이트

    굿굿!!!!

  • ?
    녹스  2011.02.20 00:22

    초 심플 ㄳ감사합다

  • ?
    구제가능 2011.07.24 18:55

    모바일 게임같네

  • ?
    캬무캬무 2011.07.26 04:19

    우와 귀엽네요

  • profile
    DevilEx 2011.08.02 14:47

    진짜 심플하닼ㅋㅋ

  • ?
    라키온 2011.08.21 12:51

    이것도 쓰면 좋은 메뉴

  • ?
    Maxim_Cool 2012.01.23 05:10

    수고하시네요!!!!

  • ?
    도르아 2012.02.26 15:21

    오 감사합니다! 엄청 심플하네요~

  • ?
    제복잇 2012.03.06 17:50

    심플호가 좋음!! 그런데 스탯배분같이 새로운 기능넣으면 오류나네요.

    혹시 저기에다가 추가방법 모르시나요?


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
197 키입력 답을 입력하는 텍스트박스 스크립트!! 21 file 좀비사냥꾼 2009.03.29 4206
196 기타 개인판타지메뉴+업그래이드 배틀 23 file 콩밥 2010.08.02 4211
195 액터 스탯 시스탬 29 츠키아 2008.08.08 4214
194 기타 아이콘 캐릭터 17 file 허걱 2010.02.28 4225
193 전투 XAS Hero Edition VX 15 Alkaid 2011.12.28 4226
192 메시지 네오 메시지 시스템 최신 17 file RPGbooster 2008.10.08 4251
191 기타 (이거 정말 좋군요) 말이나 용을 탈수있게 하는 스크립트. 31 file 아방스가 짱 2010.02.28 4261
190 기타 [자작] 횡스크롤 점프스크립트 18 file 좀비사냥꾼 2009.04.03 4276
189 상태/속성 상태 메뉴 변경 스크립트 45 죄송해욧! 2008.03.01 4284
188 메시지 MultiMessage 멀티 메시지 스크립트 9 file 허걱 2010.02.23 4296
187 이동 및 탈것 자동 이동 시스템 20 file 허걱 2010.04.21 4303
186 기타 집안의 가구를 내마음대로 데코레이션하기 15 file EuclidE 2010.09.18 4303
185 맵/타일 VX Mode 7 스크립트!!!! 42 file Tofuman 2009.01.07 4306
184 그래픽 밤낮 변환 VX용 26 독도2005 2008.03.23 4314
183 기타 심플 마우스 시스템 1.5 애드온 11 file RMdude 2009.02.11 4325
182 메뉴 [자작]명성치 사용 시스템(메뉴 출력) 16 Rainsy 2009.03.22 4360
181 메뉴 CogWheelBars 시스템. 13 file 할렘 2009.02.20 4362
180 메시지 직접 생각해서 만든 "문장 속 특정 단어 색 바꾸기" 10 file X.66 2010.04.28 4363
179 HUD 맵 이름 스크립트 21 file 개임맨 2010.10.03 4365
178 맵/타일 타일셋 변경 10 file 만들어보자꾸나 2008.06.08 4370
Board Pagination Prev 1 ... 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Next
/ 32