PDA

View Full Version : UTUIMenuList Resets On Saving?



Super_Sonic
11-12-2009, 09:10 AM
I make a uiscene and add a UTUIMenuList in it and add a few options and its fine, but when i save the file the lists ive added dissapears(not the UTUIMenuList), what am i doing wrong? Also i tried editing an existing uiscene with the menulist in it already and added another one to the list and when i saved it reverted.(everything else saves)

Super_Sonic
11-12-2009, 12:56 PM
sorry, bump.

IllpIll
11-12-2009, 02:29 PM
I think what is happening to you here is the same thing I was dealing with a year ago in the ut3 editor. That particular widget is editable in the editor but will not save your custom list wich is a bug. However within the localization folder I think is were you need to write the list within a UTGame.int text file and then set in that list widget where you stored your settings in UTGame.int

if you scroll down near the bottom in UTGame.int
there will be some list data for the main menu.
Example:

;///////////////
; Main Menu
;///////////////
[InstantAction UTUIDataProvider_MainMenuItems]
FriendlyName=Instant Action
Description=Jump right into the action with some bots.
[Multiplayer UTUIDataProvider_MainMenuItems]
FriendlyName=Multiplayer
[Exit UTUIDataProvider_MainMenuItems]
FriendlyName=Exit
Description=Exit to the desktop.
http://img52.imageshack.us/img52/3169/datastore.jpg
So if you notice the window on the left that is titled data store browser, that is the string data above in UTGame.int which is stored for the UI to utilize later on. The Settings window on the right of the UI scene has a Data tab with a text field where you link to the list data in UTGame.int.

so say you wanted your own list you would just copy and modify the data in UTGame.int

;///////////////
; My Menu
;///////////////
[Singleplayer UTUIDataProvider_MyMenuItems]
FriendlyName=Start A Singleplayer Game
Description=Jump right into the action with some bots.
[Options UTUIDataProvider_MyMenuItems]
FriendlyName=Set Your Options here
Description= Whatever you want
[Exit UTUIDataProvider_MyMenuItems]
FriendlyName=Exit My Custom Game
Description=Exit to the desktop.

Then under UTGameUI.int
find [Titles] and add
MyMainMenu=[My Menu]
then save.

Then you would return to the editor and in the data field type:
<UTMenuItems:MyMainMenu>

just to let you know I could have left out something somewhere as I have not touched the UI editor in quite a while, just poke around with these settings and experiment.

Super_Sonic
12-07-2009, 01:49 PM
Thought i better add that config/defaultgame.ini also has to be changed in a similar way if you want to add or remove more lines. oh and thanks for your help.

svcoyle
12-13-2009, 08:34 PM
Im having a similar issue i did everything mentioned in the above tutorial but my list is always blank. I did a Grep of all files containing main menu but I still see nothing in my new list. What am I missing

Super_Sonic
12-14-2009, 05:56 AM
make sure everything related to the udk like the game or the editor is closed or else it wont save the files.

IllpIll
12-14-2009, 12:07 PM
just wan't to let you know I am not a professional tutorial maker, I just recall how the data that deals with that kind of list is managed within the config and localization files. There are other types of list widgets that can get a basic list menu going but I do not know if they have the same effects and scaling as this particular widget list item.

Archasis
12-14-2009, 12:26 PM
If you want to skip all the localization stuff, you can use a UTUISimpleList or UTUISimpleMenu instead, they pretty much work the same.

HEGI
12-14-2009, 12:28 PM
Should be [MENUITEMNAME UTUIDataProvider_MainMenuItems]

UTUIDataProvider_MyMenuItems won't work unless it is registered as a custom class in the datastore under [UTGame.UTUIDataStore_MenuItems] .

Also, localization has to happen inside the utgame localization file.

[MENUITEMNAME UTUIDataProvider_MainMenuItems]
FriendlyName=MyItemName