Skip to content

H7HeroTradeWindowCntl

Class in MMH7Game · MMH7Game.H7HeroTradeWindowCntl · config

Object › GFxMoviePlayer › H7FlashMovieCntl › H7FlashMoviePopupCntl › H7ItemSlotMovieCntl › H7HeroTradeWindowCntl

Using it from Lua
h7.find_all("H7HeroTradeWindowCntl")            -- live instances
h7.find_class("MMH7Game.H7HeroTradeWindowCntl")   -- the class
h7.hook("MMH7Game.H7HeroTradeWindowCntl.AddItemIconToCursor", fn)

Properties

NameTypeNotes
dropInventoryH7GFxInventoryprotected
mAlliedTradeboolprotected
mArmy1H7AdventureArmyprotected
mArmy2H7AdventureArmyprotected
mArmy2CreaturePossesarrayprotected
mArmy2Originalarray<H7StackCount>protected
mArmyRow1H7GFxArmyRowprotected
mArmyRow2H7GFxArmyRowprotected
mDismissArmyintprotected
mDismissIndexintprotected
mHero1H7AdventureHeroprotected
mHero2H7AdventureHeroprotected
mHeroEquip1H7GFxHeroEquipprotected
mHeroEquip2H7GFxHeroEquipprotected
mHeroID1intprotected
mHeroID2intprotected
mHeroInfo1H7GFxHeroInfoprotected
mHeroInfo2H7GFxHeroInfoprotected
mHeroTradeWindowH7GFxHeroTradeWindowprotected
mInventory1H7GFxInventoryprotected
mInventory2H7GFxInventoryprotected
mInventory2ItemsPosesarray<IntPoint>protected
mTradedCreaturesarray<H7BaseCreatureStack>protected
mTradedItemPosesarray<IntPoint>protected
mTradedItemsarray<H7HeroItem>protected
mTradedWarfareUnitsarray<H7EditorWarUnit>protected
mWarfareUnitRow1H7GFxWarfareUnitRowprotected
mWarfareUnitRow2H7GFxWarfareUnitRowprotected

Functions

NameDeclaration
AddItemIconToCursorfunction AddItemIconToCursor(int ItemId, bool itemIsStackable)
AddUnitIconToCursorfunction AddUnitIconToCursor(int slotID, int armyID)
AddWarfareUnitIconToCursorfunction AddWarfareUnitIconToCursor(H7StructsAndEnumsNative.EWarUnitClass warUnitClassInt, int armyID)
BtnDoneClickedfunction BtnDoneClicked()
BtnMergeArmy1Clickedfunction BtnMergeArmy1Clicked()
BtnMergeArmy2Clickedfunction BtnMergeArmy2Clicked()
CanEquipItemfunction bool CanEquipItem(bool checkCurrentHero)
ChangeItemPosfunction ChangeItemPos(int ItemId, int X, int Y)
CheckAlliedTradeAndAddFiltersfunction CheckAlliedTradeAndAddFilters()
Closedfunction Closed()
ClosePopupfunction ClosePopup()
CompleteTransferfunction CompleteTransfer(bool Success)
DismissConfirmfunction DismissConfirm()
DismissDeniedfunction DismissDenied()
DismissStackfunction DismissStack(int unitIndex, optional int armyIndex)
DropItemInInventoryfunction DropItemInInventory(int PosX, int PosY)
EquipItemfunction bool EquipItem()
EquipItemByDoubleClickfunction bool EquipItemByDoubleClick(int ItemId)
GetHeroTradeWindowfunction H7GFxHeroTradeWindow GetHeroTradeWindow()
GetPopupfunction H7GFxUIContainer GetPopup()
GetStackCountfunction array<H7StackCount> GetStackCount(array<H7BaseCreatureStack> OldState)
GetStackCountDifffunction array<H7StackCount> GetStackCountDiff(array<H7StackCount> OldState, array<H7StackCount> NewState)
GetStatModSourceListfunction GetStatModSourceList(string statStr, int unrealID)
HasTradedConsumeableOnSlotfunction bool HasTradedConsumeableOnSlot(int dropSlotX, int dropSlotY)
Initializefunction bool Initialize()
IsHeroParticipatingInTradefunction bool IsHeroParticipatingInTrade(H7AdventureHero Hero)
IsPlayerParticipatingInTradefunction bool IsPlayerParticipatingInTrade(H7Player Player)
MergeItemsInInventoryfunction MergeItemsInInventory(int itemIDinDropSlot, int dragSlotX, int dragSlotY, int dropSlotX, int dropSlotY)
RequestTransferfunction RequestTransfer(int dragSlotIndex, int dragSlotArmyID, int dropSlotIndex, int dropSlotArmyID, optional int Amount)
RequestWarfareUnitTransferfunction RequestWarfareUnitTransfer(H7StructsAndEnumsNative.EWarUnitClass dragSlotClass, int dragSlotArmyID, H7StructsAndEnumsNative.EWarUnitClass dropSlotClass, int dropSlotArmyID)
RequestWarfareUnitTransferCompletefunction RequestWarfareUnitTransferComplete()
SetCurrentHerofunction SetCurrentHero(int ItemId)
SetDragItemByIDfunction SetDragItemByID(int ItemId)
SetEquipfunction SetEquip(int ItemId)
SetInventoryfunction SetInventory(int ItemId)
SwitchItemFromInventoryToEquipfunction SwitchItemFromInventoryToEquip(int itemIDinDropSlot, int dropSlotX, int dropSlotY)
SwitchItemsFromEquipToInventoryfunction SwitchItemsFromEquipToInventory(int itemIDinDropSlot)
SwitchItemsInEquipfunction SwitchItemsInEquip(int itemIDinDropSlot)
SwitchItemsInInventoryfunction SwitchItemsInInventory(int itemIDinDropSlot, int dragSlotX, int dragSlotY, int dropSlotX, int dropSlotY)
TradeDropItemInInventoryfunction TradeDropItemInInventory(int PosX, int PosY)
TradeEquipItemfunction TradeEquipItem()
TradeMergeItemsInInventoryfunction TradeMergeItemsInInventory(int dropSlotItemID, int dragSlotX, int dragSlotY, int dropSlotX, int dropSlotY)
TradeSwitchItemsFromEquipToInventoryfunction TradeSwitchItemsFromEquipToInventory(int itemIDinDropSlot, int dragSlotX, int dragSlotY)
TradeSwitchItemsFromInventoryToEquipfunction TradeSwitchItemsFromInventoryToEquip(int itemIDinDropSlot)
TradeSwitchItemsInEquipfunction TradeSwitchItemsInEquip(int itemIDinDropSlot)
TradeSwitchItemsInInventoryfunction TradeSwitchItemsInInventory(int itemIDinDropSlot, int dragSlotX, int dragSlotY, int dropSlotX, int dropSlotY)
TradeUnequipItemfunction TradeUnequipItem(int PosX, int PosY)
UnequipItemfunction UnequipItem(int PosX, int PosY)
Updatefunction 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'

