Ticket #1338: learn_to_play_in_game.patch
File learn_to_play_in_game.patch, 1.4 KB (added by , 12 years ago) |
---|
-
binaries/data/mods/public/gui/session/menu.js
9 9 const MARGIN = 4; 10 10 11 11 // Includes the main menu button 12 const NUM_BUTTONS = 7;12 const NUM_BUTTONS = 8; 13 13 14 14 // Regular menu buttons 15 15 const BUTTON_HEIGHT = 32; … … 257 257 closeSettings(false); 258 258 } 259 259 260 function learnToPlayMenuButton() 261 { 262 closeMenu(); 263 closeOpenDialogs(); 264 pauseGame(); 265 Engine.PushGuiPage("page_manual.xml", {"page": "intro"}); 266 } 260 267 268 261 269 // Temporarily adding this here 262 270 //function playButtonSound() 263 271 //{ -
binaries/data/mods/public/gui/session/session.xml
486 486 <object name="pauseButtonText" type="text" style="CenteredButtonText" ghost="true">Pause</object> 487 487 <action on="Press">togglePause();</action> 488 488 </object> 489 490 <!-- Learn to play button --> 491 <object type="button" 492 name="learnToPlayButton" 493 style="StoneButtonFancy" 494 size="0 192 100% 220" 495 tooltip_style="sessionToolTip" 496 > 497 Learn To Play 498 <action on="Press">learnToPlayMenuButton();</action> 499 </object> 489 500 </object> 490 501 </object> 491 502