mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
Exported Inventory.AltHUDIcon field to ZScript
https://forum.zdoom.org/viewtopic.php?t=59842
This commit is contained in:
parent
ecff13ac2e
commit
75782e6b34
2 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,7 @@ DEFINE_FIELD(AInventory, MaxAmount)
|
||||||
DEFINE_FIELD(AInventory, InterHubAmount)
|
DEFINE_FIELD(AInventory, InterHubAmount)
|
||||||
DEFINE_FIELD(AInventory, RespawnTics)
|
DEFINE_FIELD(AInventory, RespawnTics)
|
||||||
DEFINE_FIELD(AInventory, Icon)
|
DEFINE_FIELD(AInventory, Icon)
|
||||||
|
DEFINE_FIELD(AInventory, AltHUDIcon)
|
||||||
DEFINE_FIELD(AInventory, DropTime)
|
DEFINE_FIELD(AInventory, DropTime)
|
||||||
DEFINE_FIELD(AInventory, SpawnPointClass)
|
DEFINE_FIELD(AInventory, SpawnPointClass)
|
||||||
DEFINE_FIELD(AInventory, PickupFlash)
|
DEFINE_FIELD(AInventory, PickupFlash)
|
||||||
|
@ -147,6 +148,7 @@ void AInventory::Serialize(FSerializer &arc)
|
||||||
("respawntics", RespawnTics, def->RespawnTics)
|
("respawntics", RespawnTics, def->RespawnTics)
|
||||||
("itemflags", ItemFlags, def->ItemFlags)
|
("itemflags", ItemFlags, def->ItemFlags)
|
||||||
("icon", Icon, def->Icon)
|
("icon", Icon, def->Icon)
|
||||||
|
("althudicon", AltHUDIcon, def->AltHUDIcon)
|
||||||
("pickupsound", PickupSound, def->PickupSound)
|
("pickupsound", PickupSound, def->PickupSound)
|
||||||
("spawnpointclass", SpawnPointClass, def->SpawnPointClass)
|
("spawnpointclass", SpawnPointClass, def->SpawnPointClass)
|
||||||
("droptime", DropTime, def->DropTime);
|
("droptime", DropTime, def->DropTime);
|
||||||
|
|
|
@ -16,6 +16,7 @@ class Inventory : Actor native
|
||||||
native int InterHubAmount; // Amount of item that can be kept between hubs or levels
|
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 int RespawnTics; // Tics from pickup time to respawn time
|
||||||
native TextureID Icon; // Icon to show on status bar or HUD
|
native TextureID Icon; // Icon to show on status bar or HUD
|
||||||
|
native TextureID AltHUDIcon;
|
||||||
native int DropTime; // Countdown after dropping
|
native int DropTime; // Countdown after dropping
|
||||||
native Class<Actor> SpawnPointClass; // For respawning like Heretic's mace
|
native Class<Actor> SpawnPointClass; // For respawning like Heretic's mace
|
||||||
native Class<Actor> PickupFlash; // actor to spawn as pickup flash
|
native Class<Actor> PickupFlash; // actor to spawn as pickup flash
|
||||||
|
|
Loading…
Reference in a new issue