3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 4675|回复: 21
打印 上一主题 下一主题

[资料] 关于wiki破解进展.. 23日

[复制链接]

43

主题

1418

帖子

1677

积分

游戏狂人

Rank: 6Rank: 6

贡献度
229
金元
8209
积分
1677
精华
0
注册时间
2008-5-21
跳转到指定楼层
主题
发表于 2010-2-23 11:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
原帖内容
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;


破解了..单人用户交互界面 就是多人旁边那个...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-4-3 19:09 , Processed in 0.027356 second(s), 16 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表