How to Create a New UI Screen and Main Menu Item by Mikail
Step One
- Copy "PlayMoviesScreen.lua". You can find it in "...\data\ui\NewUI".
- Rename the copied file to "MyNewScreen.lua" and paste it into the same directory.
Step Two
- Open up "UISettings.lua". You can find it in "...\data\ui\NewUI".
- Duplicate the table entry belonging to "PlayMoviesScreen".
- Change the value of the duplicated name variable,
from:
"PlayMoviesScreen"
- Change the value of the duplicated filename variable,
from:
"DATA:\\UI\\""NewUI""\\""PlayMoviesScreen.lua"##
to:
##"DATA:\\UI\\NewUI\\MyNewScreen.lua"##
- Delete the duplicated line that says:
##type = "PlayMoviesScreen",##
**__Step Three__**
- Open up "NewMainMenu.lua". You can find it in "...\data\ui\NewUI\Main\New".
- Duplicate the table entry belonging to "PlayMoviesScreen".
- Change the value of the duplicated **text** variable,
from:
##"$2608"##
to:
##"MyNewScreen"##
- Change the value of the duplicated **onMouseClicked** variable,
from:
##"UI_ShowScreen(\"PlayMoviesScreen\", eTransition)"##
to:
##"UI_ShowScreen(\"MyNewScreen\", eTransition)"##
- Delete the duplicated line that says:
##name = "btnMovies",##
**__Step Four__**
Make any changes you feel are necessary to "MyNewScreen.lua""".
Discussion:
Related Pages:
::
::