H7HeroTradeWindowCntl¶
Class in MMH7Game · MMH7Game.H7HeroTradeWindowCntl · config
Object › GFxMoviePlayer › H7FlashMovieCntl › H7FlashMoviePopupCntl › H7ItemSlotMovieCntl › H7HeroTradeWindowCntl
Using it from Lua
Properties¶
| Name | Type | Notes |
|---|---|---|
dropInventory | H7GFxInventory | protected |
mAlliedTrade | bool | protected |
mArmy1 | H7AdventureArmy | protected |
mArmy2 | H7AdventureArmy | protected |
mArmy2CreaturePosses | array | protected |
mArmy2Original | array<H7StackCount> | protected |
mArmyRow1 | H7GFxArmyRow | protected |
mArmyRow2 | H7GFxArmyRow | protected |
mDismissArmy | int | protected |
mDismissIndex | int | protected |
mHero1 | H7AdventureHero | protected |
mHero2 | H7AdventureHero | protected |
mHeroEquip1 | H7GFxHeroEquip | protected |
mHeroEquip2 | H7GFxHeroEquip | protected |
mHeroID1 | int | protected |
mHeroID2 | int | protected |
mHeroInfo1 | H7GFxHeroInfo | protected |
mHeroInfo2 | H7GFxHeroInfo | protected |
mHeroTradeWindow | H7GFxHeroTradeWindow | protected |
mInventory1 | H7GFxInventory | protected |
mInventory2 | H7GFxInventory | protected |
mInventory2ItemsPoses | array<IntPoint> | protected |
mTradedCreatures | array<H7BaseCreatureStack> | protected |
mTradedItemPoses | array<IntPoint> | protected |
mTradedItems | array<H7HeroItem> | protected |
mTradedWarfareUnits | array<H7EditorWarUnit> | protected |
mWarfareUnitRow1 | H7GFxWarfareUnitRow | protected |
mWarfareUnitRow2 | H7GFxWarfareUnitRow | protected |
Functions¶
| Name | Declaration |
|---|---|
AddItemIconToCursor | function AddItemIconToCursor(int ItemId, bool itemIsStackable) |
AddUnitIconToCursor | function AddUnitIconToCursor(int slotID, int armyID) |
AddWarfareUnitIconToCursor | function AddWarfareUnitIconToCursor(H7StructsAndEnumsNative.EWarUnitClass warUnitClassInt, int armyID) |
BtnDoneClicked | function BtnDoneClicked() |
BtnMergeArmy1Clicked | function BtnMergeArmy1Clicked() |
BtnMergeArmy2Clicked | function BtnMergeArmy2Clicked() |
CanEquipItem | function bool CanEquipItem(bool checkCurrentHero) |
ChangeItemPos | function ChangeItemPos(int ItemId, int X, int Y) |
CheckAlliedTradeAndAddFilters | function CheckAlliedTradeAndAddFilters() |
Closed | function Closed() |
ClosePopup | function ClosePopup() |
CompleteTransfer | function CompleteTransfer(bool Success) |
DismissConfirm | function DismissConfirm() |
DismissDenied | function DismissDenied() |
DismissStack | function DismissStack(int unitIndex, optional int armyIndex) |
DropItemInInventory | function DropItemInInventory(int PosX, int PosY) |
EquipItem | function bool EquipItem() |
EquipItemByDoubleClick | function bool EquipItemByDoubleClick(int ItemId) |
GetHeroTradeWindow | function H7GFxHeroTradeWindow GetHeroTradeWindow() |
GetPopup | function H7GFxUIContainer GetPopup() |
GetStackCount | function array<H7StackCount> GetStackCount(array<H7BaseCreatureStack> OldState) |
GetStackCountDiff | function array<H7StackCount> GetStackCountDiff(array<H7StackCount> OldState, array<H7StackCount> NewState) |
GetStatModSourceList | function GetStatModSourceList(string statStr, int unrealID) |
HasTradedConsumeableOnSlot | function bool HasTradedConsumeableOnSlot(int dropSlotX, int dropSlotY) |
Initialize | function bool Initialize() |
IsHeroParticipatingInTrade | function bool IsHeroParticipatingInTrade(H7AdventureHero Hero) |
IsPlayerParticipatingInTrade | function bool IsPlayerParticipatingInTrade(H7Player Player) |
MergeItemsInInventory | function MergeItemsInInventory(int itemIDinDropSlot, int dragSlotX, int dragSlotY, int dropSlotX, int dropSlotY) |
RequestTransfer | function RequestTransfer(int dragSlotIndex, int dragSlotArmyID, int dropSlotIndex, int dropSlotArmyID, optional int Amount) |
RequestWarfareUnitTransfer | function RequestWarfareUnitTransfer(H7StructsAndEnumsNative.EWarUnitClass dragSlotClass, int dragSlotArmyID, H7StructsAndEnumsNative.EWarUnitClass dropSlotClass, int dropSlotArmyID) |
RequestWarfareUnitTransferComplete | function RequestWarfareUnitTransferComplete() |
SetCurrentHero | function SetCurrentHero(int ItemId) |
SetDragItemByID | function SetDragItemByID(int ItemId) |
SetEquip | function SetEquip(int ItemId) |
SetInventory | function SetInventory(int ItemId) |
SwitchItemFromInventoryToEquip | function SwitchItemFromInventoryToEquip(int itemIDinDropSlot, int dropSlotX, int dropSlotY) |
SwitchItemsFromEquipToInventory | function SwitchItemsFromEquipToInventory(int itemIDinDropSlot) |
SwitchItemsInEquip | function SwitchItemsInEquip(int itemIDinDropSlot) |
SwitchItemsInInventory | function SwitchItemsInInventory(int itemIDinDropSlot, int dragSlotX, int dragSlotY, int dropSlotX, int dropSlotY) |
TradeDropItemInInventory | function TradeDropItemInInventory(int PosX, int PosY) |
TradeEquipItem | function TradeEquipItem() |
TradeMergeItemsInInventory | function TradeMergeItemsInInventory(int dropSlotItemID, int dragSlotX, int dragSlotY, int dropSlotX, int dropSlotY) |
TradeSwitchItemsFromEquipToInventory | function TradeSwitchItemsFromEquipToInventory(int itemIDinDropSlot, int dragSlotX, int dragSlotY) |
TradeSwitchItemsFromInventoryToEquip | function TradeSwitchItemsFromInventoryToEquip(int itemIDinDropSlot) |
TradeSwitchItemsInEquip | function TradeSwitchItemsInEquip(int itemIDinDropSlot) |
TradeSwitchItemsInInventory | function TradeSwitchItemsInInventory(int itemIDinDropSlot, int dragSlotX, int dragSlotY, int dropSlotX, int dropSlotY) |
TradeUnequipItem | function TradeUnequipItem(int PosX, int PosY) |
UnequipItem | function UnequipItem(int PosX, int PosY) |
Update | function Update(H7AdventureHero Hero, H7AdventureHero targetHero, optional bool isAlliedTrade = false) |
Default values¶
mBlockUnreal=true
mBlockStandardKeys=true
mAllowedStandardCommands(0)="OpenQuestLog"
mAllowedStandardCommands(1)="OpenSpellBook"
mAllowedStandardCommands(2)="OpenHeroWindow"
mAllowedStandardCommands(3)="OpenSkillWheel"
mLocaSection(0)="H7ItemAndInventory"
MovieInfo=SwfMovie'H7SceneAdventureMap.Windows.H7HeroTradeWindow'