-
-
Notifications
You must be signed in to change notification settings - Fork 20
Inventář
Matěj Štágl edited this page Jul 3, 2016
·
8 revisions
- oInventory
- inventoryCreate
- inventoryDraw
- inventoryPickUp
- inventoryDrop
- inventoryAction
- inventoryContains
- inventoryDrawOptionbox
- inventoryCombinations
- inventorySwitchPre
- inventoryNumber
- inventoryDelete
Create
slots = 27; - //Počet polí (int16) draw_inventory = 0; - //Vykreslování inventáře (bool) draw_equipment = 0; - //Vykreslování equipmentu (bool) draw = 1; - //Obecná kontrola pro celkové vykreslení (bool) drag_alpha = 1; - //Opacita taženého předmětu z inventáře (0-1 --> 0 - 255) drag_controll = 0; - //Kontrola taženého předmětu (bool) close_text = "Zavřít"; //- V možnostech optionboxu text pro zavření nabídky (string) drop_text = "Zahoď"; //- V možnostech optionboxu text pro odhození předmětu (string) star_text = "Označit"; //- V možnostech optionboxu text pro označení předmětu hvězdičkou (string) inventoryCreate(slots); - Inicializace inventáře (počet polí) **Draw** x = view_xview; y = view_yview; draw_set_font(fntText); if (keyboard_check_pressed(ord("I"))) { draw_inventory = !draw_inventory; hover_alpha = 0; } if (keyboard_check_pressed(ord("O"))) { draw_equipment = !draw_equipment; } if (draw_equipment = 1) { equipmentDraw(); } if (draw_inventory = 1) { inventoryDraw(); } else if (draw = 1) { draw_self(); }