Advertisement
FlipelyFlip

FFS - Get Battle Position Right

Aug 25th, 2024 (edited)
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.12 KB | None | 0 0
  1. #==============================================================================
  2. # ■ Window ActorCommand
  3. #==============================================================================
  4. class Window_ActorCommand < Window_Command
  5.   #--------------------------------------------------------------------------
  6.   # ● Refresh Command Name
  7.   #--------------------------------------------------------------------------
  8.   def refresh_command_name
  9.       return if @sprite_command_name == nil
  10.       @old_name_index = self.index
  11.       @sprite_command_name.bitmap.clear
  12.       text = @list[self.index][:name]
  13.       text = text.to_s
  14.       if text == "Verteidigung" && $game_switches[TL::LangSwitch_ID]
  15.         text = "Defense     "
  16.       elsif text == "Zauber" && $game_switches[TL::LangSwitch_ID]
  17.         text = "Magic "
  18.       elsif text == "Gegenstände" && $game_switches[TL::LangSwitch_ID]
  19.         text = "Inventory  "
  20.       end
  21.       if COMMAND_TYPE == 4
  22.          @sprite_command_name.bitmap.draw_text(0,0,120,32,text.to_s,1)
  23.       else
  24.          @sprite_command_name.bitmap.draw_text(0,0,120,32,text.to_s,2)
  25.       end  
  26.   end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement