Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

KFGui.KFTab_BuyMenu

Extends
UT2K4TabPanel

Core.Object
|   
+-- XInterface.GUI
   |   
   +-- XInterface.GUIComponent
      |   
      +-- XInterface.GUIMultiComponent
         |   
         +-- XInterface.GUIPanel
            |   
            +-- XInterface.GUITabPanel
               |   
               +-- XInterface.UT2K4TabPanel
                  |   
                  +-- KFGui.KFTab_BuyMenu

Direct Known Subclasses:

KFTab_BuyMenu_Story

Variables Summary
GUIImageAmmoExitBG
GUIButtonAutoFillButton
floatAutoFillCost
stringAutoFillString
GUIImageBankNote
boolbClosed
boolbDidBuyableUpdate
stringBuyBodyArmorCaption
GUIButtonExitButton
GUIImageFillBG
GUILabelFillLabel
GUIImageInfoBG
GUIScrollTextBoxInfoScrollText
stringInfoText[5]
GUIImageInvBG
KFBuyMenuInvListBoxInvSelect
GUIImageItemBG
GUIBuyWeaponInfoPanelItemInfo
GUIBuyableLastBuyable
GUIImageMagBG
GUILabelMagLabel
GUIImageMoneyBG
stringMoneyCaption
GUILabelMoneyLabel
array<KFAmmunition>MyAmmos
class<Pickup>OldPickupClass
GUIButtonPurchaseButton
stringRepairBodyArmorCaption
GUIImageSaleBG
GUIButtonSaleButton
KFBuyMenuSaleListBoxSaleSelect
intSaleSelectPrevIndex
stringSaleValueCaption
GUILabelSaleValueLabel
GUIImageSaleValueLabelBG
GUILabelSelectedItemLabel
GUIBuyableTheBuyable
SoundGroupTraderSoundTooExpensive
intUpdateCount
Inherited Variables from XInterface.GUITabPanel
bFillHeight, FadeInTime, MyButton, PanelCaption

Functions Summary
event Closed (GUIComponent Sender, bool bCancelled))
function DoBuy ()))
function DoBuyClip (GUIBuyable Buyable))
function DoBuyFirstAid ()))
function DoBuyGrenade (bool bSingle))
function DoBuyKevlar ()))
function DoFillAllAmmo ()))
function DoFillOneAmmo (GUIBuyable Buyable))
function DoSell ()))
functionint FindAmmoCost (Class<Ammunition> AClass))
functionint FindCheapestAmmo ()))
function GetUpdatedBuyable (optional bool bSetInvIndex))
function InitComponent (GUIController MyController, GUIComponent MyOwner))
functionbool InternalOnClick (GUIComponent Sender))
function InvChange (GUIComponent Sender))
functionbool InvDblClick (GUIComponent Sender))
functionbool IsInInventory (class<Pickup> Item))
functionbool IsLocked (GUIBuyable buyable))
function MakeSomeBuyNoise (optional class<Pickup> PickupClass))
function OnAnychange ()))
event Opened (GUIComponent Sender ))
function OptionsChange (GUIComponent Sender))
function SaleChange (GUIComponent Sender))
functionbool SaleDblClick (GUIComponent Sender))
function SetInfoText ()))
function ShowPanel (bool bShow))
function Timer ()))
function UpdateAll ()))
function UpdateAutoFillAmmo ()))
function UpdateBuySellButtons ()))
function UpdateCheck ()))
function UpdatePanel ()))
Inherited Functions from XInterface.GUITabPanel
CanShowPanel, Free, InitPanel, OnDestroyPanel, Refresh, ShowPanel


Variables Detail

AmmoExitBG Source code

var automated GUIImage AmmoExitBG;

AutoFillButton Source code

var automated GUIButton AutoFillButton;

AutoFillCost Source code

var float AutoFillCost;

AutoFillString Source code

var localized string AutoFillString;

BankNote Source code

var automated GUIImage BankNote;

bClosed Source code

var bool bClosed;

bDidBuyableUpdate Source code

var bool bDidBuyableUpdate;

BuyBodyArmorCaption Source code

