Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Inventář

LordOfFlies edited this page Jun 12, 2016 · 8 revisions

Objekty

  • oInventory

Skripty

  • inventoryCreate
  • inventoryDraw
  • inventoryPickUp
  • inventoryDrop
  • inventoryAction
  • inventoryContains
  • inventoryDrawOptionbox
  • inventoryCombinations
  • inventorySwitchPre
  • inventoryNumber
  • inventoryDelete

oInventory

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(); }

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /