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 によって変換されたページ (->オリジナル) /