Hey,
so I used a script for displaying big icons from this thread: http://forums.rpgmakerweb.com/index.php?/topic/25150-script-for-big-icons/
But I'm having problems properly displaying the big icons. They just won't align with the selection part. It looks all weird and I don't know how to fix it. Here is how it looks:
I'm using a 640x480 resolution. As you can see this is a totally new item list window, so it hasn't anything to do with the standard menu. To keep those two seperated, I have two different iconsets. One with the normal 24x24 icons, and a second one with the 48x48 icons. Those ones, named IconSet and IconSet2 in the script:
And I'm using this script I did (very proud 🙂 ) with big help, of course. The script is unfinished, mainly because I have no idea right now on how to finish it and is basically a script for an adventure project to combine and seperate items, but that is a problem for another day. Right now I'm just wondering how I can align and display the big icons properly.
Any help would be greatly appreciated.
so I used a script for displaying big icons from this thread: http://forums.rpgmakerweb.com/index.php?/topic/25150-script-for-big-icons/
But I'm having problems properly displaying the big icons. They just won't align with the selection part. It looks all weird and I don't know how to fix it. Here is how it looks:
I'm using a 640x480 resolution. As you can see this is a totally new item list window, so it hasn't anything to do with the standard menu. To keep those two seperated, I have two different iconsets. One with the normal 24x24 icons, and a second one with the 48x48 icons. Those ones, named IconSet and IconSet2 in the script:
######## Module #######module KombosRezepte = {"Enterhaken" => [[4,5],[3]],"Schwert" => [[11,12],[10]],"Wurfanker" => [[4,24],[23]],"Federkiel m. Tinte" => [[17,19],[18]],"Brief" => [[9,18],[16,18]],"Speer" => [[5,6],[2]],"Vergifteter Wein" => [[14,15],[13]]}end######## Windows #######class Quest_Items < Window_ItemListdef initialize super(0, 0, Graphics.width, 250) self.category = :weapon end def col_max return 6 end def draw_item(index) item = @data[index] if item rect = item_rect(index) rect.width -= 4 draw_big_icon(item.icon_index, rect.x, rect.y, true) end end def current_item_enabled? true enddef draw_big_icon(icon_index, x, y, enabled = true)bitmap = Cache.system("IconSet2")iw, nw = 48, 48icon_rect = Rect.new(icon_index % 6 * 48, icon_index / 6 *iw, iw, iw)new_rect = Rect.new(x, y, nw, nw)contents.stretch_blt(new_rect, bitmap, icon_rect, enabled ? 255 : translucent_alpha)endendclass Item_Kommandos < Window_HorzCommand def initialize super(0,320) self.x = (Graphics.width/2) - (500/2) end def window_width return 500 end def make_command_list add_command("Examine", :examine) add_command("Equip", :equip) add_command("Combine", :combine) add_command("Separate", :separate) end end ######## Scenes ###########class Scene_Adventure < Scene_Basedef startsupercreate_backgroundcreatehelpwindowcreatelistwindowenddef create_background@background_sprite = Sprite.new@background_sprite.bitmap = SceneManager.background_bitmap@background_sprite.color.set(16, 16, 16, 128)end def dispose_background @background_sprite.dispose enddef createhelpwindow @itemdescription = Window_Help.new(3) @itemdescription.y = 250 enddef createlistwindow@listwindow = [email hidden] = @[email hidden]_window = @[email hidden]_handler🙂ok, method🙂on_ok))@listwindow.set_handler🙂cancel, method🙂return))@[email hidden](0)enddef createkommandoswindow @kommandowindow = Item_Kommandos.new @kommandowindow.viewport = @viewport @kommandowindow.set_handler🙂ok, method🙂on_ok2)) @kommandowindow.set_handler🙂cancel, method🙂return2)) @kommandowindow.set_handler🙂examine, method🙂on_examine)) @kommandowindow.set_handler🙂equip, method🙂on_equip)) @kommandowindow.set_handler🙂combine, method🙂on_combine)) @kommandowindow.set_handler🙂separate, method🙂on_separate)) @kommandowindow.activate @kommandowindow.select(0) enddef on_ok @listwindow.deactivate createkommandoswindow enddef return dispose_background SceneManager.return enddef on_ok2 @kommandowindow.activateenddef on_examine @kommandowindow.activateenddef on_equip Sound.play_equip @actor = $game_actors[1] @actor.change_equip(0, @listwindow.item) @listwindow.unselect @listwindow.refresh @kommandowindow.close @listwindow.activate enddef on_combine @kommandowindow.activateenddef on_separate item = @listwindow.item for key in Kombos::Rezepte.keys if item.id == Kombos::Rezepte[key][1][0] for gefunden in Kombos::Rezepte[key][0] $game_party.gain_item($data_weapons[gefunden], 1) end RPG::SE.new("Equip1", 80, 100).play $game_party.lose_item($data_weapons[item.id], 1) @listwindow.unselect @listwindow.refresh @kommandowindow.close @listwindow.activate else @kommandowindow.close @listwindow.activate end endenddef return2 @kommandowindow.close @listwindow.activateendend