Inherited

FromMembers
H7ItemSlotMovieCntlProperties: cursorItemID, dragItem, mCurrentHero, mHeroEquip, mInventory
Functions: AddItemIconToCursor, AddItemToCursor, CanEquipItem, ChangeItemPos, ChangeItemPosStack, ConsumePotion, DropItemInInventory, EquipItem, EquipItemByDoubleClick, isItemOnCursor, MergeItemsInInventory, RemoveItemIconFromCursor, SwitchItemsFromEquipToInventory, SwitchItemsFromInventoryToEquip, SwitchItemsInEquip, SwitchItemsInInventory, UnequipItem
H7FlashMoviePopupCntlProperties: mAllowedStandardCommands, mBlockFlash, mBlockStandardKeys, mBlockUnreal, mFullscreen, mHideSidebar, mKeybindCategory, mOpenedThisFrame, mWindowSpecificKeybinds
Functions: CanOpenPopup, Closed, ClosePopup, CreatePopupKeybind, GetPopup, Initialize, InitWindowKeyBinds, IsAllowingCommandFunction, IsBlockingFlash, IsBlockingStandardKeys, IsBlockingUnreal, IsFullscreen, IsHidingSidebar, KeybindUsedByPopup, OpenPopup, PutPopupIntoQueue, QueueFinished, ResetOpenedThisFrame, WasOpenedThisFrame, WriteUserKeysInto
H7FlashMovieCntlProperties: mContainer, mFlashController, mFlashHeight, mFlashWidth, mIsDragginUnit, mIsShowingBlocklayer, mLocaSection, mPlayerController, mRootMC, mWasCanceled, mWasInitialized
Functions: AdvanceDebug, AnyKeyPressed, AnyKeyReleased, CanBeStopped, CaptureMouseWheel, ClosePopup, DisableMouse, EnableMouse, FlashLocalize, FlashPixels2UnrealPixels, GetAssetPath, GetAttributeIconStrings, GetContainer, GetFlashController, GetFlashPath, GetFlashSize, GetGUIColor, GetHUD, GetMagicTierSymbol, GetRadioButtonSymbolPath, GetRoot, GetSettingBool, GetSettingEnum, GetSettingNumber, HighlightClicked, Initialize, IsDraggingUnit, IsMovieSkippedLastFrame, IsRemoveWhenClicked, IsRightClickThisFrame, IsRightMouseDown, IsShiftDown, Log, MouseOut, MouseOver, OpenHeropediaWithCreature, OpenHeropediaWithHero, PlayGUISound, RequestBlockBelow, RequestFocus, RequestRealFocus, RequestUnBlockBelow, SetConstraints, SetInitialized, SetPlayerOwner, SetWasCanceled, Start, StartAdvance, StopAdvance, StopAdvanceReally, StopInput, Unreal, UnrealColorToFlashColor, UnrealColorToHex, UnrealColorToHTMLColor, UnrealPixels2FlashPixels, WaiveFocus, WaiveRealFocus, WasInitialized
GFxMoviePlayer47 properties, 76 functions
Object13 properties, 308 functions