Add docs and macro for new opcode

This commit is contained in:
phobos2077
2024-05-07 20:35:57 +08:00
committed by NovaRain
parent 76f198e567
commit 8f10169661
2 changed files with 19 additions and 3 deletions
+10
View File
@@ -1687,6 +1687,16 @@
- name: Windows and images
parent: Interface
items:
- name: art_frame_data
detail: array art_frame_data(string/int artFile/artId, int frame, int rotation)
doc: |
- returns dimensions of a given PCX or FRM frame as temp array in form: [width, height]
- artFile/artId: path to the PCX/FRM file (e.g. `art\\inven\\5mmap.frm`), or its FRM ID number (e.g. `0x7000026`, see specification of the FID format)
optional arguments:
- `frame`: frame number, the first frame starts from zero
- `rotation`: rotation to get the frame for, useful when reading FRM file by path
macro: sfall.h
- name: interface_art_draw
detail: int sfall_func4("interface_art_draw", int winType, string artFile/int artID, int x, int y)
doc: |