Skip to content

H7MerchantPopUpCntl

Class in MMH7Game · MMH7Game.H7MerchantPopUpCntl · config

Object › GFxMoviePlayer › H7FlashMovieCntl › H7FlashMoviePopupCntl › H7ItemSlotMovieCntl › H7MerchantPopUpCntl

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

Properties

NameTypeNotes
mBuyPriceMultiplicatorfloat
mHeroInfoH7GFxUIContainerprotected
mMarketH7BlackMarketprotected
mMerchantH7Merchantprotected
mMerchantPopUpH7GFxMerchantPopUpprotected
mSellPriceMultiplicatorfloat
mTownH7Townprotected

Functions

NameDeclaration
BtnBuyClickedfunction BtnBuyClicked(int ItemId)
BtnSellClickedfunction BtnSellClicked(int itemToSellID)
CanSpendfunction bool CanSpend(int ItemId)
ClosePopupfunction ClosePopup()
EquipItemByDoubleClickfunction bool EquipItemByDoubleClick(int ItemId)
GetBuyPriceMultiplicatorfunction float GetBuyPriceMultiplicator()
GetHeroEquipfunction H7GFxHeroEquip GetHeroEquip()
GetInventoryfunction H7GFxInventory GetInventory()
GetItemSellPriceByIDfunction int GetItemSellPriceByID(int ItemId)
GetMerchantfunction H7Merchant GetMerchant()
GetMerchantPopUpfunction H7GFxMerchantPopUp GetMerchantPopUp()
GetPopupfunction H7GFxUIContainer GetPopup()
GetSellPriceMultiplicatorfunction float GetSellPriceMultiplicator()
GetStatModSourceListfunction GetStatModSourceList(string statStr, int unrealID)
Initializefunction bool Initialize()
ShowHeroItemsfunction ShowHeroItems(bool garrisonHeroItems)
Updatefunction Update(H7Town Town)
UpdateFromMerchantfunction UpdateFromMerchant(H7AdventureHero Hero, H7Merchant merchant)
UpdateFromSellCommandfunction UpdateFromSellCommand()

Default values

mBlockUnreal=true
mLocaSection(0)="H7ItemAndInventory"
mLocaSection(1)="H7ArtifactRecycler"
MovieInfo=SwfMovie'H7SceneAdventureMap.PopUps.H7MerchantPopUp'

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