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
var float AutoFillCost;
var localized string AutoFillString;
var bool bClosed;
var bool bDidBuyableUpdate;
var localized string BuyBodyArmorCaption;
var localized string InfoText[5];
var localized string MoneyCaption;
var
class<
Pickup> OldPickupClass;
RepairBodyArmorCaption Source code
var localized string RepairBodyArmorCaption;
var int SaleSelectPrevIndex;
var localized string SaleValueCaption;
var automated
GUIImage SaleValueLabelBG;
var automated
GUILabel SelectedItemLabel;
TraderSoundTooExpensive Source code
var int UpdateCount;
function DoBuy ( ) )
function DoBuyFirstAid ( ) )
function DoBuyGrenade ( bool bSingle) )
function DoBuyKevlar ( ) )
function DoFillAllAmmo ( ) )
function DoSell ( ) )
function
int FindAmmoCost (
Class<
Ammunition>
AClass) )
function int FindCheapestAmmo ( ) )
function GetUpdatedBuyable ( optional bool bSetInvIndex) )
function
bool IsInInventory (
class<
Pickup>
Item) )
function MakeSomeBuyNoise ( optional
class<
Pickup> PickupClass) )
function OnAnychange ( ) )
function SetInfoText ( ) )
function ShowPanel ( bool bShow) )
function Timer ( ) )
function UpdateAll ( ) )
function UpdateAutoFillAmmo ( ) )
function UpdateBuySellButtons ( ) )
function UpdateCheck ( ) )
function UpdatePanel ( ) )
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
}
|
Creation time: Fri 13-10-2023 03:18:47.587 - Created with
UnCodeX