rmxp_extractor 1.5 → 1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Data/Actors.rxdata +0 -0
- data/Data/Animations.rxdata +0 -0
- data/Data/Armors.rxdata +0 -0
- data/Data/Classes.rxdata +0 -0
- data/Data/CommonEvents.rxdata +0 -0
- data/Data/Enemies.rxdata +0 -0
- data/Data/Items.rxdata +0 -0
- data/Data/Map001.rxdata +0 -0
- data/Data/Map002.rxdata +0 -0
- data/Data/Map003.rxdata +0 -0
- data/Data/Map004.rxdata +0 -0
- data/Data/Map005.rxdata +0 -0
- data/Data/Map006.rxdata +0 -0
- data/Data/Map007.rxdata +0 -0
- data/Data/Map008.rxdata +0 -0
- data/Data/Map009.rxdata +0 -0
- data/Data/Map010.rxdata +0 -0
- data/Data/Map011.rxdata +0 -0
- data/Data/Map012.rxdata +0 -0
- data/Data/Map013.rxdata +0 -0
- data/Data/Map014.rxdata +0 -0
- data/Data/Map015.rxdata +0 -0
- data/Data/Map016.rxdata +0 -0
- data/Data/Map017.rxdata +0 -0
- data/Data/Map018.rxdata +0 -0
- data/Data/Map019.rxdata +0 -0
- data/Data/Map020.rxdata +0 -0
- data/Data/Map021.rxdata +0 -0
- data/Data/Map022.rxdata +0 -0
- data/Data/Map023.rxdata +0 -0
- data/Data/Map024.rxdata +0 -0
- data/Data/Map025.rxdata +0 -0
- data/Data/Map026.rxdata +0 -0
- data/Data/Map027.rxdata +0 -0
- data/Data/Map028.rxdata +0 -0
- data/Data/Map029.rxdata +0 -0
- data/Data/Map030.rxdata +0 -0
- data/Data/Map031.rxdata +0 -0
- data/Data/Map032.rxdata +0 -0
- data/Data/Map033.rxdata +0 -0
- data/Data/Map034.rxdata +0 -0
- data/Data/Map035.rxdata +0 -0
- data/Data/Map036.rxdata +0 -0
- data/Data/Map037.rxdata +0 -0
- data/Data/Map038.rxdata +0 -0
- data/Data/Map039.rxdata +0 -0
- data/Data/Map040.rxdata +0 -0
- data/Data/Map041.rxdata +0 -0
- data/Data/Map042.rxdata +0 -0
- data/Data/Map043.rxdata +0 -0
- data/Data/Map044.rxdata +0 -0
- data/Data/Map045.rxdata +0 -0
- data/Data/Map046.rxdata +0 -0
- data/Data/Map047.rxdata +0 -0
- data/Data/Map048.rxdata +0 -0
- data/Data/Map049.rxdata +0 -0
- data/Data/Map050.rxdata +0 -0
- data/Data/Map051.rxdata +0 -0
- data/Data/Map052.rxdata +0 -0
- data/Data/Map053.rxdata +0 -0
- data/Data/Map054.rxdata +0 -0
- data/Data/Map055.rxdata +0 -0
- data/Data/Map056.rxdata +0 -0
- data/Data/Map057.rxdata +0 -0
- data/Data/Map058.rxdata +0 -0
- data/Data/Map059.rxdata +0 -0
- data/Data/Map060.rxdata +0 -0
- data/Data/Map061.rxdata +0 -0
- data/Data/Map062.rxdata +0 -0
- data/Data/Map063.rxdata +0 -0
- data/Data/Map064.rxdata +0 -0
- data/Data/Map065.rxdata +0 -0
- data/Data/Map066.rxdata +0 -0
- data/Data/Map067.rxdata +0 -0
- data/Data/Map068.rxdata +0 -0
- data/Data/Map069.rxdata +0 -0
- data/Data/Map070.rxdata +0 -0
- data/Data/Map071.rxdata +0 -0
- data/Data/Map072.rxdata +0 -0
- data/Data/Map073.rxdata +0 -0
- data/Data/Map074.rxdata +0 -0
- data/Data/Map075.rxdata +0 -0
- data/Data/Map076.rxdata +0 -0
- data/Data/Map077.rxdata +0 -0
- data/Data/Map078.rxdata +0 -0
- data/Data/Map079.rxdata +0 -0
- data/Data/Map080.rxdata +0 -0
- data/Data/Map081.rxdata +0 -0
- data/Data/Map082.rxdata +0 -0
- data/Data/Map083.rxdata +0 -0
- data/Data/Map084.rxdata +0 -0
- data/Data/Map085.rxdata +0 -0
- data/Data/Map086.rxdata +0 -0
- data/Data/Map087.rxdata +0 -0
- data/Data/Map088.rxdata +0 -0
- data/Data/Map089.rxdata +0 -0
- data/Data/Map090.rxdata +0 -0
- data/Data/Map091.rxdata +0 -0
- data/Data/Map092.rxdata +0 -0
- data/Data/Map093.rxdata +0 -0
- data/Data/Map094.rxdata +0 -0
- data/Data/Map095.rxdata +0 -0
- data/Data/Map096.rxdata +0 -0
- data/Data/Map097.rxdata +0 -0
- data/Data/Map098.rxdata +0 -0
- data/Data/Map099.rxdata +0 -0
- data/Data/Map100.rxdata +0 -0
- data/Data/Map101.rxdata +0 -0
- data/Data/Map102.rxdata +0 -0
- data/Data/Map103.rxdata +0 -0
- data/Data/Map104.rxdata +0 -0
- data/Data/Map105.rxdata +0 -0
- data/Data/Map106.rxdata +0 -0
- data/Data/Map107.rxdata +0 -0
- data/Data/Map108.rxdata +0 -0
- data/Data/Map109.rxdata +0 -0
- data/Data/Map110.rxdata +0 -0
- data/Data/Map111.rxdata +0 -0
- data/Data/Map112.rxdata +0 -0
- data/Data/Map113.rxdata +0 -0
- data/Data/Map114.rxdata +0 -0
- data/Data/Map115.rxdata +0 -0
- data/Data/Map116.rxdata +0 -0
- data/Data/Map117.rxdata +0 -0
- data/Data/Map118.rxdata +0 -0
- data/Data/Map119.rxdata +0 -0
- data/Data/Map120.rxdata +0 -0
- data/Data/Map121.rxdata +0 -0
- data/Data/Map122.rxdata +0 -0
- data/Data/Map123.rxdata +0 -0
- data/Data/Map124.rxdata +0 -0
- data/Data/Map125.rxdata +0 -0
- data/Data/Map126.rxdata +0 -0
- data/Data/Map127.rxdata +0 -0
- data/Data/Map128.rxdata +0 -0
- data/Data/Map129.rxdata +0 -0
- data/Data/Map130.rxdata +0 -0
- data/Data/Map131.rxdata +0 -0
- data/Data/Map132.rxdata +0 -0
- data/Data/Map133.rxdata +0 -0
- data/Data/Map134.rxdata +0 -0
- data/Data/Map135.rxdata +0 -0
- data/Data/Map136.rxdata +0 -0
- data/Data/Map137.rxdata +0 -0
- data/Data/Map138.rxdata +0 -0
- data/Data/Map139.rxdata +0 -0
- data/Data/Map140.rxdata +0 -0
- data/Data/Map141.rxdata +0 -0
- data/Data/Map142.rxdata +0 -0
- data/Data/Map143.rxdata +0 -0
- data/Data/Map144.rxdata +0 -0
- data/Data/Map145.rxdata +0 -0
- data/Data/Map146.rxdata +0 -0
- data/Data/Map147.rxdata +0 -0
- data/Data/Map148.rxdata +0 -0
- data/Data/Map149.rxdata +0 -0
- data/Data/Map150.rxdata +0 -0
- data/Data/Map151.rxdata +0 -0
- data/Data/Map152.rxdata +0 -0
- data/Data/Map153.rxdata +0 -0
- data/Data/Map154.rxdata +0 -0
- data/Data/Map155.rxdata +0 -0
- data/Data/Map156.rxdata +0 -0
- data/Data/Map157.rxdata +0 -0
- data/Data/Map158.rxdata +0 -0
- data/Data/Map159.rxdata +0 -0
- data/Data/Map160.rxdata +0 -0
- data/Data/Map161.rxdata +0 -0
- data/Data/Map162.rxdata +0 -0
- data/Data/Map163.rxdata +0 -0
- data/Data/Map164.rxdata +0 -0
- data/Data/Map165.rxdata +0 -0
- data/Data/Map166.rxdata +0 -0
- data/Data/Map167.rxdata +0 -0
- data/Data/Map168.rxdata +0 -0
- data/Data/Map169.rxdata +0 -0
- data/Data/Map170.rxdata +0 -0
- data/Data/Map171.rxdata +0 -0
- data/Data/Map172.rxdata +0 -0
- data/Data/Map173.rxdata +0 -0
- data/Data/Map174.rxdata +0 -0
- data/Data/Map175.rxdata +0 -0
- data/Data/Map176.rxdata +0 -0
- data/Data/Map177.rxdata +0 -0
- data/Data/Map178.rxdata +0 -0
- data/Data/Map179.rxdata +0 -0
- data/Data/Map180.rxdata +0 -0
- data/Data/Map181.rxdata +0 -0
- data/Data/Map182.rxdata +0 -0
- data/Data/Map183.rxdata +0 -0
- data/Data/Map184.rxdata +0 -0
- data/Data/Map185.rxdata +0 -0
- data/Data/Map186.rxdata +0 -0
- data/Data/Map187.rxdata +0 -0
- data/Data/Map188.rxdata +0 -0
- data/Data/Map189.rxdata +0 -0
- data/Data/Map190.rxdata +0 -0
- data/Data/Map191.rxdata +0 -0
- data/Data/Map192.rxdata +0 -0
- data/Data/Map193.rxdata +0 -0
- data/Data/Map194.rxdata +0 -0
- data/Data/Map195.rxdata +0 -0
- data/Data/Map196.rxdata +0 -0
- data/Data/Map197.rxdata +0 -0
- data/Data/Map198.rxdata +0 -0
- data/Data/Map199.rxdata +0 -0
- data/Data/Map200.rxdata +0 -0
- data/Data/Map201.rxdata +0 -0
- data/Data/Map202.rxdata +0 -0
- data/Data/Map203.rxdata +0 -0
- data/Data/Map204.rxdata +0 -0
- data/Data/Map205.rxdata +0 -0
- data/Data/Map206.rxdata +0 -0
- data/Data/Map207.rxdata +0 -0
- data/Data/Map208.rxdata +0 -0
- data/Data/Map209.rxdata +0 -0
- data/Data/Map210.rxdata +0 -0
- data/Data/Map211.rxdata +0 -0
- data/Data/Map212.rxdata +0 -0
- data/Data/Map213.rxdata +0 -0
- data/Data/Map214.rxdata +0 -0
- data/Data/Map215.rxdata +0 -0
- data/Data/Map216.rxdata +0 -0
- data/Data/Map217.rxdata +0 -0
- data/Data/Map218.rxdata +0 -0
- data/Data/Map219.rxdata +0 -0
- data/Data/Map220.rxdata +0 -0
- data/Data/Map221.rxdata +0 -0
- data/Data/Map222.rxdata +0 -0
- data/Data/Map223.rxdata +0 -0
- data/Data/Map224.rxdata +0 -0
- data/Data/Map225.rxdata +0 -0
- data/Data/Map226.rxdata +0 -0
- data/Data/Map227.rxdata +0 -0
- data/Data/Map228.rxdata +0 -0
- data/Data/Map229.rxdata +0 -0
- data/Data/Map230.rxdata +0 -0
- data/Data/Map231.rxdata +0 -0
- data/Data/Map232.rxdata +0 -0
- data/Data/Map233.rxdata +0 -0
- data/Data/Map234.rxdata +0 -0
- data/Data/Map235.rxdata +0 -0
- data/Data/Map236.rxdata +0 -0
- data/Data/Map237.rxdata +0 -0
- data/Data/Map238.rxdata +0 -0
- data/Data/Map239.rxdata +0 -0
- data/Data/Map240.rxdata +0 -0
- data/Data/Map241.rxdata +0 -0
- data/Data/Map242.rxdata +0 -0
- data/Data/Map243.rxdata +0 -0
- data/Data/Map244.rxdata +0 -0
- data/Data/Map245.rxdata +0 -0
- data/Data/Map246.rxdata +0 -0
- data/Data/Map247.rxdata +0 -0
- data/Data/Map248.rxdata +0 -0
- data/Data/Map249.rxdata +0 -0
- data/Data/Map250.rxdata +0 -0
- data/Data/Map251.rxdata +0 -0
- data/Data/Map252.rxdata +0 -0
- data/Data/Map253.rxdata +0 -0
- data/Data/Map254.rxdata +0 -0
- data/Data/Map255.rxdata +0 -0
- data/Data/Map256.rxdata +0 -0
- data/Data/Map257.rxdata +0 -0
- data/Data/Map258.rxdata +0 -0
- data/Data/Map259.rxdata +0 -0
- data/Data/Map260.rxdata +0 -0
- data/Data/Map261.rxdata +0 -0
- data/Data/Map262.rxdata +0 -0
- data/Data/Map263.rxdata +0 -0
- data/Data/MapInfos.rxdata +0 -0
- data/Data/Scripts.rxdata +0 -0
- data/Data/Skills.rxdata +0 -0
- data/Data/States.rxdata +0 -0
- data/Data/System.rxdata +0 -0
- data/Data/Tilesets.rxdata +0 -0
- data/Data/Troops.rxdata +0 -0
- data/Data/Weapons.rxdata +0 -0
- data/Data/xScripts.rxdata +0 -0
- data/Scripts/Credits_Message.rb +259 -0
- data/Scripts/Data_FastTravel.rb +50 -0
- data/Scripts/Data_Footsteps.rb +77 -0
- data/Scripts/Data_Item.rb +50 -0
- data/Scripts/Data_SpecialEventData.rb +60 -0
- data/Scripts/Demo.rb +7 -0
- data/Scripts/Desktop_Message.rb +210 -0
- data/Scripts/Doc_Message.rb +273 -0
- data/Scripts/EdText.rb +50 -0
- data/Scripts/Ed_Message.rb +234 -0
- data/Scripts/FastTravel.rb +175 -0
- data/Scripts/Game_Actor.rb +156 -0
- data/Scripts/Game_Actors.rb +28 -0
- data/Scripts/Game_BattleAction.rb +145 -0
- data/Scripts/Game_Battler 1.rb +307 -0
- data/Scripts/Game_Battler 2.rb +294 -0
- data/Scripts/Game_Battler 3.rb +354 -0
- data/Scripts/Game_Character 1.rb +291 -0
- data/Scripts/Game_Character 2.rb +355 -0
- data/Scripts/Game_Character 3.rb +505 -0
- data/Scripts/Game_CommonEvent.rb +70 -0
- data/Scripts/Game_Enemy.rb +317 -0
- data/Scripts/Game_Event.rb +264 -0
- data/Scripts/Game_FastTravel.rb +40 -0
- data/Scripts/Game_Follower.rb +76 -0
- data/Scripts/Game_Light.rb +13 -0
- data/Scripts/Game_Map.rb +551 -0
- data/Scripts/Game_Oneshot.rb +83 -0
- data/Scripts/Game_Party.rb +380 -0
- data/Scripts/Game_Picture.rb +164 -0
- data/Scripts/Game_Player.rb +298 -0
- data/Scripts/Game_Screen.rb +148 -0
- data/Scripts/Game_SelfSwitches.rb +30 -0
- data/Scripts/Game_Switches.rb +45 -0
- data/Scripts/Game_System.rb +210 -0
- data/Scripts/Game_Temp.rb +145 -0
- data/Scripts/Game_Variables.rb +36 -0
- data/Scripts/Interpreter 1.rb +320 -0
- data/Scripts/Interpreter 2.rb +286 -0
- data/Scripts/Interpreter 3.rb +474 -0
- data/Scripts/Interpreter 4.rb +327 -0
- data/Scripts/Interpreter 5.rb +448 -0
- data/Scripts/Interpreter 6.rb +307 -0
- data/Scripts/Interpreter 7.rb +282 -0
- data/Scripts/Main.rb +46 -9
- data/Scripts/Particles.rb +141 -0
- data/Scripts/Persistent.rb +71 -0
- data/Scripts/Puzzle_Film.rb +14 -0
- data/Scripts/Puzzle_Pixel.rb +210 -0
- data/Scripts/Puzzle_Safe.rb +152 -0
- data/Scripts/Puzzle_Sokoban.rb +14 -0
- data/Scripts/RPG.rb +55 -0
- data/Scripts/SaveLoad.rb +275 -0
- data/Scripts/Scene_Debug.rb +190 -0
- data/Scripts/Scene_End.rb +108 -0
- data/Scripts/Scene_Equip.rb +222 -0
- data/Scripts/Scene_File.rb +111 -0
- data/Scripts/Scene_Item.rb +205 -0
- data/Scripts/Scene_Load.rb +106 -0
- data/Scripts/Scene_Map.rb +540 -0
- data/Scripts/Scene_Menu.rb +213 -0
- data/Scripts/Scene_Name.rb +113 -0
- data/Scripts/Scene_Save.rb +88 -0
- data/Scripts/Scene_Skill.rb +232 -0
- data/Scripts/Scene_Status.rb +78 -0
- data/Scripts/Scene_Title.rb +237 -0
- data/Scripts/Script.rb +780 -0
- data/Scripts/Sprite_Battler.rb +131 -0
- data/Scripts/Sprite_Character.rb +192 -0
- data/Scripts/Sprite_Footprint.rb +35 -0
- data/Scripts/Sprite_Footsplash.rb +54 -0
- data/Scripts/Sprite_Light.rb +18 -0
- data/Scripts/Sprite_MapText.rb +63 -0
- data/Scripts/Sprite_Picture.rb +72 -0
- data/Scripts/Sprite_Timer.rb +52 -0
- data/Scripts/Spriteset_Map.rb +370 -0
- data/Scripts/Window_Base.rb +327 -0
- data/Scripts/Window_BattleResult.rb +51 -0
- data/Scripts/Window_BattleStatus.rb +62 -0
- data/Scripts/Window_Command.rb +49 -0
- data/Scripts/Window_DebugLeft.rb +57 -0
- data/Scripts/Window_DebugRight.rb +69 -0
- data/Scripts/Window_EquipItem.rb +94 -0
- data/Scripts/Window_EquipLeft.rb +61 -0
- data/Scripts/Window_EquipRight.rb +56 -0
- data/Scripts/Window_Gold.rb +27 -0
- data/Scripts/Window_Help.rb +33 -0
- data/Scripts/Window_InputNumber.rb +111 -0
- data/Scripts/Window_Item.rb +229 -0
- data/Scripts/Window_MainMenu.rb +150 -0
- data/Scripts/Window_MenuStatus.rb +48 -0
- data/Scripts/Window_Message.rb +459 -0
- data/Scripts/Window_NameEdit.rb +108 -0
- data/Scripts/Window_NameInput.rb +262 -0
- data/Scripts/Window_PartyCommand.rb +42 -0
- data/Scripts/Window_PlayTime.rb +40 -0
- data/Scripts/Window_SaveFile.rb +91 -0
- data/Scripts/Window_Selectable.rb +203 -0
- data/Scripts/Window_Settings.rb +469 -0
- data/Scripts/Window_ShopBuy.rb +93 -0
- data/Scripts/Window_ShopCommand.rb +37 -0
- data/Scripts/Window_ShopNumber.rb +87 -0
- data/Scripts/Window_ShopSell.rb +94 -0
- data/Scripts/Window_ShopStatus.rb +107 -0
- data/Scripts/Window_Skill.rb +83 -0
- data/Scripts/Window_SkillStatus.rb +28 -0
- data/Scripts/Window_Status.rb +64 -0
- data/Scripts/Window_Steps.rb +26 -0
- data/Scripts/Window_Target.rb +49 -0
- data/Scripts/_scripts.txt +110 -0
- data/Scripts/i18n_English.rb +59 -0
- data/Scripts/i18n_Language.rb +130 -0
- data/lib/rmxp_extractor/classnames.rb +6 -0
- data/lib/rmxp_extractor/data_export.rb +4 -2
- data/lib/rmxp_extractor/version.rb +1 -1
- metadata +111 -125
- data/Data/Map-1.rxdata +0 -0
- data/Data/Map-327.rxdata +0 -0
- data/Data/Map264.rxdata +0 -0
- data/Data/Map265.rxdata +0 -0
- data/Data/Map266.rxdata +0 -0
- data/Data/Map267.rxdata +0 -0
- data/Data/Map268.rxdata +0 -0
- data/Data/Map269.rxdata +0 -0
- data/Data/Map270.rxdata +0 -0
- data/Data/Map271.rxdata +0 -0
- data/Data/Map272.rxdata +0 -0
- data/Data/Map273.rxdata +0 -0
- data/Data/Map274.rxdata +0 -0
- data/Data/Map275.rxdata +0 -0
- data/Data/Map276.rxdata +0 -0
- data/Data/Map277.rxdata +0 -0
- data/Data/Map278.rxdata +0 -0
- data/Data/Map279.rxdata +0 -0
- data/Data/Map280.rxdata +0 -0
- data/Data/Map281.rxdata +0 -0
- data/Data/Map282.rxdata +0 -0
- data/Data/Map283.rxdata +0 -0
- data/Data/Map284.rxdata +0 -0
- data/Data/Map285.rxdata +0 -0
- data/Data/Map286.rxdata +0 -0
- data/Data/Map287.rxdata +0 -0
- data/Data/Map288.rxdata +0 -0
- data/Data/Map289.rxdata +0 -0
- data/Data/Map290.rxdata +0 -0
- data/Data/Map291.rxdata +0 -0
- data/Data/Map292.rxdata +0 -0
- data/Data/Map293.rxdata +0 -0
- data/Data/Map294.rxdata +0 -0
- data/Data/Map295.rxdata +0 -0
- data/Data/Map296.rxdata +0 -0
- data/Data/Map297.rxdata +0 -0
- data/Data/Map298.rxdata +0 -0
- data/Data/Map299.rxdata +0 -0
- data/Data/Map300.rxdata +0 -0
- data/Data/Map301.rxdata +0 -0
- data/Data/Map302.rxdata +0 -0
- data/Data/Map303.rxdata +0 -0
- data/Data/Map304.rxdata +0 -0
- data/Data/Map305.rxdata +0 -0
- data/Data/Map306.rxdata +0 -0
- data/Data/Map307.rxdata +0 -0
- data/Data/Map308.rxdata +0 -0
- data/Data/Map309.rxdata +0 -0
- data/Data/Map310.rxdata +0 -0
- data/Data/Map311.rxdata +0 -0
- data/Data/Map312.rxdata +0 -0
- data/Data/Map313.rxdata +0 -0
- data/Data/Map314.rxdata +0 -0
- data/Data/Map315.rxdata +0 -0
- data/Data/Map316.rxdata +0 -0
- data/Data/Map317.rxdata +0 -0
- data/Data/Map318.rxdata +0 -0
- data/Data/Map319.rxdata +0 -0
- data/Data/Map320.rxdata +0 -0
- data/Data/Map321.rxdata +0 -0
- data/Data/Map322.rxdata +0 -0
- data/Data/Map323.rxdata +0 -0
- data/Data/Map324.rxdata +0 -0
- data/Data/Map325.rxdata +0 -0
- data/Data/Map326.rxdata +0 -0
- data/Data/Map327.rxdata +0 -0
- data/Data/Map328.rxdata +0 -0
- data/Data/Map329.rxdata +0 -0
- data/Data/Map330.rxdata +0 -0
- data/Data/Map331.rxdata +0 -0
- data/Data/Map332.rxdata +0 -0
- data/Data/Map333.rxdata +0 -0
- data/Data/Map334.rxdata +0 -0
- data/Data/Map335.rxdata +0 -0
- data/Data/Map336.rxdata +0 -0
- data/Data/Map337.rxdata +0 -0
- data/Data/Map338.rxdata +0 -0
- data/Data/Map339.rxdata +0 -0
- data/Data/Map340.rxdata +0 -0
- data/Data/Map341.rxdata +0 -0
- data/Data/Map342.rxdata +0 -0
- data/Data/Map343.rxdata +0 -0
- data/Data/Map344.rxdata +0 -0
- data/Data/Map345.rxdata +0 -0
- data/Data/Map346.rxdata +0 -0
- data/Data/Map347.rxdata +0 -0
- data/Data/Map348.rxdata +0 -0
- data/Data/Map349.rxdata +0 -0
- data/Data/Map350.rxdata +0 -0
- data/Data/Map351.rxdata +0 -0
- data/Data/Map352.rxdata +0 -0
- data/Data/Map353.rxdata +0 -0
- data/Data/Map354.rxdata +0 -0
- data/Data/Map355.rxdata +0 -0
- data/Data/Map356.rxdata +0 -0
- data/Data/Map357.rxdata +0 -0
- data/Data/Map358.rxdata +0 -0
- data/Data/Map359.rxdata +0 -0
- data/Data/Map360.rxdata +0 -0
- data/Data/Map361.rxdata +0 -0
- data/Data/Map362.rxdata +0 -0
- data/Data/Map363.rxdata +0 -0
- data/Data/Map364.rxdata +0 -0
- data/Data/Map365.rxdata +0 -0
- data/Data/Map366.rxdata +0 -0
- data/Data/Map367.rxdata +0 -0
- data/Data/Map368.rxdata +0 -0
- data/Data/Map369.rxdata +0 -0
- data/Data/Map370.rxdata +0 -0
- data/Data/Map371.rxdata +0 -0
- data/Data/Map372.rxdata +0 -0
- data/Data/Map373.rxdata +0 -0
- data/Data/Map374.rxdata +0 -0
- data/Data/Map375.rxdata +0 -0
- data/Data/Map376.rxdata +0 -0
- data/Data/Map377.rxdata +0 -0
- data/Data/Map378.rxdata +0 -0
- data/Data/Map379.rxdata +0 -0
- data/Data/Map380.rxdata +0 -0
- data/Data/Map381.rxdata +0 -0
- data/Data/Map382.rxdata +0 -0
- data/Data/Map383.rxdata +0 -0
- data/Data/Map384.rxdata +0 -0
- data/Data/Map385.rxdata +0 -0
@@ -0,0 +1,469 @@
|
|
1
|
+
class Window_Settings
|
2
|
+
MARGIN = 30
|
3
|
+
TITLE_TOP_MARGIN = 32
|
4
|
+
TITLE_MARGIN = 100
|
5
|
+
ITEM_SPACING = 28
|
6
|
+
VALUE_MARGIN = 270
|
7
|
+
ACTIVE_MARGIN = MARGIN * 2 + 20
|
8
|
+
SETTINGS_FILE_NAME = Oneshot::SAVE_PATH + '/settings.conf'
|
9
|
+
|
10
|
+
def save_settings
|
11
|
+
$persistent.save
|
12
|
+
File.open(SETTINGS_FILE_NAME, 'w') do |file|
|
13
|
+
file.puts('bgm_volume=' + Audio.bgm_volume.to_s)
|
14
|
+
file.puts('sfx_volume=' + Audio.sfx_volume.to_s)
|
15
|
+
file.puts('fullscreen=' + Graphics.fullscreen.to_s)
|
16
|
+
file.puts('default_run=' + $game_switches[251].to_s)
|
17
|
+
file.puts('colorblind_mode=' + $game_switches[252].to_s)
|
18
|
+
file.puts('automash_enabled=' + $game_switches[253].to_s)
|
19
|
+
file.puts('frameskip=' + Graphics.frameskip.to_s)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.load_settings
|
24
|
+
return false if !FileTest.exist?(SETTINGS_FILE_NAME)
|
25
|
+
File.foreach(SETTINGS_FILE_NAME).with_index do |line, line_num|
|
26
|
+
if !line.include? "="
|
27
|
+
next
|
28
|
+
end
|
29
|
+
vals = line.strip.split("=")
|
30
|
+
case vals[0]
|
31
|
+
when "bgm_volume"
|
32
|
+
if !!(vals[1] =~ /\A[-+]?[0-9]+\z/) #is a number
|
33
|
+
number = vals[1].to_i
|
34
|
+
Audio.bgm_volume = number
|
35
|
+
end
|
36
|
+
when "sfx_volume"
|
37
|
+
if !!(vals[1] =~ /\A[-+]?[0-9]+\z/) #is a number
|
38
|
+
number = vals[1].to_i
|
39
|
+
Audio.sfx_volume = number
|
40
|
+
end
|
41
|
+
when "fullscreen"
|
42
|
+
if vals[1] == "true"
|
43
|
+
Graphics.fullscreen = true
|
44
|
+
$console = true
|
45
|
+
elsif vals[1] == "false"
|
46
|
+
Graphics.fullscreen = false
|
47
|
+
$console = false
|
48
|
+
end
|
49
|
+
when "default_run"
|
50
|
+
if vals[1] == "true"
|
51
|
+
$game_switches[251] = true
|
52
|
+
elsif vals[1] == "false"
|
53
|
+
$game_switches[251] = false
|
54
|
+
end
|
55
|
+
when "colorblind_mode"
|
56
|
+
if vals[1] == "true"
|
57
|
+
$game_switches[252] = true
|
58
|
+
elsif vals[1] == "false"
|
59
|
+
$game_switches[252] = false
|
60
|
+
end
|
61
|
+
when "automash_enabled"
|
62
|
+
if vals[1] == "true"
|
63
|
+
$game_switches[253] = true
|
64
|
+
elsif vals[1] == "false"
|
65
|
+
$game_switches[253] = false
|
66
|
+
end
|
67
|
+
when "frameskip"
|
68
|
+
if vals[1] == "true"
|
69
|
+
Graphics.frameskip = true
|
70
|
+
elsif vals[1] == "false"
|
71
|
+
Graphics.frameskip = false
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def initialize
|
78
|
+
@viewport = Viewport.new(0, 0, 640, 480)
|
79
|
+
@bg = Sprite.new(@viewport)
|
80
|
+
@bg.bitmap = Bitmap.new(640, 480)
|
81
|
+
@bg.bitmap.fill_rect(0, 0, 640, 480, Color.new(0, 0, 0, 128))
|
82
|
+
@title = Sprite.new(@viewport)
|
83
|
+
@title.bitmap = Bitmap.new(320, TITLE_MARGIN)
|
84
|
+
@title.bitmap.font.size = 40
|
85
|
+
@title.y = TITLE_TOP_MARGIN
|
86
|
+
@title.x = MARGIN
|
87
|
+
@version = Sprite.new(@viewport)
|
88
|
+
@version.bitmap = Bitmap.new(60, 20)
|
89
|
+
@version.x = 10
|
90
|
+
@version.y = 450
|
91
|
+
@version.opacity = 128
|
92
|
+
Language.register_text_sprite(self.class.name + "_title", @title)
|
93
|
+
Language.register_text_sprite(self.class.name + "_ver", @version)
|
94
|
+
@data_sprites = []
|
95
|
+
@viewport.z = 9998
|
96
|
+
|
97
|
+
@left_hold_timer = 0
|
98
|
+
@right_hold_timer = 0
|
99
|
+
|
100
|
+
self.visible = false
|
101
|
+
@index = 0
|
102
|
+
@fade_in = false
|
103
|
+
@fade_out = false
|
104
|
+
|
105
|
+
@transfer_player = nil
|
106
|
+
@visible = false
|
107
|
+
end
|
108
|
+
|
109
|
+
def dispose
|
110
|
+
@bg.dispose
|
111
|
+
@title.dispose
|
112
|
+
@version.dispose
|
113
|
+
@data_sprites.each do |spr|
|
114
|
+
spr.dispose
|
115
|
+
end
|
116
|
+
@viewport.dispose
|
117
|
+
end
|
118
|
+
|
119
|
+
def open
|
120
|
+
self.visible = true
|
121
|
+
self.opacity = 0
|
122
|
+
@fade_in = true
|
123
|
+
@data = [
|
124
|
+
tr('BGM Volume'),
|
125
|
+
tr('SFX Volume'),
|
126
|
+
tr('Fullscreen'),
|
127
|
+
tr('Default movement'),
|
128
|
+
tr('Colorblind mode'),
|
129
|
+
tr('Skip Text (R)'),
|
130
|
+
tr('Frameskip'),
|
131
|
+
tr('Language'),
|
132
|
+
tr('Configure Controls (Press F1)'),
|
133
|
+
]
|
134
|
+
|
135
|
+
@index = 0
|
136
|
+
# Load our language settings from persistent, stored differently
|
137
|
+
@lang_index = Language::LANGUAGES.index($persistent.langcode)
|
138
|
+
if @lang_index.nil?
|
139
|
+
@lang_index = 0
|
140
|
+
end
|
141
|
+
|
142
|
+
# Create title
|
143
|
+
@title.bitmap.clear
|
144
|
+
@title.bitmap.draw_text(0, 0, @title.bitmap.width, @title.bitmap.height, tr("Settings"))
|
145
|
+
|
146
|
+
# Create version string
|
147
|
+
@version.bitmap.clear
|
148
|
+
@version.bitmap.draw_text(0, 0, @version.bitmap.width, @version.bitmap.height, tr("POT_VERSION"))
|
149
|
+
|
150
|
+
# Create menu options
|
151
|
+
@data.each_with_index do |item, i|
|
152
|
+
spr = Sprite.new(@viewport)
|
153
|
+
spr.bitmap = Bitmap.new(400, ITEM_SPACING)
|
154
|
+
spr.x = MARGIN
|
155
|
+
spr.y = TITLE_MARGIN + TITLE_TOP_MARGIN + ITEM_SPACING * i
|
156
|
+
spr.opacity = 0
|
157
|
+
Language.register_text_sprite(self.class.name + "_option_#{i}", spr)
|
158
|
+
redraw_setting(spr, i)
|
159
|
+
|
160
|
+
@data_sprites << spr
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
def redraw_setting(spr, i)
|
165
|
+
if @visible == false
|
166
|
+
return
|
167
|
+
end
|
168
|
+
spr.bitmap.clear
|
169
|
+
spr.bitmap.draw_text(0, 0, spr.bitmap.width, spr.bitmap.height, @data[i])
|
170
|
+
spr.bitmap.draw_text(0, 0, spr.bitmap.width, spr.bitmap.height, @data[i])
|
171
|
+
case i
|
172
|
+
when 0
|
173
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, Audio.bgm_volume.to_s)
|
174
|
+
when 1
|
175
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, Audio.sfx_volume.to_s)
|
176
|
+
when 2 #fullscreen
|
177
|
+
if(Graphics.fullscreen == true)
|
178
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, tr("ON"))
|
179
|
+
else
|
180
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, tr("OFF"))
|
181
|
+
end
|
182
|
+
when 3 #default movement
|
183
|
+
if($game_switches[251] == true)
|
184
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, tr("RUN"))
|
185
|
+
else
|
186
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, tr("WALK"))
|
187
|
+
end
|
188
|
+
when 4 #colorblind mode
|
189
|
+
if($game_switches[252] == true)
|
190
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, tr("ON"))
|
191
|
+
else
|
192
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, tr("OFF"))
|
193
|
+
end
|
194
|
+
when 5 #automash
|
195
|
+
if($game_switches[253] == true)
|
196
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, tr("ON"))
|
197
|
+
else
|
198
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, tr("OFF"))
|
199
|
+
end
|
200
|
+
when 6 #frameskip
|
201
|
+
if(Graphics.frameskip == true)
|
202
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, tr("ON"))
|
203
|
+
else
|
204
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, tr("OFF"))
|
205
|
+
end
|
206
|
+
when 7 # Language
|
207
|
+
l = Language::LANGUAGES[@lang_index] rescue Language::LANGUAGES[0]
|
208
|
+
spr.bitmap.draw_text(VALUE_MARGIN, 0, spr.bitmap.width, spr.bitmap.height, tr(l))
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
|
213
|
+
def redraw_setting_index(i)
|
214
|
+
if !@data_sprites.kind_of?(Array)
|
215
|
+
return
|
216
|
+
end
|
217
|
+
if @data_sprites.length - 1 < i
|
218
|
+
return
|
219
|
+
end
|
220
|
+
redraw_setting(@data_sprites[i], i)
|
221
|
+
end
|
222
|
+
|
223
|
+
|
224
|
+
def redraw_all_settings
|
225
|
+
@title.bitmap.clear
|
226
|
+
@title.bitmap.draw_text(0, 0, @title.bitmap.width, @title.bitmap.height, tr("Settings"))
|
227
|
+
@version.bitmap.clear
|
228
|
+
@version.bitmap.draw_text(0, 0, @version.bitmap.width, @version.bitmap.height, tr("POT_VERSION"))
|
229
|
+
for i in 0..(@data_sprites.length - 1)
|
230
|
+
redraw_setting_index(i)
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
|
235
|
+
def update
|
236
|
+
|
237
|
+
@version.opacity = 128
|
238
|
+
|
239
|
+
if @fade_in
|
240
|
+
self.opacity += 20
|
241
|
+
active_spr = nil
|
242
|
+
@data_sprites.each do |spr|
|
243
|
+
spr.opacity += 10
|
244
|
+
spr.opacity = 128 if spr.opacity > 128
|
245
|
+
active_spr = spr if !active_spr && spr.x < MARGIN * 2
|
246
|
+
end
|
247
|
+
if active_spr
|
248
|
+
active_spr.x += 6
|
249
|
+
active_spr.x = MARGIN * 2 if active_spr.x > MARGIN * 2
|
250
|
+
elsif self.opacity == 255
|
251
|
+
@fade_in = false
|
252
|
+
end
|
253
|
+
@version.opacity = 128
|
254
|
+
return
|
255
|
+
end
|
256
|
+
|
257
|
+
if @fade_out
|
258
|
+
self.opacity -= 20
|
259
|
+
@data_sprites.each do |spr|
|
260
|
+
spr.opacity -= 10
|
261
|
+
end
|
262
|
+
if self.opacity == 0
|
263
|
+
@fade_out = false
|
264
|
+
self.visible = false
|
265
|
+
@data_sprites.each do |spr|
|
266
|
+
spr.dispose
|
267
|
+
end
|
268
|
+
@data_sprites = []
|
269
|
+
|
270
|
+
if @transfer_player
|
271
|
+
$game_temp.player_transferring = true
|
272
|
+
$game_temp.player_new_map_id = @transfer_player.id
|
273
|
+
$game_temp.player_new_x = @transfer_player.x
|
274
|
+
$game_temp.player_new_y = @transfer_player.y
|
275
|
+
$game_temp.player_new_direction = @transfer_player.dir
|
276
|
+
Graphics.freeze
|
277
|
+
$game_temp.transition_processing = true
|
278
|
+
$game_temp.transition_name = "black"
|
279
|
+
@transfer_player = nil
|
280
|
+
end
|
281
|
+
end
|
282
|
+
return
|
283
|
+
end
|
284
|
+
|
285
|
+
return if !self.visible
|
286
|
+
|
287
|
+
# Adjust position and visibility
|
288
|
+
@data_sprites.each_with_index do |spr, i|
|
289
|
+
if i == @index
|
290
|
+
if spr.x < ACTIVE_MARGIN
|
291
|
+
spr.x += 6
|
292
|
+
spr.x = ACTIVE_MARGIN if spr.x > ACTIVE_MARGIN
|
293
|
+
end
|
294
|
+
spr.opacity += 10 if spr.opacity < 255
|
295
|
+
else
|
296
|
+
if spr.x > MARGIN * 2
|
297
|
+
spr.x -= 6
|
298
|
+
spr.x = MARGIN * 2 if spr.x < MARGIN * 2
|
299
|
+
end
|
300
|
+
spr.opacity -= 10 if spr.opacity > 128
|
301
|
+
spr.opacity = 128 if spr.opacity < 128
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
if Input.trigger?(Input::UP)
|
306
|
+
@index = (@index - 1) % @data.size
|
307
|
+
$game_system.se_play($data_system.cursor_se)
|
308
|
+
end
|
309
|
+
if Input.trigger?(Input::DOWN)
|
310
|
+
@index = (@index + 1) % @data.size
|
311
|
+
$game_system.se_play($data_system.cursor_se)
|
312
|
+
end
|
313
|
+
|
314
|
+
if Input.press?(Input::LEFT)
|
315
|
+
@left_hold_timer += 1
|
316
|
+
else
|
317
|
+
@left_hold_timer = 0
|
318
|
+
end
|
319
|
+
|
320
|
+
if Input.press?(Input::RIGHT)
|
321
|
+
@right_hold_timer += 1
|
322
|
+
else
|
323
|
+
@right_hold_timer = 0
|
324
|
+
end
|
325
|
+
|
326
|
+
case @index
|
327
|
+
when 0 #bgm vol
|
328
|
+
old_vol = Audio.bgm_volume
|
329
|
+
if Input.trigger?(Input::LEFT) || (Input.press?(Input::LEFT) && (@left_hold_timer >= 15))
|
330
|
+
@left_hold_timer -= 2
|
331
|
+
Audio.bgm_volume -= 1
|
332
|
+
if old_vol > 1
|
333
|
+
Audio.se_play("Audio/SE/text_robot.wav", 70, (Audio.bgm_volume/2) + 75)
|
334
|
+
redraw_setting_index(0)
|
335
|
+
end
|
336
|
+
elsif Input.trigger?(Input::RIGHT) || (Input.press?(Input::RIGHT) && (@right_hold_timer >= 15))
|
337
|
+
@right_hold_timer -= 2
|
338
|
+
Audio.bgm_volume += 1
|
339
|
+
if old_vol < 100
|
340
|
+
Audio.se_play("Audio/SE/text_robot.wav", 70, (Audio.bgm_volume/2) + 75)
|
341
|
+
redraw_setting_index(0)
|
342
|
+
end
|
343
|
+
end
|
344
|
+
|
345
|
+
when 1 #sfx vol
|
346
|
+
old_vol = Audio.sfx_volume
|
347
|
+
if Input.trigger?(Input::LEFT) || (Input.press?(Input::LEFT) && (@left_hold_timer >= 15))
|
348
|
+
@left_hold_timer -= 2
|
349
|
+
Audio.sfx_volume -= 1
|
350
|
+
if old_vol > 1
|
351
|
+
Audio.se_play("Audio/SE/text_robot.wav", 70, (Audio.sfx_volume/2) + 75)
|
352
|
+
redraw_setting_index(1)
|
353
|
+
end
|
354
|
+
elsif Input.trigger?(Input::RIGHT) || (Input.press?(Input::RIGHT) && (@right_hold_timer >= 15))
|
355
|
+
@right_hold_timer -= 2
|
356
|
+
Audio.sfx_volume += 1
|
357
|
+
if old_vol < 100
|
358
|
+
Audio.se_play("Audio/SE/text_robot.wav", 70, (Audio.sfx_volume/2) + 75)
|
359
|
+
redraw_setting_index(1)
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
when 2 #fullscreen
|
364
|
+
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::LEFT) || Input.trigger?(Input::RIGHT)
|
365
|
+
|
366
|
+
$game_system.se_play($data_system.decision_se)
|
367
|
+
if Graphics.fullscreen == true
|
368
|
+
Graphics.fullscreen = false
|
369
|
+
$console = false
|
370
|
+
else
|
371
|
+
Graphics.fullscreen = true
|
372
|
+
$console = true
|
373
|
+
end
|
374
|
+
sleep(0.500)
|
375
|
+
redraw_setting_index(2)
|
376
|
+
sleep(0.500)
|
377
|
+
end
|
378
|
+
|
379
|
+
when 3 #default movement
|
380
|
+
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::LEFT) || Input.trigger?(Input::RIGHT)
|
381
|
+
|
382
|
+
$game_system.se_play($data_system.decision_se)
|
383
|
+
if $game_switches[251] == true
|
384
|
+
$game_switches[251] = false
|
385
|
+
else
|
386
|
+
$game_switches[251] = true
|
387
|
+
end
|
388
|
+
redraw_setting_index(3)
|
389
|
+
end
|
390
|
+
|
391
|
+
when 4 #colorblind mode
|
392
|
+
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::LEFT) || Input.trigger?(Input::RIGHT)
|
393
|
+
|
394
|
+
$game_system.se_play($data_system.decision_se)
|
395
|
+
if $game_switches[252] == true
|
396
|
+
$game_switches[252] = false
|
397
|
+
else
|
398
|
+
$game_switches[252] = true
|
399
|
+
end
|
400
|
+
redraw_setting_index(4)
|
401
|
+
end
|
402
|
+
|
403
|
+
when 5 #automash
|
404
|
+
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::LEFT) || Input.trigger?(Input::RIGHT)
|
405
|
+
|
406
|
+
$game_system.se_play($data_system.decision_se)
|
407
|
+
if $game_switches[253] == true
|
408
|
+
$game_switches[253] = false
|
409
|
+
else
|
410
|
+
$game_switches[253] = true
|
411
|
+
end
|
412
|
+
redraw_setting_index(5)
|
413
|
+
end
|
414
|
+
|
415
|
+
when 6 #frameskip
|
416
|
+
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::LEFT) || Input.trigger?(Input::RIGHT)
|
417
|
+
|
418
|
+
$game_system.se_play($data_system.decision_se)
|
419
|
+
if Graphics.frameskip == true
|
420
|
+
Graphics.frameskip = false
|
421
|
+
else
|
422
|
+
Graphics.frameskip = true
|
423
|
+
end
|
424
|
+
redraw_setting_index(6)
|
425
|
+
end
|
426
|
+
|
427
|
+
when 7 #language
|
428
|
+
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::RIGHT)
|
429
|
+
@lang_index += 1
|
430
|
+
if @lang_index >= Language::LANGUAGES.length
|
431
|
+
@lang_index = 0
|
432
|
+
end
|
433
|
+
$persistent.lang = Language::LANGUAGES[@lang_index]
|
434
|
+
redraw_all_settings()
|
435
|
+
end
|
436
|
+
if Input.trigger?(Input::LEFT)
|
437
|
+
@lang_index -= 1
|
438
|
+
if @lang_index < 0
|
439
|
+
@lang_index = Language::LANGUAGES.length - 1
|
440
|
+
end
|
441
|
+
$persistent.lang = Language::LANGUAGES[@lang_index]
|
442
|
+
redraw_all_settings()
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
446
|
+
if Input.trigger?(Input::CANCEL)
|
447
|
+
$game_system.se_play($data_system.cancel_se)
|
448
|
+
@fade_out = true
|
449
|
+
save_settings
|
450
|
+
end
|
451
|
+
end
|
452
|
+
|
453
|
+
# Attributes
|
454
|
+
def visible
|
455
|
+
return @visible
|
456
|
+
end
|
457
|
+
def visible=(val)
|
458
|
+
@viewport.visible = val
|
459
|
+
@visible = val
|
460
|
+
end
|
461
|
+
def opacity=(val)
|
462
|
+
@bg.opacity = val
|
463
|
+
@title.opacity = val
|
464
|
+
@version.opacity = val
|
465
|
+
end
|
466
|
+
def opacity
|
467
|
+
@bg.opacity
|
468
|
+
end
|
469
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
#==============================================================================
|
2
|
+
# ** Window_ShopBuy
|
3
|
+
#------------------------------------------------------------------------------
|
4
|
+
# This window displays buyable goods on the shop screen.
|
5
|
+
#==============================================================================
|
6
|
+
|
7
|
+
class Window_ShopBuy < Window_Selectable
|
8
|
+
#--------------------------------------------------------------------------
|
9
|
+
# * Object Initialization
|
10
|
+
# shop_goods : goods
|
11
|
+
#--------------------------------------------------------------------------
|
12
|
+
def initialize(shop_goods)
|
13
|
+
super(0, 128, 368, 352)
|
14
|
+
@shop_goods = shop_goods
|
15
|
+
refresh
|
16
|
+
self.index = 0
|
17
|
+
end
|
18
|
+
#--------------------------------------------------------------------------
|
19
|
+
# * Item Acquisition
|
20
|
+
#--------------------------------------------------------------------------
|
21
|
+
def item
|
22
|
+
return @data[self.index]
|
23
|
+
end
|
24
|
+
#--------------------------------------------------------------------------
|
25
|
+
# * Refresh
|
26
|
+
#--------------------------------------------------------------------------
|
27
|
+
def refresh
|
28
|
+
if self.contents != nil
|
29
|
+
self.contents.dispose
|
30
|
+
self.contents = nil
|
31
|
+
end
|
32
|
+
@data = []
|
33
|
+
for goods_item in @shop_goods
|
34
|
+
case goods_item[0]
|
35
|
+
when 0
|
36
|
+
item = $data_items[goods_item[1]]
|
37
|
+
when 1
|
38
|
+
item = $data_weapons[goods_item[1]]
|
39
|
+
when 2
|
40
|
+
item = $data_armors[goods_item[1]]
|
41
|
+
end
|
42
|
+
if item != nil
|
43
|
+
@data.push(item)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
# If item count is not 0, make a bit map and draw all items
|
47
|
+
@item_max = @data.size
|
48
|
+
if @item_max > 0
|
49
|
+
self.contents = Bitmap.new(width - 32, row_max * 32)
|
50
|
+
for i in 0...@item_max
|
51
|
+
draw_item(i)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
#--------------------------------------------------------------------------
|
56
|
+
# * Draw Item
|
57
|
+
# index : item number
|
58
|
+
#--------------------------------------------------------------------------
|
59
|
+
def draw_item(index)
|
60
|
+
item = @data[index]
|
61
|
+
# Get items in possession
|
62
|
+
case item
|
63
|
+
when RPG::Item
|
64
|
+
number = $game_party.item_number(item.id)
|
65
|
+
when RPG::Weapon
|
66
|
+
number = $game_party.weapon_number(item.id)
|
67
|
+
when RPG::Armor
|
68
|
+
number = $game_party.armor_number(item.id)
|
69
|
+
end
|
70
|
+
# If price is less than money in possession, and amount in possession is
|
71
|
+
# not 99, then set to normal text color. Otherwise set to disabled color
|
72
|
+
if item.price <= $game_party.gold and number < 99
|
73
|
+
self.contents.font.color = normal_color
|
74
|
+
else
|
75
|
+
self.contents.font.color = disabled_color
|
76
|
+
end
|
77
|
+
x = 4
|
78
|
+
y = index * 32
|
79
|
+
rect = Rect.new(x, y, self.width - 32, 32)
|
80
|
+
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
|
81
|
+
bitmap = RPG::Cache.icon(item.icon_name)
|
82
|
+
opacity = self.contents.font.color == normal_color ? 255 : 128
|
83
|
+
self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
|
84
|
+
self.contents.draw_text(x + 28, y, 212, 32, item.name, 0)
|
85
|
+
self.contents.draw_text(x + 240, y, 88, 32, item.price.to_s, 2)
|
86
|
+
end
|
87
|
+
#--------------------------------------------------------------------------
|
88
|
+
# * Help Text Update
|
89
|
+
#--------------------------------------------------------------------------
|
90
|
+
def update_help
|
91
|
+
@help_window.set_text(self.item == nil ? "" : self.item.description)
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
#==============================================================================
|
2
|
+
# ** Window_ShopCommand
|
3
|
+
#------------------------------------------------------------------------------
|
4
|
+
# This window is used to choose your business on the shop screen.
|
5
|
+
#==============================================================================
|
6
|
+
|
7
|
+
class Window_ShopCommand < Window_Selectable
|
8
|
+
#--------------------------------------------------------------------------
|
9
|
+
# * Object Initialization
|
10
|
+
#--------------------------------------------------------------------------
|
11
|
+
def initialize
|
12
|
+
super(0, 64, 480, 64)
|
13
|
+
self.contents = Bitmap.new(width - 32, height - 32)
|
14
|
+
@item_max = 3
|
15
|
+
@column_max = 3
|
16
|
+
@commands = ["Buy", "Sell", "Exit"]
|
17
|
+
refresh
|
18
|
+
self.index = 0
|
19
|
+
end
|
20
|
+
#--------------------------------------------------------------------------
|
21
|
+
# * Refresh
|
22
|
+
#--------------------------------------------------------------------------
|
23
|
+
def refresh
|
24
|
+
self.contents.clear
|
25
|
+
for i in 0...@item_max
|
26
|
+
draw_item(i)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
#--------------------------------------------------------------------------
|
30
|
+
# * Draw Item
|
31
|
+
# index : item number
|
32
|
+
#--------------------------------------------------------------------------
|
33
|
+
def draw_item(index)
|
34
|
+
x = 4 + index * 160
|
35
|
+
self.contents.draw_text(x, 0, 128, 32, @commands[index])
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
#==============================================================================
|
2
|
+
# ** Window_ShopNumber
|
3
|
+
#------------------------------------------------------------------------------
|
4
|
+
# This window is for inputting quantity of items to buy or sell on the
|
5
|
+
# shop screen.
|
6
|
+
#==============================================================================
|
7
|
+
|
8
|
+
class Window_ShopNumber < Window_Base
|
9
|
+
#--------------------------------------------------------------------------
|
10
|
+
# * Object Initialization
|
11
|
+
#--------------------------------------------------------------------------
|
12
|
+
def initialize
|
13
|
+
super(0, 128, 368, 352)
|
14
|
+
self.contents = Bitmap.new(width - 32, height - 32)
|
15
|
+
@item = nil
|
16
|
+
@max = 1
|
17
|
+
@price = 0
|
18
|
+
@number = 1
|
19
|
+
end
|
20
|
+
#--------------------------------------------------------------------------
|
21
|
+
# * Set Items, Max Quantity, and Price
|
22
|
+
#--------------------------------------------------------------------------
|
23
|
+
def set(item, max, price)
|
24
|
+
@item = item
|
25
|
+
@max = max
|
26
|
+
@price = price
|
27
|
+
@number = 1
|
28
|
+
refresh
|
29
|
+
end
|
30
|
+
#--------------------------------------------------------------------------
|
31
|
+
# * Set Inputted Quantity
|
32
|
+
#--------------------------------------------------------------------------
|
33
|
+
def number
|
34
|
+
return @number
|
35
|
+
end
|
36
|
+
#--------------------------------------------------------------------------
|
37
|
+
# * Refresh
|
38
|
+
#--------------------------------------------------------------------------
|
39
|
+
def refresh
|
40
|
+
self.contents.clear
|
41
|
+
draw_item_name(@item, 4, 96)
|
42
|
+
self.contents.font.color = normal_color
|
43
|
+
self.contents.draw_text(272, 96, 32, 32, "×")
|
44
|
+
self.contents.draw_text(308, 96, 24, 32, @number.to_s, 2)
|
45
|
+
self.cursor_rect.set(304, 96, 32, 32)
|
46
|
+
# Draw total price and currency units
|
47
|
+
domination = $data_system.words.gold
|
48
|
+
cx = contents.text_size(domination).width
|
49
|
+
total_price = @price * @number
|
50
|
+
self.contents.font.color = normal_color
|
51
|
+
self.contents.draw_text(4, 160, 328-cx-2, 32, total_price.to_s, 2)
|
52
|
+
self.contents.font.color = system_color
|
53
|
+
self.contents.draw_text(332-cx, 160, cx, 32, domination, 2)
|
54
|
+
end
|
55
|
+
#--------------------------------------------------------------------------
|
56
|
+
# * Frame Update
|
57
|
+
#--------------------------------------------------------------------------
|
58
|
+
def update
|
59
|
+
super
|
60
|
+
if self.active
|
61
|
+
# Cursor right (+1)
|
62
|
+
if Input.repeat?(Input::RIGHT) and @number < @max
|
63
|
+
$game_system.se_play($data_system.cursor_se)
|
64
|
+
@number += 1
|
65
|
+
refresh
|
66
|
+
end
|
67
|
+
# Cursor left (-1)
|
68
|
+
if Input.repeat?(Input::LEFT) and @number > 1
|
69
|
+
$game_system.se_play($data_system.cursor_se)
|
70
|
+
@number -= 1
|
71
|
+
refresh
|
72
|
+
end
|
73
|
+
# Cursdr up (+10)
|
74
|
+
if Input.repeat?(Input::UP) and @number < @max
|
75
|
+
$game_system.se_play($data_system.cursor_se)
|
76
|
+
@number = [@number + 10, @max].min
|
77
|
+
refresh
|
78
|
+
end
|
79
|
+
# Cursor down (-10)
|
80
|
+
if Input.repeat?(Input::DOWN) and @number > 1
|
81
|
+
$game_system.se_play($data_system.cursor_se)
|
82
|
+
@number = [@number - 10, 1].max
|
83
|
+
refresh
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|