You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
803 B
22 lines
803 B
using ET.EventType; |
|
using ET.FUIBuilding; |
|
using ET.FUIMain; |
|
|
|
namespace ET |
|
{ |
|
[FriendClass(typeof(OperationComponent))] |
|
public class QuitCreateBuildingEdit_RemoveComponent : AEvent<QuitCreateBuildingEdit> |
|
{ |
|
protected override void Run(QuitCreateBuildingEdit args) |
|
{ |
|
var zoneScene = args.Unit.ZoneScene(); |
|
// 恢复正常操作 |
|
zoneScene.CurrentScene().RemoveComponent<CreateBuildingViewComponent>(); |
|
zoneScene.CurrentScene().GetComponent<OperationComponent>().Enabled = true; |
|
|
|
// 调整界面显示 |
|
zoneScene.GetComponent<FUIComponent>().HideWindow(FUI_BuildingEdit.UIResName); |
|
zoneScene.GetComponent<FUIComponent>().ShowUI<FUI_Main, FUIMainComponent>(FUIPackage.Main); |
|
} |
|
} |
|
} |