var localized string BuyBodyArmorCaption;

ExitButton Source code

var automated GUIButton ExitButton;

FillBG Source code

var automated GUIImage FillBG;

FillLabel Source code

var automated GUILabel FillLabel;

InfoBG Source code

var automated GUIImage InfoBG;

InfoScrollText Source code

var automated GUIScrollTextBox InfoScrollText;

InfoText[5] Source code

var localized string InfoText[5];

InvBG Source code

var automated GUIImage InvBG;

InvSelect Source code

var automated KFBuyMenuInvListBox InvSelect;

ItemBG Source code

var automated GUIImage ItemBG;

ItemInfo Source code

var automated GUIBuyWeaponInfoPanel ItemInfo;

LastBuyable Source code

var GUIBuyable LastBuyable;

MagBG Source code

var automated GUIImage MagBG;

MagLabel Source code

var automated GUILabel MagLabel;

MoneyBG Source code

var automated GUIImage MoneyBG;

MoneyCaption Source code

var localized string MoneyCaption;

MoneyLabel Source code

var automated GUILabel MoneyLabel;

MyAmmos Source code

var array<KFAmmunition> MyAmmos;

OldPickupClass Source code

var class<Pickup> OldPickupClass;

PurchaseButton Source code

var automated GUIButton PurchaseButton;

RepairBodyArmorCaption Source code

var localized string RepairBodyArmorCaption;

SaleBG Source code

var automated GUIImage SaleBG;

SaleButton Source code

var automated GUIButton SaleButton;

SaleSelect Source code

var automated KFBuyMenuSaleListBox SaleSelect;

SaleSelectPrevIndex Source code

var int SaleSelectPrevIndex;

SaleValueCaption Source code

var localized string SaleValueCaption;

SaleValueLabel Source code

var automated GUILabel SaleValueLabel;

SaleValueLabelBG Source code

var automated GUIImage SaleValueLabelBG;

SelectedItemLabel Source code

var automated GUILabel SelectedItemLabel;

TheBuyable Source code

var GUIBuyable TheBuyable;

TraderSoundTooExpensive Source code

var SoundGroup TraderSoundTooExpensive;

UpdateCount Source code

var int UpdateCount;


Functions Detail

Closed Source code

event Closed ( GUIComponent Sender, bool bCancelled) )

DoBuy Source code

function DoBuy ( ) )

DoBuyClip Source code

function DoBuyClip ( GUIBuyable Buyable) )

DoBuyFirstAid Source code

function DoBuyFirstAid ( ) )

DoBuyGrenade Source code

function DoBuyGrenade ( bool bSingle) )

DoBuyKevlar Source code

function DoBuyKevlar ( ) )

DoFillAllAmmo Source code

function DoFillAllAmmo ( ) )

DoFillOneAmmo Source code

function DoFillOneAmmo ( GUIBuyable Buyable) )

DoSell Source code

function DoSell ( ) )

FindAmmoCost Source code

function int FindAmmoCost ( Class<Ammunition> AClass) )

FindCheapestAmmo Source code

function int FindCheapestAmmo ( ) )

GetUpdatedBuyable Source code

function GetUpdatedBuyable ( optional bool bSetInvIndex) )

InitComponent Source code

function InitComponent ( GUIController MyController, GUIComponent MyOwner) )

InternalOnClick Source code

function bool InternalOnClick ( GUIComponent Sender) )

InvChange Source code

function InvChange ( GUIComponent Sender) )

InvDblClick Source code

function bool InvDblClick ( GUIComponent Sender) )

IsInInventory Source code

function bool IsInInventory ( class<Pickup> Item) )

IsLocked Source code

function bool IsLocked ( GUIBuyable buyable) )

MakeSomeBuyNoise Source code

function MakeSomeBuyNoise ( optional class<Pickup> PickupClass) )

OnAnychange Source code

function OnAnychange ( ) )

Opened Source code

event Opened ( GUIComponent Sender ) )

OptionsChange Source code

function OptionsChange ( GUIComponent Sender) )

SaleChange Source code

function SaleChange ( GUIComponent Sender) )

SaleDblClick Source code

function bool SaleDblClick ( GUIComponent Sender) )

SetInfoText Source code

function SetInfoText ( ) )

ShowPanel Source code

function ShowPanel ( bool bShow) )

Timer Source code

function Timer ( ) )

UpdateAll Source code

function UpdateAll ( ) )

UpdateAutoFillAmmo Source code

function UpdateAutoFillAmmo ( ) )

UpdateBuySellButtons Source code

function UpdateBuySellButtons ( ) )

UpdateCheck Source code

function UpdateCheck ( ) )

UpdatePanel Source code

function UpdatePanel ( ) )


Defaultproperties

defaultproperties
{
     Begin Object Class=GUIImage Name=Inv
         Image=Texture'KF_InterfaceArt_tex.Menu.Thick_border_Transparent'
         ImageStyle=ISTY_Stretched
         Hint="The items in your inventory"
         WinTop=-0.003371
         WinLeft=-0.004500
         WinWidth=0.336905
         WinHeight=0.752000
     End Object
     InvBG=GUIImage'KFGui.KFTab_BuyMenu.Inv'


     Begin Object Class=GUIButton Name=SaleB
         Caption="Sell Weapon"
         Hint="Sell selected weapon"
         WinTop=0.004750
         WinLeft=0.000394
         WinWidth=0.162886
         WinHeight=35.000000
         RenderWeight=0.450000
         OnClick=KFTab_BuyMenu.InternalOnClick
         OnKeyEvent=SaleB.InternalOnKeyEvent
     End Object
     SaleButton=GUIButton'KFGui.KFTab_BuyMenu.SaleB'


     Begin Object Class=GUIImage Name=MagB
         Image=Texture'KF_InterfaceArt_tex.Menu.Innerborder_transparent'
         ImageStyle=ISTY_Stretched
         WinTop=0.011072
         WinLeft=0.205986
         WinWidth=0.054624
         WinHeight=25.000000
         RenderWeight=0.500000
     End Object
     MagBG=GUIImage'KFGui.KFTab_BuyMenu.MagB'


     Begin Object Class=GUIImage Name=FillB
         Image=Texture'KF_InterfaceArt_tex.Menu.Innerborder_transparent'
         ImageStyle=ISTY_Stretched
         WinTop=0.011572
         WinLeft=0.266769
         WinWidth=0.054624
         WinHeight=25.000000
         RenderWeight=0.500000
     End Object
     FillBG=GUIImage'KFGui.KFTab_BuyMenu.FillB'


     Begin Object Class=GUILabel Name=MagL
         Caption="1 Mag"
         TextAlign=TXTA_Center
         TextColor=(B=158,G=176,R=175)
         TextFont="UT2SmallFont"
         FontScale=FNS_Small
         WinTop=0.011072
         WinLeft=0.205986
         WinWidth=0.054624
         WinHeight=25.000000
         RenderWeight=0.510000
     End Object
     MagLabel=GUILabel'KFGui.KFTab_BuyMenu.MagL'


     Begin Object Class=GUILabel Name=FillL
         Caption="Fill"
         TextAlign=TXTA_Center
         TextColor=(B=158,G=176,R=175)
         TextFont="UT2SmallFont"
         FontScale=FNS_Small
         WinTop=0.011572
         WinLeft=0.266769
         WinWidth=0.054624
         WinHeight=25.000000
         RenderWeight=0.510000
     End Object
     FillLabel=GUILabel'KFGui.KFTab_BuyMenu.FillL'


     Begin Object Class=KFBuyMenuInvListBox Name=InventoryBox
         OnCreateComponent=InventoryBox.InternalOnCreateComponent
         WinTop=0.070841
         WinLeft=0.000108
         WinWidth=0.328204
         WinHeight=0.521856
     End Object
     InvSelect=KFBuyMenuInvListBox'KFGui.KFTab_BuyMenu.InventoryBox'


     Begin Object Class=GUIImage Name=MoneyBack
         Image=Texture'KF_InterfaceArt_tex.Menu.Thin_border_Transparent'
         ImageStyle=ISTY_Stretched
         Hint="Your Money"
         WinTop=-0.003371
         WinLeft=0.332571
         WinWidth=0.333947
         WinHeight=0.137855
     End Object
     MoneyBG=GUIImage'KFGui.KFTab_BuyMenu.MoneyBack'


     Begin Object Class=GUILabel Name=SelectedItemL
         Caption="Selected Item Info"
         TextAlign=TXTA_Center
         TextColor=(B=158,G=176,R=175)
         TextFont="UT2SmallFont"
         FontScale=FNS_Small
         WinTop=0.141451
         WinLeft=0.332571
         WinWidth=0.333947
         WinHeight=20.000000
         RenderWeight=0.510000
     End Object
     SelectedItemLabel=GUILabel'KFGui.KFTab_BuyMenu.SelectedItemL'


     Begin Object Class=GUIImage Name=Item
         Image=Texture'KF_InterfaceArt_tex.Menu.Med_border_Transparent'
         ImageStyle=ISTY_Stretched
         Hint="Your selected item"
         WinTop=0.134311
         WinLeft=0.332571
         WinWidth=0.333947
         WinHeight=0.614680
     End Object
     ItemBG=GUIImage'KFGui.KFTab_BuyMenu.Item'


     Begin Object Class=GUIBuyWeaponInfoPanel Name=ItemInf
         WinTop=0.193730
         WinLeft=0.332571
         WinWidth=0.333947
         WinHeight=0.489407
     End Object
     ItemInfo=GUIBuyWeaponInfoPanel'KFGui.KFTab_BuyMenu.ItemInf'


     Begin Object Class=GUIImage Name=Sale
         Image=Texture'KF_InterfaceArt_tex.Menu.Thick_border_Transparent'
         ImageStyle=ISTY_Stretched
         Hint="These items are available in the shop"
         WinTop=-0.003371
         WinLeft=0.667306
         WinWidth=0.335919
         WinHeight=0.752000
     End Object
     SaleBG=GUIImage'KFGui.KFTab_BuyMenu.Sale'


     Begin Object Class=GUIButton Name=PurchaseB
         Caption="Purchase Weapon"
         Hint="Buy selected weapon"
         WinTop=0.004750
         WinLeft=0.729647
         WinWidth=0.220714
         WinHeight=35.000000
         RenderWeight=0.450000
         OnClick=KFTab_BuyMenu.InternalOnClick
         OnKeyEvent=PurchaseB.InternalOnKeyEvent
     End Object
     PurchaseButton=GUIButton'KFGui.KFTab_BuyMenu.PurchaseB'


     Begin Object Class=KFBuyMenuSaleListBox Name=SaleBox
         OnCreateComponent=SaleBox.InternalOnCreateComponent
         WinTop=0.064312
         WinLeft=0.672632
         WinWidth=0.325857
         WinHeight=0.674039
     End Object
     SaleSelect=KFBuyMenuSaleListBox'KFGui.KFTab_BuyMenu.SaleBox'


     Begin Object Class=GUIButton Name=AutoFill
         Caption="Auto Fill Ammo"
         Hint="Fills Up All Weapons"
         WinTop=0.805073
         WinLeft=0.725646
         WinWidth=0.220714
         WinHeight=0.050852
         RenderWeight=0.450000
         OnClick=KFTab_BuyMenu.InternalOnClick
         OnKeyEvent=AutoFill.InternalOnKeyEvent
     End Object
     AutoFillButton=GUIButton'KFGui.KFTab_BuyMenu.AutoFill'


     Begin Object Class=GUIButton Name=Exit
         Caption="Exit Trader Menu"
         Hint="Close The Trader Menu"
         WinTop=0.887681
         WinLeft=0.725646
         WinWidth=0.220714
         WinHeight=0.050852
         RenderWeight=0.450000
         OnClick=KFTab_BuyMenu.InternalOnClick
         OnKeyEvent=Exit.InternalOnKeyEvent
     End Object
     ExitButton=GUIButton'KFGui.KFTab_BuyMenu.Exit'


     Begin Object Class=GUIImage Name=Info
         Image=Texture'KF_InterfaceArt_tex.Menu.Thin_border'
         ImageStyle=ISTY_Stretched
         Hint="Trader Informations"
         WinTop=0.746753
         WinLeft=-0.004500
         WinWidth=0.670457
         WinHeight=0.179353
     End Object
     InfoBG=GUIImage'KFGui.KFTab_BuyMenu.Info'


     Begin Object Class=GUIScrollTextBox Name=IScrollText
         CharDelay=0.005000
         EOLDelay=0.007500
         RepeatDelay=0.000000
         OnCreateComponent=IScrollText.InternalOnCreateComponent
         StyleName="TraderNoBackground"
         WinTop=0.758244
         WinLeft=0.004946
         WinWidth=0.651687
         WinHeight=0.160580
         bBoundToParent=True
         bScaleToParent=True
     End Object
     InfoScrollText=GUIScrollTextBox'KFGui.KFTab_BuyMenu.IScrollText'


     Begin Object Class=GUILabel Name=Money
         Caption="£123456"
         TextColor=(B=158,G=176,R=175)
         TextFont="UT2HeaderFont"
         FontScale=FNS_Large
         WinTop=0.035524
         WinLeft=0.516045
         WinWidth=0.144797
         WinHeight=0.058675
     End Object
     MoneyLabel=GUILabel'KFGui.KFTab_BuyMenu.Money'


     Begin Object Class=GUIImage Name=Cash
         Image=Texture'PatchTex.Statics.BanknoteSkin'
         ImageStyle=ISTY_Scaled
         WinTop=0.026828
         WinLeft=0.393095
         WinWidth=0.107313
         WinHeight=0.077172
     End Object
     BankNote=GUIImage'KFGui.KFTab_BuyMenu.Cash'


     Begin Object Class=GUILabel Name=SaleValue
         TextAlign=TXTA_Center
         TextColor=(B=158,G=176,R=175)
         TextFont="UT2LargeFont"
         FontScale=FNS_Large
         WinTop=0.675470
         WinLeft=0.337502
         WinWidth=0.325313
         WinHeight=0.059661
     End Object
     SaleValueLabel=GUILabel'KFGui.KFTab_BuyMenu.SaleValue'


     Begin Object Class=GUIImage Name=SaleValueBG
         Image=Texture'KF_InterfaceArt_tex.Menu.Innerborder_transparent'
         ImageStyle=ISTY_Stretched
         WinTop=0.678411
         WinLeft=0.370054
         WinWidth=0.256263
         WinHeight=0.053742
     End Object
     SaleValueLabelBG=GUIImage'KFGui.KFTab_BuyMenu.SaleValueBG'


     InfoText(0)="Welcome to my shop! You can buy ammo or sell from your inventory on the left. Or you can buy new items from the right."
     InfoText(1)="Item is too heavy! It requires %1 free weight blocks, you only have %2 free. Sell some of your inventory!"
     InfoText(2)="Item is too expensive! Ask some blokes to spare some money or sell some of your inventory!"
     InfoText(3)="Select an item or option"
     AutoFillString="Auto Fill Ammo"
     MoneyCaption="£"
     SaleValueCaption="Sell Value: £"
     RepairBodyArmorCaption="Repair £"
     BuyBodyArmorCaption="Buy £"
     TraderSoundTooExpensive=SoundGroup'KF_Trader.TooExpensive'
     Begin Object Class=GUIImage Name=AmmoExit
         Image=Texture'KF_InterfaceArt_tex.Menu.Thin_border'
         ImageStyle=ISTY_Stretched
         WinTop=0.746753
         WinLeft=0.666905
         WinWidth=0.335919
         WinHeight=0.252349
     End Object
     AmmoExitBG=GUIImage'KFGui.KFTab_BuyMenu.AmmoExit'


     PropagateVisibility=False
     WinTop=0.125000
     WinLeft=0.250000
     WinWidth=0.500000
     WinHeight=0.750000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Fri 13-10-2023 03:18:47.587 - Created with UnCodeX