Advertisement
Ramaraunt1

Untitled

Mar 14th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.44 KB | None | 0 0
  1. ("game_profile_banner_selection", 0, mesh_load_window, [
  2. (ti_on_presentation_load, [
  3. (set_fixed_point_multiplier, 1000),
  4. (profile_get_banner_id, ":color"),
  5. (assign, "$g_presentation_profile_banner_selection_part", 0),
  6. (assign, "$g_tableau_randomness", 0),
  7. (assign, "$g_presentation_profile_troop", "trp_multiplayer_profile_troop_jedi"),
  8.  
  9. (create_mesh_overlay, reg1, "mesh_face_gen_window"),
  10.  
  11. (str_store_string, s1, "@Design your character's appearance"),
  12. (create_text_overlay, reg1, s1, tf_center_justify),
  13. (position_set_x, pos1, 740),
  14. (position_set_y, pos1, 650),
  15. (overlay_set_position, reg1, pos1),
  16. (overlay_set_color, reg1, 0xFFFFFF),
  17. (create_game_button_overlay, "$g_presentation_obj_profile_banner_selection_1", "@Save"),
  18. (position_set_x, pos1, 750),
  19. (position_set_y, pos1, 60),
  20. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_1", pos1),
  21.  
  22. (create_mesh_overlay_with_tableau_material, "$g_presentation_obj_profile_banner_selection_2", -1, "tableau_game_profile_window", 0),
  23. (position_set_x, pos1, 150),
  24. (position_set_y, pos1, 270),
  25. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_2", pos1),
  26.  
  27. (create_image_button_overlay, "$g_presentation_obj_profile_banner_selection_3", "mesh_white_dot", "mesh_white_dot"),
  28. (create_image_button_overlay, "$g_presentation_obj_profile_banner_selection_4", "mesh_white_dot", "mesh_white_dot"),
  29. (create_image_button_overlay, "$g_presentation_obj_profile_banner_selection_5", "mesh_white_dot", "mesh_white_dot"),
  30. (str_store_string, s1, "@Jedi - Bounty H. A"),
  31. (create_text_overlay, reg1, s1, tf_center_justify),
  32. (str_store_string, s1, "@Jedi - Bounty H. B"),
  33. (create_text_overlay, reg2, s1, tf_center_justify),
  34. (str_store_string, s1, "@Clone - Droid"),
  35. (create_text_overlay, reg3, s1, tf_center_justify),
  36. (position_set_x, pos1, 680),
  37. (position_set_y, pos1, 600),
  38. (overlay_set_position, reg1, pos1),
  39. (position_set_y, pos1, 610),
  40. (position_set_x, pos1, 800),
  41. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_3", pos1),
  42. (position_set_x, pos1, 680),
  43. (position_set_y, pos1, 540),
  44. (overlay_set_position, reg2, pos1),
  45. (position_set_y, pos1, 550),
  46. (position_set_x, pos1, 800),
  47. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_4", pos1),
  48. (position_set_x, pos1, 700),
  49. (position_set_y, pos1, 480),
  50. (overlay_set_position, reg3, pos1),
  51. (position_set_y, pos1, 490),
  52. (position_set_x, pos1, 800),
  53. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_5", pos1),
  54. (position_set_x, pos1, 650),
  55. (position_set_x, pos1, 2000),
  56. (position_set_y, pos1, 2000),
  57. (overlay_set_size, "$g_presentation_obj_profile_banner_selection_3", pos1),
  58. (overlay_set_size, "$g_presentation_obj_profile_banner_selection_4", pos1),
  59. (overlay_set_size, "$g_presentation_obj_profile_banner_selection_5", pos1),
  60.  
  61. (create_slider_overlay, "$g_presentation_obj_profile_banner_selection_6", 0, 7),
  62. (create_slider_overlay, "$g_presentation_obj_profile_banner_selection_7", 0, 7),
  63. (create_slider_overlay, "$g_presentation_obj_profile_banner_selection_8", 0, 7),
  64. (position_set_x, pos1, 710),
  65. (position_set_y, pos1, 380),
  66. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_6", pos1),
  67. (position_set_y, pos1, 320),
  68. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_7", pos1),
  69. (position_set_y, pos1, 260),
  70. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_8", pos1),
  71. (str_store_string, s1, "@Red"),
  72. (create_text_overlay, reg1, s1, tf_center_justify),
  73. (str_store_string, s1, "@Green"),
  74. (create_text_overlay, reg2, s1, tf_center_justify),
  75. (str_store_string, s1, "@Blue"),
  76. (create_text_overlay, reg3, s1, tf_center_justify),
  77. (position_set_x, pos1, 710),
  78. (position_set_y, pos1, 410),
  79. (overlay_set_position, reg1, pos1),
  80. (position_set_y, pos1, 350),
  81. (overlay_set_position, reg2, pos1),
  82. (position_set_y, pos1, 290),
  83. (overlay_set_position, reg3, pos1),
  84.  
  85. (str_store_string, s1, "@Choose the class you want to color"),
  86. (create_text_overlay, reg1, s1, tf_center_justify),
  87. (position_set_x, pos1, 295),
  88. (position_set_y, pos1, 160),
  89. (overlay_set_position, reg1, pos1),
  90. (overlay_set_color, reg1, 0xFFFFFF),
  91. (create_combo_button_overlay, "$g_presentation_obj_profile_banner_selection_9"),
  92.  
  93.  
  94. (position_set_x, pos1, 280),
  95. (position_set_y, pos1, 120),
  96. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_9", pos1),
  97. (overlay_add_item, "$g_presentation_obj_profile_banner_selection_9", "@Jedi"),
  98. (overlay_add_item, "$g_presentation_obj_profile_banner_selection_9", "@Clone Trooper"),
  99. (overlay_add_item, "$g_presentation_obj_profile_banner_selection_9", "@Battle Droid"),
  100. (overlay_add_item, "$g_presentation_obj_profile_banner_selection_9", "@Bounty Hunter"),
  101.  
  102. (create_mesh_overlay, "$g_presentation_obj_profile_banner_selection_10", "mesh_white_plane"),
  103. (position_set_x, pos1, 860),
  104. (position_set_y, pos1, 310),
  105. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_10", pos1),
  106. (position_set_x, pos1, 2000),
  107. (position_set_y, pos1, 4000),
  108. (overlay_set_size, "$g_presentation_obj_profile_banner_selection_10", pos1),
  109.  
  110. (str_store_string, s1, "@Decal"),
  111. (create_text_overlay, reg1, s1, tf_center_justify),
  112. (position_set_x, pos1, 600),
  113. (position_set_y, pos1, 180),
  114. (overlay_set_position, reg1, pos1),
  115. (create_game_button_overlay, "$g_presentation_obj_profile_banner_selection_11", "@Next"),
  116. (create_game_button_overlay, "$g_presentation_obj_profile_banner_selection_12", "@Previous"),
  117. (position_set_x, pos1, 860),
  118. (position_set_y, pos1, 200),
  119. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_11", pos1),
  120. (position_set_y, pos1, 130),
  121. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_12", pos1),
  122. (call_script, "script_color_get_component", ":color", 4, 0),
  123. (store_add, ":decal", reg0, "mesh_decal0"),
  124. (create_mesh_overlay, "$g_presentation_obj_profile_banner_selection_13", ":decal"),
  125. (position_set_x, pos1, 680),
  126. (position_set_y, pos1, 140),
  127. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_13", pos1),
  128. (position_set_x, pos1, 4000),
  129. (position_set_y, pos1, 4000),
  130. (overlay_set_size, "$g_presentation_obj_profile_banner_selection_13", pos1),
  131.  
  132. (create_game_button_overlay, "$g_presentation_obj_profile_banner_selection_14", "@Update"),
  133. (position_set_x, pos1, 920),
  134. (position_set_y, pos1, 260),
  135. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_14", pos1),
  136.  
  137. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_3", 0xFF0000),
  138. (call_script, "script_color_get_part", ":color", "$g_presentation_profile_banner_selection_part"),
  139. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_10", reg0),
  140. (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 0),
  141. (overlay_set_val, "$g_presentation_obj_profile_banner_selection_8", reg0),
  142. (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 1),
  143. (overlay_set_val, "$g_presentation_obj_profile_banner_selection_7", reg0),
  144. (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 2),
  145. (overlay_set_val, "$g_presentation_obj_profile_banner_selection_6", reg0),
  146. (presentation_set_duration, 999999),
  147. ]),
  148. (ti_on_presentation_event_state_change, [
  149. (set_fixed_point_multiplier, 1000),
  150. (store_trigger_param_1, ":object"),
  151. (store_trigger_param_2, ":value"),
  152. (assign, ":update_color", 0),
  153. (assign, ":update_sliders", 0),
  154. (assign, ":update_troop", 0),
  155. (try_begin),
  156. (eq, ":object", "$g_presentation_obj_profile_banner_selection_1"),
  157. (presentation_set_duration, 0),
  158. (else_try),
  159. (eq, ":object", "$g_presentation_obj_profile_banner_selection_3"),
  160. (assign,"$g_presentation_profile_banner_selection_part", 0),
  161. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_3", 0xFF0000),
  162. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_4", 0xFFFFFF),
  163. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_5", 0xFFFFFF),
  164. (assign, ":update_color", 1),
  165. (assign, ":update_sliders", 1),
  166. (else_try),
  167. (eq, ":object", "$g_presentation_obj_profile_banner_selection_4"),
  168. (assign,"$g_presentation_profile_banner_selection_part", 1),
  169. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_3", 0xFFFFFF),
  170. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_4", 0xFF0000),
  171. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_5", 0xFFFFFF),
  172. (assign, ":update_color", 1),
  173. (assign, ":update_sliders", 1),
  174. (else_try),
  175. (eq, ":object", "$g_presentation_obj_profile_banner_selection_5"),
  176. (assign,"$g_presentation_profile_banner_selection_part", 2),
  177. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_3", 0xFFFFFF),
  178. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_4", 0xFFFFFF),
  179. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_5", 0xFF0000),
  180. (assign, ":update_color", 1),
  181. (assign, ":update_sliders", 1),
  182. (else_try),
  183. (eq, ":object", "$g_presentation_obj_profile_banner_selection_6"),
  184. (profile_get_banner_id, ":color"),
  185. (call_script, "script_color_set_component", ":color", "$g_presentation_profile_banner_selection_part", 2, ":value"),
  186. (profile_set_banner_id, reg0),
  187. (assign, ":update_color", 1),
  188. (else_try),
  189. (eq, ":object", "$g_presentation_obj_profile_banner_selection_7"),
  190. (profile_get_banner_id, ":color"),
  191. (call_script, "script_color_set_component", ":color", "$g_presentation_profile_banner_selection_part", 1, ":value"),
  192. (profile_set_banner_id, reg0),
  193. (assign, ":update_color", 1),
  194. (else_try),
  195. (eq, ":object", "$g_presentation_obj_profile_banner_selection_8"),
  196. (profile_get_banner_id, ":color"),
  197. (call_script, "script_color_set_component", ":color", "$g_presentation_profile_banner_selection_part", 0, ":value"),
  198. (profile_set_banner_id, reg0),
  199. (assign, ":update_color", 1),
  200. (else_try),
  201. (eq, ":object", "$g_presentation_obj_profile_banner_selection_9"),
  202. (try_begin),
  203. (eq, ":value", 0),
  204. (assign, "$g_presentation_profile_troop", "trp_multiplayer_profile_troop_jedi"),
  205. (else_try),
  206. (eq, ":value", 1),
  207. (assign, "$g_presentation_profile_troop", "trp_multiplayer_profile_troop_clone"),
  208. (else_try),
  209. (eq, ":value", 2),
  210. (assign, "$g_presentation_profile_troop", "trp_multiplayer_profile_troop_droid"),
  211. (else_try),
  212. (eq, ":value", 3),
  213. (assign, "$g_presentation_profile_troop", "trp_multiplayer_profile_troop_bounty"),
  214. (try_end),
  215. (assign, ":update_color", 1),
  216. (else_try),
  217. (this_or_next|eq, ":object", "$g_presentation_obj_profile_banner_selection_11"),
  218. (eq, ":object", "$g_presentation_obj_profile_banner_selection_12"),
  219. (profile_get_banner_id, ":color"),
  220. (call_script, "script_color_get_component", ":color", 4, 0),
  221. (assign, ":decal", reg0),
  222. (try_begin),
  223. (eq, ":object", "$g_presentation_obj_profile_banner_selection_11"),
  224. (val_add, ":decal", 1),
  225. (else_try),
  226. (val_sub, ":decal", 1),
  227. (try_end),
  228. (val_mod, ":decal", 7),
  229. (call_script, "script_color_set_component", ":color", 4, 0, ":decal"),
  230. (profile_set_banner_id, reg0),
  231. (val_add, ":decal", "mesh_decal0"),
  232. (overlay_set_alpha, "$g_presentation_obj_profile_banner_selection_13", 0),
  233. (create_mesh_overlay, "$g_presentation_obj_profile_banner_selection_13", ":decal"),
  234. (position_set_x, pos1, 680),
  235. (position_set_y, pos1, 140),
  236. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_13", pos1),
  237. (position_set_x, pos1, 4000),
  238. (position_set_y, pos1, 4000),
  239. (overlay_set_size, "$g_presentation_obj_profile_banner_selection_13", pos1),
  240. (else_try),
  241. (eq, ":object", "$g_presentation_obj_profile_banner_selection_14"),
  242. (assign, ":update_color", 1),
  243. (assign, ":update_troop", 1),
  244. (try_end),
  245. (try_begin),
  246. (eq, ":update_sliders", 1),
  247. (profile_get_banner_id, ":color"),
  248. (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 0),
  249. (overlay_set_val, "$g_presentation_obj_profile_banner_selection_8", reg0),
  250. (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 1),
  251. (overlay_set_val, "$g_presentation_obj_profile_banner_selection_7", reg0),
  252. (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 2),
  253. (overlay_set_val, "$g_presentation_obj_profile_banner_selection_6", reg0),
  254. (try_end),
  255. (try_begin),
  256. (eq, ":update_color", 1),
  257. (profile_get_banner_id, ":color"),
  258. (call_script, "script_color_get_part", ":color", "$g_presentation_profile_banner_selection_part"),
  259. (overlay_set_color, "$g_presentation_obj_profile_banner_selection_10", reg0),
  260. (eq, ":update_troop", 1),
  261. (overlay_set_alpha, "$g_presentation_obj_profile_banner_selection_2", 0),
  262. (create_mesh_overlay_with_tableau_material, "$g_presentation_obj_profile_banner_selection_2", -1, "tableau_game_profile_window", "$g_tableau_randomness"),
  263. (val_add, "$g_tableau_randomness", 2),
  264. (position_set_x, pos1, 150),
  265. (position_set_y, pos1, 270),
  266. (overlay_set_position, "$g_presentation_obj_profile_banner_selection_2", pos1),
  267. (try_end),
  268. ]),
  269. (ti_on_presentation_run, [
  270. (key_clicked, key_k),
  271. (call_script, "script_display_bits", -7),
  272. (store_div, reg1, -7, 2),
  273. (call_script, "script_display_bits", reg1),
  274. (val_div, reg1, 2),
  275. (call_script, "script_display_bits", reg1),
  276. (val_div, reg1, 2),
  277. (call_script, "script_display_bits", reg1),
  278. (val_div, reg1, 2),
  279. (call_script, "script_display_bits", reg1),
  280. ]),
  281. ]),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement