I am in the process of converting a main game UI that uses the old UE3 system over to use GFx, but I know very little about Actionscript and am muddling through figuring out how AS and UScript interact.
My main issue at the moment is getting my Lists to read in the datastores I have set up. This worked pretty well the old way with this:
The threads that asked something similar previously here didn't seem to get an answer so I'm trying. How the heck do I attach the datastore to a GFx list?
-John
My main issue at the moment is getting my Lists to read in the datastores I have set up. This worked pretty well the old way with this:
Code:
function InitDataStores() { local DataStoreClient DSClient; local int Idx; DSClient = class'UIInteraction'.static.GetDataStoreClient(); if (DSClient == none) return; WeaponsDataStore = GBOUIDataStore_Weapons(DSClient.FindDataStore(class'GBOUIDataStore_Weapons'.default.Tag)); if (WeaponsDataStore != None) return; else WeaponsDataStore = DSClient.CreateDataStore(class'GBOUIDataStore_Weapons'); if (WeaponsDataStore != None) DSClient.RegisterDataStore(WeaponsDataStore); MenuItemDataStore = UTUIDataStore_MenuItems(DSClient.FindDataStore('UTMenuItems')); MenuItemDataStore.GetProviderSet('WeaponName', WeaponProvider); if(WeaponProvider.Length == 0) return; for(Idx=0; Idx<WeaponProvider.length; Idx++) { if (GBOUIDataProvider_Weapons(WeaponProvider[Idx]).WeaponType == "AR") WeaponsDataStore.AddStr('AvailableWeapon', GBOUIDataProvider_Weapons(WeaponProvider[Idx]).FriendlyName, false); } }
-John
Comment