Exported Inventory.AltHUDIcon field to ZScript

https://forum.zdoom.org/viewtopic.php?t=59842
This commit is contained in:
alexey.lysiuk 2018-03-18 11:02:21 +02:00
parent ecff13ac2e
commit 75782e6b34
2 changed files with 3 additions and 0 deletions

View file

@ -82,6 +82,7 @@ DEFINE_FIELD(AInventory, MaxAmount)
DEFINE_FIELD(AInventory, InterHubAmount)
DEFINE_FIELD(AInventory, RespawnTics)
DEFINE_FIELD(AInventory, Icon)
DEFINE_FIELD(AInventory, AltHUDIcon)
DEFINE_FIELD(AInventory, DropTime)
DEFINE_FIELD(AInventory, SpawnPointClass)
DEFINE_FIELD(AInventory, PickupFlash)
@ -147,6 +148,7 @@ void AInventory::Serialize(FSerializer &arc)
("respawntics", RespawnTics, def->RespawnTics)
("itemflags", ItemFlags, def->ItemFlags)
("icon", Icon, def->Icon)
("althudicon", AltHUDIcon, def->AltHUDIcon)
("pickupsound", PickupSound, def->PickupSound)
("spawnpointclass", SpawnPointClass, def->SpawnPointClass)
("droptime", DropTime, def->DropTime);

View file

@ -16,6 +16,7 @@ class Inventory : Actor native
native int InterHubAmount; // Amount of item that can be kept between hubs or levels
native int RespawnTics; // Tics from pickup time to respawn time
native TextureID Icon; // Icon to show on status bar or HUD
native TextureID AltHUDIcon;
native int DropTime; // Countdown after dropping
native Class<Actor> SpawnPointClass; // For respawning like Heretic's mace
native Class<Actor> PickupFlash; // actor to spawn as pickup flash