|
@@ -34,13 +34,13 @@ namespace GFGGame
|
|
|
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
- base.OnShown();
|
|
|
- StudioProxy.ReqStudioInfos().Coroutine();
|
|
|
- int isopen = 1;// FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioMetalView).FullName) ? 1 : 0;
|
|
|
+ base.OnShown();//1;//
|
|
|
+ // StudioProxy.ReqStudioInfos().Coroutine();
|
|
|
+ int isopen = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioMetalView).FullName) ? 1 : 0;
|
|
|
_ui.m_comMetal.m_c1.selectedIndex = isopen;
|
|
|
- //isopen = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioFabricView).FullName) ? 1 : 0; ;
|
|
|
+ isopen = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioFabricView).FullName) ? 1 : 0; ;
|
|
|
_ui.m_comFabric.m_c1.selectedIndex = isopen;
|
|
|
- // isopen = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioPropertyView).FullName) ? 1 : 0;
|
|
|
+ isopen = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioPropertyView).FullName) ? 1 : 0;
|
|
|
_ui.m_comProperty.m_c1.selectedIndex = isopen;
|
|
|
}
|
|
|
|
|
@@ -56,15 +56,15 @@ namespace GFGGame
|
|
|
|
|
|
private void OnClickComMetal()
|
|
|
{
|
|
|
- ViewManager.Show<StudioMetalView>(null, new object[] { typeof(StudioView).Name, this.viewData });
|
|
|
+ ViewManager.Show<StudioMetalView>(new object[] { 0, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
|
|
|
}
|
|
|
private void OnCliclComFabric()
|
|
|
{
|
|
|
- ViewManager.Show<StudioFabricView>(null, new object[] { typeof(StudioView).Name, this.viewData });
|
|
|
+ ViewManager.Show<StudioFabricView>(new object[] { 0, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
|
|
|
}
|
|
|
private void OnComProperty()
|
|
|
{
|
|
|
- ViewManager.Show<StudioPropertyView>(null, new object[] { typeof(StudioView).Name, this.viewData });
|
|
|
+ ViewManager.Show<StudioPropertyView>(new object[] { 0, 1 }, new object[] { typeof(StudioView).Name, this.viewData });
|
|
|
}
|
|
|
private void OnClickComFilling()
|
|
|
{
|