Tutorial; NewUIScreen - HWRM/KarosGraveyard GitHub Wiki

How to Create a New UI Screen and Main Menu Item by Mikali

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" to: "MyNewScreen"

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

Tutorials

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial