游戏狂人
 
- 贡献度
- 229
- 金元
- 8209
- 积分
- 1677
- 精华
- 0
- 注册时间
- 2008-5-21
|
原帖内容
usmc23 - singleplayer UI hacking wiki
The singleplayer UI art assets are in here: core.sc2mod/base.sc2data under the UI folder. The singleplayer UI doesn't use actionscripts for native event calling but rather XML scripts called .Sc2Layout. The SWF's in the are mostlly for eyecandy but may have some other purpose as well. The button names in the XML determine what the button does, these event are hard coded in the exe.
Singleplayer in the final game will only be able to be accessed through the battle.net user interface. The battle.net.gfx has the singleplayer button seems to have the actionscript code either missing or hidden.
When the beta first got leaked i first tried replacing the xml code from the ScreenMainMenu.Sc2Layout, to BattleUI.sc2layout. The buttons show up but dont work because they dont have focus.
To enable the singleplayer button you do open up the debug console and type this.
set _root.DashBoard.m_navigationPanel.m_singlePlayerButton._disabled=false
This has been common knownlege for awhile but we call up anyother menu we want by doing this:
eval LIBRARY.Browser.Browser.Load(“Browser”, “UI/Flash/Glue/S2MainMenu.swf”, undefined, undefined, undefined, 0).
The last integer paremetor when changed adds different backgrounds for the UI, but the problem is this function creates a non fullscreen UI and doesnt call the actionscript inside of the SWF. But loads the SC2BetaLogo transition, found in the swf.
We can compile ALL the singleplayer SWF's with the softhink decompiler and open them in flash.
We have also found out some buttons/UI's are just offscreen when there not in focus, for example type this into console:
eval LIBRARY.Browser.Browser.Load(“Browser”, “UI/Flash/Glue/S2SoloPlay.swf”, undefined, undefined, undefined, 1, 1); set _level0.DashBoard.m_browser.m_target2.m_loader.loader1.m_soloPlayMenu._y=0;
破解了..单人用户交互界面 就是多人旁边那个... |
|