| 赞 | 8 |
| VIP | |
| 好人卡 | |
| 积分 | 96 |
| 经验 | |
| 最后登录 | 2023-4-8 |
| 在线时间 | 567 小时 |
- 梦石
- 7
- 星屑
- 2585
- 在线时间
- 567 小时
- 注册时间
- 2009-4-30
- 回帖
- 228
|
楼主 |
发表于 2012-3-31 09:53:20
|
显示全部楼层
在下找到了这个脚本,不过套上去有些地方会出错,
, s2 F0 V8 U+ n不知道有人能帮忙看一下吗? - #===============================================================================
; G- ^2 B3 R7 i' l- s i" t; Z - # XAS - Hot Key HUD' V) q9 X% r7 C4 i2 B9 X
- #===============================================================================
) t) q* `: r3 r6 q( Y- j1 Q - # By Mr_Wiggles
7 P* a- u4 u3 ~ - # Version 1.3$ {0 m( R- r( } F( a; k1 T
- # 7/6/108 |' N- _7 N4 t
- #-------------------------------------------------------------------------------
0 L& j" O0 L; {) i) W - # Instructions:. m) O1 f5 J- e* g; B
- # Fill in the constants bellow, paste this script above main and bellow XAS in
9 b8 E7 Y- D |0 M/ g( F: y - # your script data base. BE SURE TO SET TO THE RIGHT XAS VERSION!!( w2 ^4 R: m) U( Y7 o
- #
: N" p- Z# u) N. N' q! v - # Place the "Hot_Keys_HUD" picture file into your game directory $ w+ H& e5 B9 \6 p4 u8 F
- # Graphics/Pictures folder.: G0 n7 w9 l" O% V4 t
- #-------------------------------------------------------------------------------3 ]1 A- V" ]! T6 M c" X6 V
- # Directions of Use:
+ @; w: ~9 [1 o" y - # Simple just press a number key (1 - 5) when the quick skill or item menu is' ]! `7 y6 X" U/ \ i/ r$ R6 }7 p
- # Showing.* d# m8 P1 L; t
- #===============================================================================
% K- D( H; [1 d8 h$ e& z - HUD_X = 0 # X pos of HUD
: m1 X+ }( U, R7 h" e3 ^7 D - HUD_Y = 0 # Y pos of HUD/ u( `. ^% @3 K2 f9 R5 J8 o
- ' q! }4 U9 s; L4 d
- # Set true if XAS 3.7f! y2 x6 A, `! y" ]7 f
- # set false if XAS 3.6
7 M0 b2 J* k9 v7 E/ |) w1 \ - XASVER_37 = true
. ?8 ]. |7 y; s0 m# o1 v1 s - 8 l5 t4 Y! T, ~
- #===============================================================================
; o$ f) y( y8 w" v+ Q$ c - # Numkeys Module
- x; D& q0 N4 s" W5 j3 _0 m# E; b - #===============================================================================
0 R5 n8 D8 q/ _' `9 _. B: B - module Input8 ^9 ]4 ^/ |5 k5 v7 h
- Numkey = {1 => 1049, 2 => 1050, 3 => 1051, 4 => 1052, 5 => 1053}
' E0 V& S2 L5 I+ [3 C! @' c - class << self% @" L) |/ \$ K
- Key = Win32API.new('user32','GetAsyncKeyState',['i'],'i')/ Z4 [ I f* t" v6 {" ^* |1 P
-
' w0 q5 Z7 ?: A# w. _ - def testkey(key)
8 h& I( N/ @+ f1 w - Key.call(key) & 0x01 == 1
; i' |6 U( E: w2 ~* s, O - end5 d6 y$ s1 l0 ]; i- o# o* U3 ~3 u3 v
- 0 p( k* V& M# X. |4 d) y
- alias hud_key_update update) w& e @! t9 i, q9 b! A
- def update- M! x% K/ ?9 A, _ w9 H
- hud_key_update
) e. ?: ?+ S4 n o% m* H - @pressed = []) c1 E& [( @! s& j6 ]
- for key in Numkey.values9 w# l3 J: x* a6 E1 u
- key -= 10009 C2 S1 y* Y1 h- l
- @pressed.push(key) if testkey(key)% g r2 m' @+ I! o
- end: f9 V) d8 S7 D: d
- end
y) X4 |9 Z7 o -
0 Z6 j4 X$ U+ S& m# s9 M4 K; V - def pressed?(key)
. `! @* x5 f2 L - key -= 1000
, R* _4 \6 f0 l4 p - @pressed = [] if @pressed.nil?
0 z- z$ |' n6 u# c8 v P. p+ n - return true if @pressed.include?(key)1 X9 ^. y0 r( M4 Y3 h, l
- return false
; N5 ^1 J7 a3 s+ `7 h- v* x4 Q - end4 ^9 D% ]8 ~% j0 ~) W+ e9 t
- / G1 f% l* F2 U5 `6 C, _
- alias hud_key_press? press?
% [0 k' N# y1 @' {9 u - def press?(key)/ n; [' a4 t, t* M" M
- return pressed?(key) if key.to_f > 10002 O% A8 _6 P: a! s0 b+ P( q& F
- hud_key_press?(key)
$ p- y2 x& q' w2 g - end# v. X" K: ^. e& s4 j4 S, v/ }) D' a
- end
0 a! V4 \" \: F - end% l6 p7 S* k+ g, _1 C0 Q- y
# i; [" ~& \& H0 B9 B3 X* e- #===============================================================================
( I' X- x2 M& D6 @! ~ - # Game Player. F' W7 E% b- d: o" _( X+ c# t' n3 N
- #===============================================================================
+ A M) b6 x; p. u8 v - class Game_Player < Game_Character
" T; B* j% W3 T/ E - attr_accessor :hud_equip
- Y- G6 Z5 r( A' a -
* g; g: M# h3 R( q) c- U! u - alias hot_key_hud_init initialize
1 y; A! \* R0 U; E. h - def initialize7 |7 Y O. k. ^. Q+ v" E: |
- hot_key_hud_init
7 S8 @2 m1 W& t$ X1 d8 H - @hud_equip = []
5 H) l# i3 h6 V0 k+ m H - end
/ n7 x, F1 v1 ^/ J4 N* A -
( @' F6 Q$ d% o) | - def equip_item_to_hud(n, item)1 j: i: m6 x4 ^8 ?% M; M# x7 |
- if item.nil?8 L0 ~# s5 L3 ~* n' k; I% f: ?
- $game_system.se_play($data_system.buzzer_se)
5 J/ [' a1 a3 S) ? - return
% @) Z* g5 b0 |( v: F - end+ n4 |1 c. H6 ?+ Y
- $game_system.se_play($data_system.decision_se)" I1 h0 s: ^, y) s+ O
- @hud_equip[@hud_equip.index(item)] = nil if @hud_equip.include?(item), P% g7 M! d$ G" W
- @hud_equip[n] = item
. r9 s/ B6 j0 A9 O& U' C$ S+ y - end
4 ?: x7 \, U; D+ {1 V$ ` - end
/ Q7 \' y* X+ t% { - " X& g; [8 S- O: x4 H9 g& S
- #===============================================================================
/ L( J) f1 N8 N! \' P1 {7 s - # Quick Skill Window" s8 U4 w9 q0 n/ [4 a+ b
- #===============================================================================
7 [; a h2 z$ d4 H" @1 H9 W8 d - if XASVER_37 == false
' f+ U: W R* s9 L% \5 ? - class Xas_Scene_Skill7 _. |! ?5 d% E2 L
- alias hud_quick_menu_main main) o) u I9 ~- J% v8 o# s
- def main
- M* l% |* X$ p* D# E, g - @hot_key_hud = Hot_Key_HUD.new
& M5 s& H" o- o! i" H) A - hud_quick_menu_main9 L: @8 H2 q& f ]' O. u! i3 j
- @hot_key_hud.dispose
9 E7 a( d) o7 K# |: c2 {1 P D - end
; `9 _2 V! D5 a/ R0 w- L - 4 b' K6 j) `6 q7 j7 a
- alias hotkey_hud_qucik_menu_update update
% ?* a9 _9 J- K! Q. w - def update
+ M0 l2 m1 i5 I% s - hotkey_hud_qucik_menu_update
/ T& D" S% x% n - # Hot Key num 1/ }8 C0 g/ d r( H* h
- if Input.press?(Input::Numkey[1])
3 `1 h3 o, T* i6 Z& P: t* S1 K5 J0 s - $game_player.equip_item_to_hud(0, @skill_window.skill)
1 ? Q/ e' ^5 V( C- p3 A# T - # Hot Key num 2
( o' k1 |' E+ \% o8 Q$ I - elsif Input.press?(Input::Numkey[2])
+ h- h4 ]* c1 `1 o& B7 V2 T! r8 ^ - $game_player.equip_item_to_hud(1, @skill_window.skill)
# f* b+ V" S4 H* C7 l - # Hot Key num 3. q) W3 G+ w% {
- elsif Input.press?(Input::Numkey[3])
+ g" s- f8 H/ b5 c2 G/ S3 ~ - $game_player.equip_item_to_hud(2, @skill_window.skill)9 W4 N9 z* k* f2 ^7 F
- # Hot Key num 4# ~# p* F; r( o! }4 i
- elsif Input.press?(Input::Numkey[4])2 u# E* f" O8 P5 `& }# _
- $game_player.equip_item_to_hud(3, @skill_window.skill)$ C- m, b. Q+ M2 x6 j! D
- # Hot Key num 5" k- ]; o$ n% s$ s! P
- elsif Input.press?(Input::Numkey[5]): I- J1 V- j5 f2 Z7 T
- $game_player.equip_item_to_hud(4, @skill_window.skill)
4 M, s7 L; t! Q" M( ~ q- K - end* c$ J% Y; b9 z6 M* f
- @hot_key_hud.update
' E* U8 s2 n" j8 Z* J [ - end2 o# `7 ?' j) h/ x0 H, D8 c4 o) e
- end+ A% y1 o$ |- `, l! d- n
- else
+ X! f& K8 o6 n/ E( O - class Quick_Menu_Skill1 P+ B( P3 ?# x# a: v5 [! ]8 J" h
- alias hud_quick_menu_main main X# B; l% R' P
- def main; _( A" p& z1 Q# j) B2 s
- @hot_key_hud = Hot_Key_HUD.new- z1 g& M/ Y# x/ E+ I1 m( Y
- hud_quick_menu_main
1 \% X! _# {" J, A# W - @hot_key_hud.dispose0 w% ~ G3 e$ p7 B
- end- }" `& [5 c8 K$ i8 ^% J2 e
-
/ h4 p' N# ` v: }5 u - alias hotkey_hud_qucik_menu_update update, U$ e. `/ M3 q. c3 c* y9 E% h) a
- def update
3 h, D) y S1 _: q4 g - hotkey_hud_qucik_menu_update8 h, @2 t; E4 Y/ b* Q( g: F
- # Hot Key num 1
) L3 w- L9 j X) p g- G, M - if Input.press?(Input::Numkey[1])3 A3 n8 j4 s! @! D7 A1 e, {% |' _
- $game_player.equip_item_to_hud(0, @skill_window.skill)* s f7 P* [# O1 |
- # Hot Key num 2
! w, c6 ^% s' M' Q - elsif Input.press?(Input::Numkey[2])$ y: h5 v' \. b/ e9 o9 l) B
- $game_player.equip_item_to_hud(1, @skill_window.skill)
# |* F/ D8 B0 s+ a- q3 e - # Hot Key num 3
# G: W5 G, y( p* e& u+ V( O8 ? - elsif Input.press?(Input::Numkey[3])( s7 C+ w9 ?3 G
- $game_player.equip_item_to_hud(2, @skill_window.skill)
- ^- R) _2 R. E; L! X - # Hot Key num 43 [" P7 G8 N( f$ ]0 a& P
- elsif Input.press?(Input::Numkey[4])! g2 i* b. p2 F2 g M
- $game_player.equip_item_to_hud(3, @skill_window.skill); j4 j0 Z# P3 f! m# o8 T
- # Hot Key num 5
( n, F' o( [ l5 c - elsif Input.press?(Input::Numkey[5])1 D) {, \( m* \" r3 g8 s
- $game_player.equip_item_to_hud(4, @skill_window.skill)
' p Y& }6 T' d# N0 \- m - end# C A! K, l( o' X0 B6 w# L
- @hot_key_hud.update
/ f8 r, s2 K" B2 n - end
( L! h: ?/ T3 h' D/ j - end
7 u- O$ A1 L. a1 @% {+ [ - end
& h# s" r4 a/ L- P5 e, I
/ x& f4 o2 q# f" a. \& j+ c- #===============================================================================; z& ^6 {# C3 u& n
- # Quick Item Window7 q8 P! t7 P, R
- #===============================================================================6 W4 [& I6 V" z
- if XASVER_37 == false
3 {% g S0 g- J- o! G! X" B - class Xas_Scene_Item
w# l3 L: }+ C( t1 H* K9 U - alias hud_quick_menu_main main: V! Q0 a9 @: `" V' d, k( m
- def main, P- L$ d, q2 b% E
- @hot_key_hud = Hot_Key_HUD.new
( u. N5 y; O, _ Q - hud_quick_menu_main
9 F x1 R: A. y# ]# i; j1 ~ - @hot_key_hud.dispose
6 d: @+ f/ G1 M0 [ - end$ ^1 Q& a. E6 J' b
-
9 E. R. N8 v* { P) g, ] - alias hud_key_update update
, S4 I4 P" \) U+ C% X - def update$ B' W( E, C W2 ?9 x& W
- hud_key_update& V+ p: F" q, v% F
- # Hot Key num 1
/ L+ v: [! d9 O4 b9 } - if Input.press?(Input::Numkey[1])
k0 ~- p& B9 m# E3 _* @ - $game_player.equip_item_to_hud(0, @item_window.item)
* ?- I @# o+ b% k2 `! w, Y: H - # Hot Key num 2
- @+ ^% M/ T+ D9 S7 R$ Y - elsif Input.press?(Input::Numkey[2])/ ?. I) k9 C" R: p* Z7 ^
- $game_player.equip_item_to_hud(1, @item_window.item)
0 [$ c( x( }0 J5 D. M - # Hot Key num 3- c. e! e9 T$ U; u& M5 Z5 q) L
- elsif Input.press?(Input::Numkey[3])
1 y: P1 v Y' J! ` - $game_player.equip_item_to_hud(2, @item_window.item)
* B% X4 B- @. @( d6 e$ m( |% z - # Hot Key num 48 y$ b8 m% u7 I/ k. `
- elsif Input.press?(Input::Numkey[4])3 \& @4 D* P+ A; x, I, Y9 y
- $game_player.equip_item_to_hud(3, @item_window.item)
% @/ L6 O F6 C9 ] - # Hot Key num 5
l1 I% s+ R1 g" j8 l6 U: |5 o - elsif Input.press?(Input::Numkey[5]): N+ _3 i5 `4 m2 R7 L
- $game_player.equip_item_to_hud(4, @item_window.item)" a& \0 P! S8 P# A
- end9 \: B* m* B& |) X! n! A: m. `% a
- @hot_key_hud.update
, ~8 L/ |2 G' \& Q* D8 R - end& t+ f) r" n$ m4 R% p- C+ \! g
- end/ C R8 [/ y# e) \0 J, g Y3 f2 Q
- else
; U! a( G1 T* u0 v2 i - class Quick_Menu_Item0 \$ b+ l$ n$ V. d: Q" j/ Q
- alias hud_quick_menu_main main* O' z. _( d' B5 c9 X& S
- def main
# n9 @4 a: \! C$ Y - @hot_key_hud = Hot_Key_HUD.new. o$ O" E7 p# N
- hud_quick_menu_main; e( E7 ?+ d7 G* U! g: W
- @hot_key_hud.dispose
% w | p2 h2 P7 T- [( {& e ] - end: K6 d- F6 v9 M
-
5 W( Z9 i: H* R. r0 g3 J) n8 @ - alias hud_key_update update" I1 k! U0 f0 W0 g
- def update7 x" ^3 X/ d. o4 N; j
- hud_key_update; I2 P) ]& N) c4 V
- # Hot Key num 1
9 m7 y) ?/ A J' j - if Input.press?(Input::Numkey[1])
% i- }9 M: [9 H& T5 N - $game_player.equip_item_to_hud(0, @item_window.item)
' N0 S2 u8 W" ^$ f - # Hot Key num 2
; m$ w& u* e8 G7 V - elsif Input.press?(Input::Numkey[2])
, z: c% M% T: T9 o! P* H - $game_player.equip_item_to_hud(1, @item_window.item). I: a2 o/ I( z( [4 G
- # Hot Key num 3
5 i7 G5 X2 w8 I& d - elsif Input.press?(Input::Numkey[3])( G1 \+ i5 r! ?* M/ l+ v9 C8 R; Y
- $game_player.equip_item_to_hud(2, @item_window.item)
& ^) ?3 [1 M6 x - # Hot Key num 4
$ @6 b! H- j1 ~ - elsif Input.press?(Input::Numkey[4])4 d( @+ ~ E& L U ?& H; z: E4 m
- $game_player.equip_item_to_hud(3, @item_window.item)
. B) Q0 G2 j) \9 ]' h - # Hot Key num 5* X3 Q( s! L$ N6 h, u, d$ B$ x
- elsif Input.press?(Input::Numkey[5])0 ?' U3 {2 S+ _4 e7 j1 H
- $game_player.equip_item_to_hud(4, @item_window.item)$ ]$ q* O7 O& q' i4 i
- end+ A/ ~1 Z: G7 D$ I
- @hot_key_hud.update
# c# w8 T0 i1 K$ v! y4 r0 k- d - end# `# V" _! P$ y! i- F% }4 B
- end7 H' O, x7 z, N
- end
4 ~* F' C( q, x - ! t2 M F$ a% B
- #===============================================================================
1 \. m( P% S6 H - # HUD Window0 Z1 V+ ]. i: b: ^7 R+ j' n
- #===============================================================================
6 t; _0 b* ]* r) S5 F' k& T - class Hot_Key_HUD < Window_Base
5 G R- y1 l# Y5 I - def initialize(x = HUD_X - 10, y = HUD_Y - 15)0 j4 D9 I5 \! n, S% `
- super(x, y, 220, 80)
" u9 [: _4 ~" ]- p0 d B# P' p - self.contents = Bitmap.new(width - 32, height - 32)
; v3 b- G- [2 r - self.opacity = 0
: V8 n8 P- E( _& `/ n - @actor = $game_party.actors[0]
R, ~- t, w$ s, H2 F - refresh+ r ]2 Y1 m/ N( C9 o. }- O, |, i
- end
) d! U8 J8 B0 @ | k$ b - 8 h! i' |7 l) {! E3 P& D4 I
- def refresh
: E# I. g+ _% G: L6 \8 a& F - self.contents.clear
; i" |2 x$ t1 f- y - bitmap = RPG::Cache.picture("Hot_Keys_HUD")
& E: k4 g& }& s/ }: \0 A3 t - self.contents.blt(0, 0, bitmap, Rect.new(0, 0, 160, 32))
0 z1 {3 i6 l% c& u - for i in 0..4
, R* v$ Y1 _4 ^ ]( C6 x - x = 32 * i + 4
; E, V" k* ? L% Y - item = $game_player.hud_equip[i]
8 \( \% G% N; N - next if item.nil?
3 j8 n1 K: X" Q/ Z0 C - if item.is_a?(RPG::Weapon)
) ?+ L6 T" M1 ~ - item = nil if $game_party.weapon_number(item.id) == 0 and
7 P& y( t6 \3 y - @actor.weapon_id != item.id1 c% u6 {' V7 e3 C; T
- elsif item.is_a?(RPG::Armor)
1 w2 O. r9 T" | - item = nil if $game_party.armor_number(item.id) == 0 and
& }7 B2 _) C+ F7 i0 M - @actor.armor1_id != item.id# C' Z" H0 K l
- elsif item.is_a?(RPG::Item)
2 g, Z1 |) c. ]$ T& A) _5 V& y - item = nil if $game_party.item_number(item.id) == 0 or
4 x8 k+ z+ L& Q4 k' X2 T2 ]/ Q# X$ y - !$game_party.item_can_use?(item.id)6 k; }7 Z1 R& A1 z+ _! j& \8 \
- end
! y" ?- U2 o( [% |- P - bitmap = RPG::Cache.icon(item.icon_name)( V# t/ V9 K, D& f$ c. F
- self.contents.blt(x, 4, bitmap, Rect.new(0, 0, 24, 24))
$ u& Q* W% s% C4 L# v$ @ - end$ d3 Z; _: w1 y/ h
- end
! y4 N4 _. ^ g0 @ - $ Q6 w7 B- {1 s) `& \* e
- def equip(item)
! Q0 c2 d+ U6 ?" _: q7 y - if item.nil?3 r3 B9 {9 f' z4 p' L' A5 X+ x+ f
- $game_system.se_play($data_system.buzzer_se)
! M& M! P, F: c# p- t6 v2 o - return
# J5 \# ~* T8 p) e; z - end4 Q D( R3 l; q7 Y$ |
- if item.is_a?(RPG::Skill)
% v8 B0 f# G; f% A5 w - if !@actor.skill_can_use?(item.id)
8 `; r; R4 w ]/ v9 } - $game_system.se_play($data_system.buzzer_se)
, |1 h* t# I3 f+ D+ x( R; s5 }, C - return
# t5 B y. F) a5 C! \0 l - end
' d% T, f5 n" z( y - $game_system.xas_skill_id = item.id
' H$ Q/ D& E9 Y; [6 P R3 i% u0 W$ \ - elsif item.is_a?(RPG::Weapon)6 Y% ^8 G9 F+ `: K. |% h( J. q
- @actor.equip(0, item.id)
0 x% q/ a! J& t0 s7 o - elsif item.is_a?(RPG::Armor)
! B, \# x }7 C2 l& L - @actor.equip(1, item.id)
1 m6 |, z5 c/ r0 x& C3 q, t - elsif item.is_a?(RPG::Item)7 l6 i% {% O7 Q7 J
- item_tool_id = XAS::XASITEM_ID[item.id]
! E0 h [3 x1 n" d: \- ?8 l - if item_tool_id != nil
6 O# ^# g' Z6 I6 O; r- D9 ~ - unless $game_party.item_can_use?(item.id)& w8 w# D g$ j: g ?2 ~- w) `
- $game_system.se_play($data_system.buzzer_se)
7 B, t& g3 R& w! ?1 |- ]' V! H, S - return! ~3 ~7 J* k6 g+ N8 n! q; `: w
- end- L+ W# N% C6 n
- $game_system.xas_item_id = item.id2 D# a- ~, a2 M9 |. p9 S
- end1 p! g( [5 K! y" ^. ^ _9 L
- end( ?5 A* @" E/ z& f: x
- $game_system.se_play($data_system.equip_se)
/ y2 m0 h( m1 H' N3 Z5 H - end
: m, M i1 W+ v5 V* q/ h( @! G) e/ W - 8 G) X0 j0 @ F3 g7 G( g/ M9 r
- def update
- M, H' L3 J8 f - @actor = $game_party.actors[0]
) H/ e; P3 a0 U - @hot_keys = $game_player.hud_equip
' i' e+ m7 c, ? - refresh
! ?* m. Z. \# G - return if !$scene.is_a?(Scene_Map)
0 D6 X; q5 u) N. I' K - if Input.press?(Input::Numkey[1])
3 h$ q# l- B: s/ a' E6 } - equip($game_player.hud_equip[0])
& G: Y+ z" H) v7 t5 q0 @ - elsif Input.press?(Input::Numkey[2]): P& V' ? x7 P' ~1 t
- equip($game_player.hud_equip[1])
5 N* a# a, ]) v$ _& K% i: H8 }6 ~ - elsif Input.press?(Input::Numkey[3])( u" p# a0 j$ h4 M8 a% M
- equip($game_player.hud_equip[2]) ' {8 U! c( Z5 Q1 z
- elsif Input.press?(Input::Numkey[4])
/ c( S l3 C) l* h0 Z7 V - equip($game_player.hud_equip[3]) - o. |5 B, T" f" W/ h# _! o; T$ g
- elsif Input.press?(Input::Numkey[5])
7 ]3 ]9 E! u& w3 Q - equip($game_player.hud_equip[4])9 b) _* ]! V# Y
- end
% z; v# j& ?8 N8 U9 n - end4 W% K7 Y$ S% Y7 [" g( ? X& _
- end9 g6 R6 q2 d9 g4 ?* I7 y
- , S( n8 u$ }$ ]9 H
- #===============================================================================6 A) b! }9 M8 b& f8 F
- # Scene Map
) v7 X8 r$ H5 V9 X6 }& } - #===============================================================================
; q- v& }4 ~8 A6 e0 z1 i; H7 h- O - class Scene_Map
v- O2 A& g) L+ c5 L - alias hot_key_hud_init main' c) C. N' s3 b, P* o9 @; V; w$ N. d6 G
- def main
9 c5 N4 k: ~. }, v - @hot_key_hud = Hot_Key_HUD.new
0 [8 G% C' y3 f& n, F3 B - @hot_key_hud.visible = !$game_switches[XAS_HUDDISABLE_HUD_SWITCH]; j) s; J) B' \! U C9 W& v' Q
- hot_key_hud_init. d; ^7 P1 ?* B, h7 n1 O: C0 b
- @hot_key_hud.dispose
4 F% y6 w. Q; E - end
1 x+ B( h/ T6 N0 u - $ x6 u" V( }9 w* L; b
- alias hot_key_hud_update update9 t% K: p1 h U
- def update
- q# ? C$ I* T5 Z0 R" E - hot_key_hud_update
8 H4 Y1 Z6 K- T/ _/ C X - @hot_key_hud.update
) L+ I4 \+ [# @; {$ d - @hot_key_hud.visible = !$game_switches[XAS_HUDDISABLE_HUD_SWITCH]
: j) Y. O2 X( c" f/ ` - @hot_key_hud.update if !$game_switches[XAS_HUDDISABLE_HUD_SWITCH]
! R4 S3 G/ B# W/ M% T - end( \' C P! n1 Z9 v
- end
复制代码 |
|