ObjectManagerWindow.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. using System;
  2. using System.Collections.Generic;
  3. using I2.Loc;
  4. using UnityEngine;
  5. using wf;
  6. public class ObjectManagerWindow : BaseMaidPhotoWindow
  7. {
  8. public override void Awake()
  9. {
  10. base.Awake();
  11. this.camera_move_support_ = base.gameObject.AddComponent<WfCameraMoveSupport>();
  12. this.scroll_view_ = NGUITools.FindInParents<UIScrollView>(this.Grid.transform);
  13. EventDelegate.Add(this.CameraFocusButton.onClick, new EventDelegate.Callback(this.OnClickCameraFocus));
  14. this.VisibleCheckButton.onClick.Add(delegate(WFCheckBox check_box)
  15. {
  16. if (this.select_trans_target_ != null && this.select_trans_target_.obj != null)
  17. {
  18. this.select_trans_target_.obj.SetActive(check_box.check);
  19. }
  20. });
  21. EventDelegate.Add(this.RemoveButton.onClick, delegate()
  22. {
  23. if (this.select_trans_target_.obj == null || this.select_trans_target_.type == PhotoTransTargetObject.Type.BG)
  24. {
  25. return;
  26. }
  27. this.createBgObjectWindow.RemoveObject(this.select_trans_target_.obj);
  28. });
  29. this.CheckCreateWindowVisible.onClick.Add(delegate(WFCheckBox check_box)
  30. {
  31. this.createBgObjectWindow.visible = check_box.check;
  32. if (check_box.check)
  33. {
  34. this.CheckAttacWindowVisible.check = false;
  35. this.AttachPointWindow.visible = false;
  36. }
  37. });
  38. this.createBgObjectWindow.GetButtonOnClickEventList(BasePhotoSubWindow.BtnType.End).Add(delegate
  39. {
  40. this.CheckCreateWindowVisible.check = false;
  41. foreach (Action<WFCheckBox> action in this.CheckCreateWindowVisible.onClick)
  42. {
  43. action(this.CheckCreateWindowVisible);
  44. }
  45. });
  46. this.createBgObjectWindow.SetButtonEnabled(BasePhotoSubWindow.BtnType.End, true, false);
  47. this.AttachPointWindow.onStateTextChangeEvent = delegate(string text)
  48. {
  49. this.AttachPointStateLabel.text = text;
  50. if (Product.supportMultiLanguage)
  51. {
  52. string termPrefix = string.Empty;
  53. string term;
  54. if (text.LastIndexOf(" : ") != -1)
  55. {
  56. int num = text.LastIndexOf(" : ") + 3;
  57. termPrefix = text.Substring(0, num);
  58. term = "ScenePhotoMode/アタッチポイント/" + text.Substring(num);
  59. }
  60. else
  61. {
  62. term = "ScenePhotoMode/アタッチポイント/" + text;
  63. }
  64. Localize component = this.AttachPointStateLabel.GetComponent<Localize>();
  65. if (component != null)
  66. {
  67. component.TermPrefix = termPrefix;
  68. component.SetTerm(term);
  69. }
  70. }
  71. };
  72. this.AttachPointWindow.gameObject.SetActive(true);
  73. WFCheckBox checkAttacWindowVisible = this.CheckAttacWindowVisible;
  74. bool flag = false;
  75. this.CheckAttacWindowVisible.enabled = flag;
  76. checkAttacWindowVisible.check = flag;
  77. this.AttachPointWindow.SetButtonEnabled(BasePhotoSubWindow.BtnType.End, true, false);
  78. this.AttachPointWindow.GetButtonOnClickEventList(BasePhotoSubWindow.BtnType.End).Add(delegate
  79. {
  80. this.CheckAttacWindowVisible.check = false;
  81. foreach (Action<WFCheckBox> action in this.CheckAttacWindowVisible.onClick)
  82. {
  83. action(this.CheckAttacWindowVisible);
  84. }
  85. });
  86. this.CheckAttacWindowVisible.onClick.Add(delegate(WFCheckBox check_box)
  87. {
  88. this.AttachPointWindow.visible = check_box.check;
  89. if (check_box.check)
  90. {
  91. this.CheckCreateWindowVisible.check = false;
  92. this.createBgObjectWindow.visible = false;
  93. }
  94. });
  95. this.PartsTransForm.onChangeAxisVisibleType.Add(new Action(this.OnChangeAxisVisibleType));
  96. this.target_list_.Add(new PhotoTransTargetObject(null, "選択なし", "ScenePhotoMode/選択なし", PhotoTransTargetObject.Type.Maid, Vector2.zero));
  97. this.CreateTabButton(this.Grid.gameObject, this.target_list_[0]);
  98. this.TabPanel.UpdateChildren();
  99. this.TabPanel.Select(this.Grid.GetChild(0).gameObject.GetComponent<UIWFTabButton>());
  100. this.Grid.sorting = UIGrid.Sorting.Vertical;
  101. Utility.ResetNGUI(this.Grid);
  102. Utility.ResetNGUI(this.scroll_view_);
  103. this.UpdateChildren();
  104. }
  105. public override void Start()
  106. {
  107. base.Start();
  108. this.AttachPointWindow.gameObject.SetActive(false);
  109. }
  110. public new void Update()
  111. {
  112. if (Input.GetKeyDown(KeyCode.F3))
  113. {
  114. this.PartsTransForm.NextAxis();
  115. }
  116. if (Input.GetKeyDown(KeyCode.F4) && this.CameraFocusButton.isEnabled)
  117. {
  118. this.OnClickCameraFocus();
  119. }
  120. }
  121. public void OnSelectItem(PhotoTransTargetObject select)
  122. {
  123. this.select_trans_target_ = select;
  124. if (select == null)
  125. {
  126. return;
  127. }
  128. if (select.obj == null || select.type == PhotoTransTargetObject.Type.BG)
  129. {
  130. this.RemoveButton.gameObject.SetActive(false);
  131. this.AttachPointWindow.gameObject.SetActive(false);
  132. WFCheckBox checkAttacWindowVisible = this.CheckAttacWindowVisible;
  133. bool flag = false;
  134. this.CheckAttacWindowVisible.visible = flag;
  135. flag = flag;
  136. this.CheckAttacWindowVisible.check = flag;
  137. checkAttacWindowVisible.enabled = flag;
  138. this.AttachPointWindow.onStateTextChangeEvent("設定不可");
  139. }
  140. else
  141. {
  142. this.RemoveButton.gameObject.SetActive(true);
  143. this.AttachPointWindow.gameObject.SetActive(true);
  144. this.CheckAttacWindowVisible.enabled = (this.AttachPointWindow.activeMaidListCount != 0);
  145. this.CheckAttacWindowVisible.visible = true;
  146. this.CheckAttacWindowVisible.check = this.AttachPointWindow.visible;
  147. foreach (Action<WFCheckBox> action in this.CheckAttacWindowVisible.onClick)
  148. {
  149. action(this.CheckAttacWindowVisible);
  150. }
  151. }
  152. if (select != null && select.obj != null && select.axis_obj != null && select.rotate_obj != null)
  153. {
  154. select.axis_obj.Visible = (select.rotate_obj.Visible = false);
  155. }
  156. if (select.obj != null)
  157. {
  158. UIButtonColor cameraFocusButton = this.CameraFocusButton;
  159. bool flag = true;
  160. this.VisibleCheckButton.enabled = flag;
  161. cameraFocusButton.isEnabled = flag;
  162. this.VisibleCheckButton.check = select.obj.activeSelf;
  163. if (select.type == PhotoTransTargetObject.Type.BG)
  164. {
  165. this.VisibleCheckButton.visible = false;
  166. }
  167. else
  168. {
  169. this.VisibleCheckButton.visible = true;
  170. }
  171. }
  172. else
  173. {
  174. this.VisibleCheckButton.visible = false;
  175. UIButtonColor cameraFocusButton2 = this.CameraFocusButton;
  176. bool flag = false;
  177. this.VisibleCheckButton.check = flag;
  178. flag = flag;
  179. this.VisibleCheckButton.enabled = flag;
  180. cameraFocusButton2.isEnabled = flag;
  181. }
  182. this.PartsTransForm.SetObject(select.obj, Vector3.zero, Vector3.zero, Vector3.one);
  183. this.OnChangeAxisVisibleType();
  184. this.AttachPointWindow.OnSelectItem(select);
  185. }
  186. public override void OnMaidAddEvent(Maid maid, bool is_deserialize_load)
  187. {
  188. if (is_deserialize_load)
  189. {
  190. foreach (PhotoTransTargetObject photoTransTargetObject in this.target_list_)
  191. {
  192. if (!string.IsNullOrEmpty(photoTransTargetObject.attach_maid_guid) && !(photoTransTargetObject.attach_maid_guid != maid.status.guid))
  193. {
  194. Transform transform = photoTransTargetObject.obj.transform;
  195. Vector3 position = transform.position;
  196. Quaternion rotation = transform.rotation;
  197. photoTransTargetObject.Attach(photoTransTargetObject.attachi_point, false, maid);
  198. transform.localPosition = photoTransTargetObject.attachi_local_pos;
  199. transform.localRotation = photoTransTargetObject.attachi_local_rotate;
  200. }
  201. }
  202. }
  203. this.AttachPointWindow.OnMaidAddEvent(maid, is_deserialize_load);
  204. if (this.CheckAttacWindowVisible.visible)
  205. {
  206. this.CheckAttacWindowVisible.enabled = (this.AttachPointWindow.activeMaidListCount != 0);
  207. }
  208. }
  209. public override void OnMaidRemoveEventPrev(Maid maid)
  210. {
  211. List<GameObject> list = new List<GameObject>();
  212. foreach (PhotoTransTargetObject photoTransTargetObject in this.target_list_)
  213. {
  214. if (photoTransTargetObject.attachi_point != PhotoTransTargetObject.AttachPoint.Null && photoTransTargetObject.attach_maid_guid == maid.status.guid)
  215. {
  216. list.Add(photoTransTargetObject.obj);
  217. }
  218. }
  219. for (int i = 0; i < list.Count; i++)
  220. {
  221. this.createBgObjectWindow.RemoveObject(list[i]);
  222. }
  223. this.AttachPointWindow.OnMaidRemoveEventPrev(maid);
  224. if (this.AttachPointWindow.activeMaidList.Count <= 0)
  225. {
  226. this.CheckAttacWindowVisible.check = false;
  227. foreach (Action<WFCheckBox> action in this.CheckAttacWindowVisible.onClick)
  228. {
  229. action(this.CheckAttacWindowVisible);
  230. }
  231. }
  232. if (this.CheckAttacWindowVisible.visible)
  233. {
  234. this.CheckAttacWindowVisible.enabled = (this.AttachPointWindow.activeMaidListCount != 0);
  235. }
  236. }
  237. public PhotoTransTargetObject AddTransTargetObject(GameObject target_obj, string draw_name, string nameTerm, PhotoTransTargetObject.Type type)
  238. {
  239. if (target_obj == null)
  240. {
  241. return null;
  242. }
  243. PhotoTransTargetObject photoTransTargetObject = new PhotoTransTargetObject(target_obj, draw_name, nameTerm, type, new Vector2(this.PartsTransForm.ScaleInput.SliderMin, this.PartsTransForm.ScaleInput.SliderMax));
  244. if (GameMain.Instance.VRMode && type != PhotoTransTargetObject.Type.BG)
  245. {
  246. MeshRenderer componentInChildren = photoTransTargetObject.axis_obj.GetComponentInChildren<MeshRenderer>();
  247. if (componentInChildren != null)
  248. {
  249. componentInChildren.enabled = false;
  250. }
  251. BoxCollider[] componentsInChildren = photoTransTargetObject.axis_obj.GetComponentsInChildren<BoxCollider>();
  252. foreach (BoxCollider boxCollider in componentsInChildren)
  253. {
  254. boxCollider.enabled = false;
  255. }
  256. }
  257. this.target_list_.Add(photoTransTargetObject);
  258. this.target_list_.Sort();
  259. UIWFTabButton uiwftabButton = this.CreateTabButton(this.Grid.gameObject, photoTransTargetObject);
  260. UIEventTrigger[] componentsInChildren2 = uiwftabButton.gameObject.GetComponentsInChildren<UIEventTrigger>();
  261. List<EventDelegate> onPress = this.Grid.GetChild(0).GetComponent<UIEventTrigger>().onPress;
  262. for (int j = 0; j < componentsInChildren2.Length; j++)
  263. {
  264. componentsInChildren2[j].onPress = onPress;
  265. }
  266. Dictionary<string, Transform> dictionary = new Dictionary<string, Transform>();
  267. List<Transform> childList = this.Grid.GetChildList();
  268. for (int k = 0; k < childList.Count; k++)
  269. {
  270. dictionary.Add(childList[k].name, childList[k].transform);
  271. }
  272. for (int l = 0; l < this.target_list_.Count; l++)
  273. {
  274. if (dictionary.ContainsKey(this.target_list_[l].guid))
  275. {
  276. dictionary[this.target_list_[l].guid].localPosition = new Vector3(0f, (float)(l * 10), 0f);
  277. }
  278. }
  279. this.TabPanel.UpdateChildren();
  280. this.Grid.Reposition();
  281. this.scroll_view_.UpdatePosition();
  282. if (this.change_bg_ && type == PhotoTransTargetObject.Type.BG)
  283. {
  284. this.TabPanel.Select(uiwftabButton);
  285. this.change_bg_ = false;
  286. }
  287. return photoTransTargetObject;
  288. }
  289. public void RemoveTransTargetObject(GameObject target_obj)
  290. {
  291. if (target_obj == null)
  292. {
  293. return;
  294. }
  295. bool flag = false;
  296. this.change_bg_ = false;
  297. UIWFTabButton selectButtonObject = this.TabPanel.GetSelectButtonObject();
  298. string text = string.Empty;
  299. for (int i = 0; i < this.target_list_.Count; i++)
  300. {
  301. if (this.target_list_[i].obj == target_obj)
  302. {
  303. flag = (this.target_list_[i].type == PhotoTransTargetObject.Type.BG);
  304. if (flag && selectButtonObject != null && this.target_list_[i].guid == selectButtonObject.name)
  305. {
  306. this.change_bg_ = true;
  307. }
  308. text = this.target_list_[i].guid;
  309. this.target_list_[i].Delete();
  310. this.target_list_.RemoveAt(i);
  311. break;
  312. }
  313. }
  314. if (!string.IsNullOrEmpty(text))
  315. {
  316. if (selectButtonObject != null && selectButtonObject.name == text)
  317. {
  318. List<Transform> childList = this.Grid.GetChildList();
  319. for (int j = 0; j < childList.Count; j++)
  320. {
  321. if (childList[j].name == text)
  322. {
  323. if (j + 1 < childList.Count)
  324. {
  325. this.TabPanel.Select(this.Grid.GetChild(j + 1).gameObject.GetComponent<UIWFTabButton>());
  326. }
  327. else
  328. {
  329. this.TabPanel.Select(this.Grid.GetChild(j - 1).gameObject.GetComponent<UIWFTabButton>());
  330. }
  331. break;
  332. }
  333. }
  334. }
  335. List<Transform> childList2 = this.Grid.GetChildList();
  336. for (int k = 0; k < childList2.Count; k++)
  337. {
  338. if (childList2[k].gameObject.name == text)
  339. {
  340. childList2[k].gameObject.transform.SetParent(null, false);
  341. UnityEngine.Object.Destroy(childList2[k].gameObject);
  342. }
  343. }
  344. int num = 12;
  345. if (flag)
  346. {
  347. num--;
  348. }
  349. Utility.ResetNGUI(this.Grid);
  350. if (this.Grid.GetChildList().Count <= num)
  351. {
  352. Utility.ResetNGUI(this.scroll_view_);
  353. }
  354. else
  355. {
  356. this.scroll_view_.UpdatePosition();
  357. this.scroll_view_.UpdateScrollbars();
  358. }
  359. this.TabPanel.UpdateChildren();
  360. }
  361. }
  362. protected void OnChangeAxisVisibleType()
  363. {
  364. WindowPartsTransform.AxisVisibleType axis_visible_type = this.PartsTransForm.axis_visible_type;
  365. for (int i = 0; i < this.target_list_.Count; i++)
  366. {
  367. PhotoTransTargetObject photoTransTargetObject = this.target_list_[i];
  368. if (photoTransTargetObject != null && !(photoTransTargetObject.obj == null))
  369. {
  370. if (axis_visible_type == WindowPartsTransform.AxisVisibleType.UnVisible || photoTransTargetObject == null || photoTransTargetObject.obj == null || photoTransTargetObject != this.select_trans_target_)
  371. {
  372. if (photoTransTargetObject.axis_obj != null)
  373. {
  374. photoTransTargetObject.axis_obj.Visible = false;
  375. }
  376. if (photoTransTargetObject.rotate_obj != null)
  377. {
  378. photoTransTargetObject.rotate_obj.Visible = false;
  379. }
  380. }
  381. else if (axis_visible_type == WindowPartsTransform.AxisVisibleType.Position)
  382. {
  383. if (photoTransTargetObject.axis_obj != null)
  384. {
  385. photoTransTargetObject.axis_obj.Visible = true;
  386. }
  387. if (photoTransTargetObject.rotate_obj != null)
  388. {
  389. photoTransTargetObject.rotate_obj.Visible = false;
  390. }
  391. }
  392. else if (axis_visible_type == WindowPartsTransform.AxisVisibleType.Rotate)
  393. {
  394. if (photoTransTargetObject.axis_obj != null)
  395. {
  396. photoTransTargetObject.axis_obj.Visible = false;
  397. }
  398. if (photoTransTargetObject.rotate_obj != null)
  399. {
  400. photoTransTargetObject.rotate_obj.Visible = true;
  401. }
  402. }
  403. }
  404. }
  405. }
  406. public void OnClickCameraFocus()
  407. {
  408. if (this.select_trans_target_ == null || this.select_trans_target_.obj == null)
  409. {
  410. return;
  411. }
  412. Vector3 position = this.select_trans_target_.obj.transform.position;
  413. float distance = 4f;
  414. Vector2 aroundAngle = new Vector2(-180f, 4.7f);
  415. this.camera_move_support_.StartCameraPosition(position, distance, aroundAngle);
  416. }
  417. private UIWFTabButton CreateTabButton(GameObject parent_obj, PhotoTransTargetObject target)
  418. {
  419. GameObject gameObject = Utility.CreatePrefab(parent_obj, "ScenePhotoMode/WindowListItem", true);
  420. gameObject.name = target.guid.ToString();
  421. gameObject.GetComponentInChildren<UILabel>().text = target.draw_name;
  422. Utility.SetLocalizeTerm(gameObject.GetComponentInChildren<Localize>(), target.nameTerm, false);
  423. UIWFTabButton component = gameObject.GetComponent<UIWFTabButton>();
  424. EventDelegate.Add(component.onSelect, delegate()
  425. {
  426. if (!UIWFSelectButton.current.isSelected)
  427. {
  428. return;
  429. }
  430. for (int i = 0; i < this.target_list_.Count; i++)
  431. {
  432. if (this.target_list_[i].guid == UIWFSelectButton.current.name)
  433. {
  434. this.OnSelectItem(this.target_list_[i]);
  435. break;
  436. }
  437. }
  438. });
  439. return component;
  440. }
  441. public override void OnSerializeEvent()
  442. {
  443. Dictionary<string, Dictionary<string, string>> woldStoreData = base.GetWoldStoreData();
  444. woldStoreData.Clear();
  445. this.createBgObjectWindow.OnSerializeEvent(ref woldStoreData);
  446. foreach (PhotoTransTargetObject photoTransTargetObject in this.target_list_)
  447. {
  448. if (!(photoTransTargetObject.obj == null) && photoTransTargetObject.type != PhotoTransTargetObject.Type.BG)
  449. {
  450. Dictionary<string, string> dictionary = woldStoreData[photoTransTargetObject.obj.name];
  451. dictionary["attachi_point"] = photoTransTargetObject.attachi_point.ToString();
  452. dictionary["attachi_maid_guid"] = photoTransTargetObject.attach_maid_guid.ToString();
  453. dictionary["attachi_local_pos"] = photoTransTargetObject.obj.transform.localPosition.ToString("G9");
  454. dictionary["attachi_local_rotation"] = photoTransTargetObject.obj.transform.localRotation.ToString("G9");
  455. }
  456. }
  457. }
  458. public override void OnDeserializeEvent()
  459. {
  460. Dictionary<string, Dictionary<string, string>> woldStoreData = base.GetWoldStoreData();
  461. List<string> list = new List<string>();
  462. foreach (KeyValuePair<string, Dictionary<string, string>> keyValuePair in woldStoreData)
  463. {
  464. string key = keyValuePair.Key;
  465. Dictionary<string, string> value = keyValuePair.Value;
  466. string text = value["attachi_maid_guid"];
  467. if (!string.IsNullOrEmpty(text))
  468. {
  469. if (!PhotoWindowManager.maidGuidReplaceDic.ContainsKey(text))
  470. {
  471. value["attachi_maid_guid"] = text;
  472. }
  473. else if (string.IsNullOrEmpty(PhotoWindowManager.maidGuidReplaceDic[text]))
  474. {
  475. list.Add(key);
  476. }
  477. else
  478. {
  479. value["attachi_maid_guid"] = PhotoWindowManager.maidGuidReplaceDic[text];
  480. }
  481. }
  482. }
  483. foreach (string key2 in list)
  484. {
  485. woldStoreData.Remove(key2);
  486. }
  487. this.createBgObjectWindow.OnDeserializeEvent(ref woldStoreData);
  488. foreach (KeyValuePair<string, Dictionary<string, string>> keyValuePair2 in woldStoreData)
  489. {
  490. string key3 = keyValuePair2.Key;
  491. Dictionary<string, string> value2 = keyValuePair2.Value;
  492. string text2 = value2["attachi_maid_guid"];
  493. PhotoTransTargetObject.AttachPoint attachi_point = (PhotoTransTargetObject.AttachPoint)Enum.Parse(typeof(PhotoTransTargetObject.AttachPoint), value2["attachi_point"]);
  494. Vector3 attachi_local_pos = Parse.Vector3(value2["attachi_local_pos"]);
  495. Quaternion attachi_local_rotate = Parse.Quaternion(value2["attachi_local_rotation"]);
  496. if (!string.IsNullOrEmpty(text2))
  497. {
  498. for (int i = 0; i < this.target_list_.Count; i++)
  499. {
  500. if (this.target_list_[i].obj != null && this.target_list_[i].obj.name == key3)
  501. {
  502. this.target_list_[i].attach_maid_guid = text2;
  503. this.target_list_[i].attachi_point = attachi_point;
  504. this.target_list_[i].attachi_local_pos = attachi_local_pos;
  505. this.target_list_[i].attachi_local_rotate = attachi_local_rotate;
  506. break;
  507. }
  508. }
  509. }
  510. }
  511. this.TabPanel.Select(this.Grid.GetChild(0).gameObject.GetComponent<UIWFTabButton>());
  512. this.Grid.Reposition();
  513. this.scroll_view_.ResetPosition();
  514. }
  515. public override KeyValuePair<string, Dictionary<string, string>> Serialize()
  516. {
  517. KeyValuePair<string, Dictionary<string, string>> result = base.Serialize();
  518. Dictionary<string, string> value = result.Value;
  519. this.AttachPointWindow.Serialize(ref value);
  520. result = new KeyValuePair<string, Dictionary<string, string>>(result.Key, value);
  521. return result;
  522. }
  523. public override void Deserialize(Dictionary<string, Dictionary<string, string>> data)
  524. {
  525. base.Deserialize(data);
  526. string key = base.gameObject.name + "title";
  527. if (!data.ContainsKey(key))
  528. {
  529. return;
  530. }
  531. Dictionary<string, string> deserializeData = data[key];
  532. this.AttachPointWindow.Deserialize(deserializeData);
  533. this.CheckCreateWindowVisible.check = this.createBgObjectWindow.visible;
  534. }
  535. public WFCheckBox CheckCreateWindowVisible;
  536. public CreateBGObjectSubWindow createBgObjectWindow;
  537. public WFCheckBox CheckAttacWindowVisible;
  538. public AttachPointSubWindow AttachPointWindow;
  539. public UILabel AttachPointStateLabel;
  540. public UIButton RemoveButton;
  541. public UIGrid Grid;
  542. public UIWFTabPanel TabPanel;
  543. public WindowPartsTransform PartsTransForm;
  544. public UIButton CameraFocusButton;
  545. public WFCheckBox VisibleCheckButton;
  546. private List<PhotoTransTargetObject> target_list_ = new List<PhotoTransTargetObject>();
  547. private bool change_bg_;
  548. private PhotoTransTargetObject select_trans_target_;
  549. private WfCameraMoveSupport camera_move_support_;
  550. private UIScrollView scroll_view_;
  551. }