Shuvit game release repo.
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.

menuV3.py 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  1. import bge
  2. keyboard = bge.logic.keyboard
  3. JUST_ACTIVATED = bge.logic.KX_INPUT_JUST_ACTIVATED
  4. #exit functions
  5. #=======
  6. def endpoint(funct, motion, dict, cont):
  7. print('endpoint', funct,motion)
  8. scene = bge.logic.getCurrentScene()
  9. shirt = scene.objects["Char4:Zshirtt1"]
  10. shoeR = scene.objects['Char4:Shoes02.R']
  11. shoeL = scene.objects['Char4:Shoes02.L']
  12. deck = scene.objects["deck"]
  13. throw_deck = scene.objectsInactive["throw_deck"]
  14. cam = scene.objects['Camera.003']
  15. c_move = .025 #color move amount
  16. if funct == 'exit':
  17. print("exit function", motion)
  18. bge.logic.endGame()
  19. if funct == 'restart':
  20. print("restart function", motion)
  21. bge.logic.restartGame()
  22. if funct == 'shirt color r':
  23. s_color = shirt.color
  24. s_color_r = s_color[0]
  25. if motion == 'inc':
  26. if s_color_r < 1:
  27. s_color_r += c_move
  28. s_color_r = round(s_color_r, 2)
  29. else:
  30. s_color_r = 1
  31. if motion == 'dec':
  32. if s_color_r > c_move:
  33. s_color_r -= c_move
  34. s_color_r = round(s_color_r, 2)
  35. else:
  36. s_color_r = 0
  37. new_col = [s_color_r, s_color[1], s_color[2], s_color[3]]
  38. shirt.color = new_col
  39. dict['shirt_color_r'] = new_col[0]
  40. if funct == 'shirt color g':
  41. s_color = shirt.color
  42. s_color_g = s_color[1]
  43. if motion == 'inc':
  44. if s_color_g < 1:
  45. s_color_g += c_move
  46. s_color_g = round(s_color_g, 2)
  47. else:
  48. s_color_rg = 1
  49. if motion == 'dec':
  50. if s_color_g > c_move:
  51. s_color_g -= c_move
  52. s_color_g = round(s_color_g, 2)
  53. else:
  54. s_color_g = 0
  55. new_col = [s_color[0], s_color_g, s_color[2], s_color[3]]
  56. shirt.color = new_col
  57. dict['shirt_color_g'] = new_col[1]
  58. if funct == 'shirt color b':
  59. s_color = shirt.color
  60. s_color_b = s_color[2]
  61. if motion == 'inc':
  62. if s_color_b < 1:
  63. s_color_b += c_move
  64. s_color_b = round(s_color_b, 2)
  65. else:
  66. s_color_b = 1
  67. if motion == 'dec':
  68. if s_color_b > c_move:
  69. s_color_b -= c_move
  70. s_color_b = round(s_color_b, 2)
  71. else:
  72. s_color_b = 0
  73. new_col = [s_color[0], s_color[1], s_color_b, s_color[3]]
  74. shirt.color = new_col
  75. print(new_col)
  76. dict['shirt_color_b'] = new_col[2]
  77. if funct == 'shoe color r':
  78. s_color = shoeL.color
  79. s_color_r = s_color[0]
  80. if motion == 'inc':
  81. if s_color_r < 1:
  82. s_color_r += c_move
  83. s_color_r = round(s_color_r, 2)
  84. else:
  85. s_color_r = 1
  86. if motion == 'dec':
  87. if s_color_r > c_move:
  88. s_color_r -= c_move
  89. s_color_r = round(s_color_r, 2)
  90. else:
  91. s_color_r = 0
  92. new_col = [s_color_r, s_color[1], s_color[2], s_color[3]]
  93. shoeL.color = new_col
  94. shoeR.color = new_col
  95. dict['shoe_color_r'] = new_col[0]
  96. if funct == 'shoe color g':
  97. s_color = shoeL.color
  98. s_color_g = s_color[1]
  99. if motion == 'inc':
  100. if s_color_g < 1:
  101. s_color_g += c_move
  102. s_color_g = round(s_color_g, 2)
  103. else:
  104. s_color_rg = 1
  105. if motion == 'dec':
  106. if s_color_g > c_move:
  107. s_color_g -= c_move
  108. s_color_g = round(s_color_g, 2)
  109. else:
  110. s_color_g = 0
  111. new_col = [s_color[0], s_color_g, s_color[2], s_color[3]]
  112. shoeL.color = new_col
  113. shoeR.color = new_col
  114. dict['shoe_color_g'] = new_col[1]
  115. if funct == 'shoe color b':
  116. s_color = shoeL.color
  117. s_color_b = s_color[2]
  118. if motion == 'inc':
  119. if s_color_b < 1:
  120. s_color_b += c_move
  121. s_color_b = round(s_color_b, 2)
  122. else:
  123. s_color_b = 1
  124. if motion == 'dec':
  125. if s_color_b > c_move:
  126. s_color_b -= c_move
  127. s_color_b = round(s_color_b, 2)
  128. else:
  129. s_color_b = 0
  130. new_col = [s_color[0], s_color[1], s_color_b, s_color[3]]
  131. shoeL.color = new_col
  132. shoeR.color = new_col
  133. print(new_col)
  134. dict['shoe_color_b'] = new_col[2]
  135. if funct == 'deck color r':
  136. s_color = deck.color
  137. s_color_r = s_color[0]
  138. if motion == 'inc':
  139. if s_color_r < 1:
  140. s_color_r += c_move
  141. s_color_r = round(s_color_r, 2)
  142. else:
  143. s_color_r = 1
  144. if motion == 'dec':
  145. if s_color_r > c_move:
  146. s_color_r -= c_move
  147. s_color_r = round(s_color_r, 2)
  148. else:
  149. s_color_r = 0
  150. new_col = [s_color_r, s_color[1], s_color[2], s_color[3]]
  151. deck.color = new_col
  152. throw_deck.color = new_col
  153. dict['deck_color_r'] = new_col[0]
  154. if funct == 'deck color g':
  155. s_color = deck.color
  156. s_color_g = s_color[1]
  157. if motion == 'inc':
  158. if s_color_g < 1:
  159. s_color_g += c_move
  160. s_color_g = round(s_color_g, 2)
  161. else:
  162. s_color_rg = 1
  163. if motion == 'dec':
  164. if s_color_g > c_move:
  165. s_color_g -= c_move
  166. s_color_g = round(s_color_g, 2)
  167. else:
  168. s_color_g = 0
  169. new_col = [s_color[0], s_color_g, s_color[2], s_color[3]]
  170. deck.color = new_col
  171. throw_deck.color = new_col
  172. dict['deck_color_g'] = new_col[1]
  173. if funct == 'deck color b':
  174. s_color = deck.color
  175. s_color_b = s_color[2]
  176. if motion == 'inc':
  177. if s_color_b < 1:
  178. s_color_b += c_move
  179. s_color_b = round(s_color_b, 2)
  180. else:
  181. s_color_b = 1
  182. if motion == 'dec':
  183. if s_color_b > c_move:
  184. s_color_b -= c_move
  185. s_color_b = round(s_color_b, 2)
  186. else:
  187. s_color_b = 0
  188. new_col = [s_color[0], s_color[1], s_color_b, s_color[3]]
  189. deck.color = new_col
  190. throw_deck.color = new_col
  191. print(new_col)
  192. dict['deck_color_b'] = new_col[2]
  193. if funct == 'shirt logo':
  194. logo = dict['shirt_logo']
  195. logo1 = shirt.meshes[0].materials[0].textures[6]
  196. logo2 = shirt.meshes[0].materials[0].textures[7]
  197. logo3 = shirt.meshes[0].materials[0].textures[5]
  198. if motion == 'inc':
  199. if logo == 0:
  200. logo = 1
  201. elif logo == 1:
  202. logo = 2
  203. elif logo == 2:
  204. logo = 3
  205. elif logo == 3:
  206. logo = 0
  207. if motion == 'dec':
  208. if logo == 0:
  209. logo = 3
  210. elif logo == 1:
  211. logo = 0
  212. elif logo == 2:
  213. logo = 1
  214. elif logo == 3:
  215. logo = 2
  216. if logo == 1:
  217. logo1.diffuseIntensity = 1
  218. logo2.diffuseIntensity = 0
  219. logo1.diffuseFactor = 1
  220. logo2.diffuseFactor = 0
  221. logo3.diffuseIntensity = 0
  222. logo3.diffuseFactor = 0
  223. if logo == 2:
  224. logo1.diffuseIntensity = 0
  225. logo1.diffuseFactor = 0
  226. logo2.diffuseIntensity = 1
  227. logo2.diffuseFactor = 1
  228. logo3.diffuseIntensity = 0
  229. logo3.diffuseFactor = 0
  230. if logo == 3:
  231. logo1.diffuseIntensity = 0
  232. logo1.diffuseFactor = 0
  233. logo2.diffuseIntensity = 0
  234. logo2.diffuseFactor = 0
  235. logo3.diffuseIntensity = 1
  236. logo3.diffuseFactor = 1
  237. if logo == 0:
  238. logo1.diffuseIntensity = 0
  239. logo2.diffuseIntensity = 0
  240. logo1.diffuseFactor = 0
  241. logo2.diffuseFactor = 0
  242. logo3.diffuseIntensity = 0
  243. logo3.diffuseFactor = 0
  244. dict['shirt_logo'] = logo
  245. if funct == 'brightness / contrast on':
  246. if motion == 'inc':
  247. cont.activate(cam.actuators["bc"])
  248. cam['bc'] = 1
  249. dict['bc'] = 1
  250. else:
  251. cont.activate(cam.actuators["bc_off"])
  252. cam['bc'] = 0
  253. dict['bc'] = 0
  254. if funct == 'brightness value':
  255. b = cam['BC_BRIGHTNESS']
  256. if motion == 'inc':
  257. b += .05
  258. else:
  259. b -= .05
  260. cam['BC_BRIGHTNESS'] = round(b,2)
  261. dict['BC_BRIGHTNESS'] = round(b,2)
  262. if funct == 'contrast value':
  263. b = cam['BC_CONTRAST']
  264. if motion == 'inc':
  265. b += .05
  266. else:
  267. b -= .05
  268. cam['BC_CONTRAST'] = round(b,2)
  269. dict['BC_CONTRAST'] = round(b,2)
  270. if funct == 'hdr on':
  271. if motion == 'inc':
  272. cont.activate(cam.actuators["hdr"])
  273. cam['hdr'] = 1
  274. dict['hdr'] = 1
  275. else:
  276. cont.activate(cam.actuators["hdr_off"])
  277. cam['hdr'] = 0
  278. dict['hdr'] = 0
  279. if funct == 'avgL':
  280. b = cam['avgL']
  281. if motion == 'inc':
  282. b += .05
  283. else:
  284. b -= .05
  285. cam['avgL'] = round(b,2)
  286. dict['avgL'] = round(b,2)
  287. if funct == 'hdr strength':
  288. b = cam['HDRamount']
  289. if motion == 'inc':
  290. b += .05
  291. else:
  292. b -= .05
  293. cam['HDRamount'] = round(b,2)
  294. dict['HDRamount'] = round(b,2)
  295. if funct == 'ao on':
  296. if motion == 'inc':
  297. cont.activate(cam.actuators["ao"])
  298. cam['ao'] = 1
  299. dict['ao'] = 1
  300. else:
  301. cont.activate(cam.actuators["ao_off"])
  302. cam['ao'] = 0
  303. dict['ao'] = 0
  304. if funct == 'ao width':
  305. b = cam['aowidth']
  306. if motion == 'inc':
  307. b += 1
  308. else:
  309. b -= 1
  310. cam['aowidth'] = round(b,2)
  311. dict['aowidth'] = round(b,2)
  312. if funct == 'ao radius':
  313. b = cam['aoradius']
  314. if motion == 'inc':
  315. b += 1
  316. else:
  317. b -= 1
  318. cam['aoradius'] = round(b,2)
  319. dict['aoradius'] = round(b,2)
  320. if funct == 'ao only':
  321. b = cam['onlyAO']
  322. if motion == 'inc':
  323. b = 1
  324. else:
  325. b = 0
  326. cam['onlyAO'] = b
  327. dict['onlyAO'] = b
  328. if funct == 'dof on':
  329. if motion == 'inc':
  330. cont.activate(cam.actuators["DOF"])
  331. cam['dof_on'] = 1
  332. dict['dof_on'] = 1
  333. else:
  334. cont.activate(cam.actuators["DOF_off"])
  335. cam['dof_on'] = 0
  336. dict['dof_on'] = 0
  337. if funct == 'sun strength':
  338. b = cam['sun_strength']
  339. if motion == 'inc':
  340. b += .05
  341. else:
  342. b -= .05
  343. cam['sun_strength'] = round(b,2)
  344. dict['sun_strength'] = round(b,2)
  345. if 'sun33' in scene.objects:
  346. sun = scene.objects['sun33']
  347. sun.energy = b
  348. if funct == 'ambient strength':
  349. b = cam['ambient_strength']
  350. if motion == 'inc':
  351. b += .05
  352. else:
  353. b -= .05
  354. cam['ambient_strength'] = round(b,2)
  355. dict['ambient_strength'] = round(b,2)
  356. if 'sun33' in scene.objects:
  357. scene.world.envLightEnergy = b
  358. if funct == 'sun rot x':
  359. #b = cam['sun_rot_x']
  360. b=0
  361. if motion == 'inc':
  362. b += .05
  363. else:
  364. b -= .05
  365. if 'camposEmpty' in scene.objects:
  366. em = scene.objects['camposEmpty']
  367. rot = [ b, 0.0, 0]
  368. em.applyRotation(rot,True)
  369. cam['sun_rot_x'] = round(b,2)
  370. dict['sun_rot_x'] = round(b,2)
  371. if funct == 'sun rot y':
  372. #b = cam['sun_rot_y']
  373. b=0
  374. if motion == 'inc':
  375. b += .05
  376. else:
  377. b -= .05
  378. if 'camposEmpty' in scene.objects:
  379. em = scene.objects['camposEmpty']
  380. rot = [ 0, b, 0]
  381. em.applyRotation(rot,True)
  382. cam['sun_rot_y'] = round(b,2)
  383. dict['sun_rot_y'] = round(b,2)
  384. #=======
  385. #end exit functions
  386. def get_c_list(dict):
  387. #main menu
  388. if dict['mlevel'] == 0:
  389. dict['current_list'] = ['exit', 'settings', 'level', 'replay', 'restart']
  390. #opt = dict['current_list'][dict['current_index']]
  391. if dict['mlevel'] == 1:
  392. if dict['lv0_opt'] == 'settings':
  393. #if opt == 'settings':
  394. dict['current_list'] = ['graphics', 'player', 'level', 'camera', 'physics']
  395. if dict['lv0_opt'] == 'replay':
  396. dict['current_list'] = ['enter replay', 'recorder on', 'record length']
  397. if dict['mlevel'] == 2:
  398. if dict['lv1_opt'] == 'graphics':
  399. #if opt == 'settings':
  400. dict['current_list'] = ['brightness / contrast', 'ao', 'hdr', 'dof']
  401. if dict['mlevel'] == 2:
  402. if dict['lv1_opt'] == 'player':
  403. #if opt == 'settings':
  404. dict['current_list'] = ['shirt color r', 'shirt color g', 'shirt color b', 'shoe color r', 'shoe color g', 'shoe color b','deck color r', 'deck color g', 'deck color b', 'shirt logo']
  405. if dict['mlevel'] == 2:
  406. if dict['lv1_opt'] == 'level':
  407. #if opt == 'settings':
  408. dict['current_list'] = ['sun strength', 'ambient strength', 'sun rot x', 'sun rot y', 'shadow on']
  409. if dict['mlevel'] == 3:
  410. if dict['lv2_opt'] == 'ao':
  411. dict['current_list'] = ['ao on', 'ao radius', 'ao width', 'ao only']
  412. if dict['lv2_opt'] == 'brightness / contrast':
  413. dict['current_list'] = ['brightness / contrast on', 'brightness value', 'contrast value']
  414. if dict['lv2_opt'] == 'hdr':
  415. dict['current_list'] = ['hdr on', 'avgL', 'hdr strength']
  416. if dict['lv2_opt'] == 'dof':
  417. dict['current_list'] = ['dof on']
  418. def get_inputs(dict, cont):
  419. #opt = dict['current_list'][dict['current_index']]
  420. #b
  421. if keyboard.events[bge.events.LEFTARROWKEY] == JUST_ACTIVATED or (dict['bBut'] == False and dict['last_bBut'] == True):
  422. if dict['current_index'] not in dict['menu_end_points']:
  423. #print('lkey')
  424. if dict['mlevel'] == 2:
  425. dict['mlevel'] = 1
  426. dict['current_index'] = dict['lv1_index']
  427. elif dict['mlevel'] == 1:
  428. dict['mlevel'] = 0
  429. dict['current_index'] = dict['lv0_index']
  430. elif dict['mlevel'] == 3:
  431. dict['mlevel'] = 2
  432. dict['current_index'] = dict['lv2_index']
  433. else:
  434. pass
  435. # funct = dict['current_index']
  436. # motion = 'dec'
  437. # endpoint(funct, motion, dict)
  438. #a
  439. if (keyboard.events[bge.events.RIGHTARROWKEY] == JUST_ACTIVATED) or (dict['aBut'] == False and dict['last_aBut'] == True):
  440. if dict['current_opt'] not in dict['menu_end_points']:
  441. if dict['mlevel'] == 0:
  442. dict['lv0_opt'] = dict['current_list'][dict['current_index']]
  443. dict['lv0_index'] = dict['current_index']
  444. dict['mlevel'] = 1
  445. dict['lv1_index'] = 0
  446. dict['current_index'] = 0
  447. elif dict['mlevel'] == 1:
  448. dict['lv1_opt'] = dict['current_list'][dict['current_index']]
  449. dict['lv1_index'] = dict['current_index']
  450. dict['mlevel'] = 2
  451. dict['lv2_index'] = 0
  452. dict['current_index'] = 0
  453. elif dict['mlevel'] == 2:
  454. dict['lv2_opt'] = dict['current_list'][dict['current_index']]
  455. dict['lv2_index'] = dict['current_index']
  456. dict['mlevel'] = 3
  457. dict['lv3_index'] = 0
  458. dict['current_index'] = 0
  459. elif dict['mlevel'] == 3:
  460. dict['lv3_opt'] = dict['current_list'][dict['current_index']]
  461. dict['lv3_index'] = dict['current_index']
  462. #dict['mlevel'] = 3
  463. #dict['lv3_index'] = 0
  464. dict['current_index'] = 0
  465. else:
  466. pass
  467. funct = dict['current_opt']
  468. motion = 'inc'
  469. endpoint(funct, motion, dict, cont)
  470. #down
  471. if keyboard.events[bge.events.DOWNARROWKEY] == JUST_ACTIVATED or (dict['ddPad'] == False and dict['last_ddPad'] == True):
  472. if dict['current_index'] < (len(dict['current_list']) - 1):
  473. dict['current_index'] += 1
  474. if dict['mlevel'] == 0:
  475. dict['lv0_index'] = dict['current_index']
  476. if dict['mlevel'] == 1:
  477. dict['lv1_index'] = dict['current_index']
  478. if dict['mlevel'] == 2:
  479. dict['lv2_index'] = dict['current_index']
  480. if dict['mlevel'] == 3:
  481. dict['lv3_index'] = dict['current_index']
  482. #up
  483. if keyboard.events[bge.events.UPARROWKEY] == JUST_ACTIVATED or (dict['udPad'] == False and dict['last_udPad'] == True):
  484. if dict['current_index'] > 0:
  485. dict['current_index'] -= 1
  486. if dict['mlevel'] == 0:
  487. dict['lv0_index'] = dict['current_index']
  488. if dict['mlevel'] == 1:
  489. dict['lv1_index'] = dict['current_index']
  490. if dict['mlevel'] == 2:
  491. dict['lv2_index'] = dict['current_index']
  492. if dict['mlevel'] == 3:
  493. dict['lv3_index'] = dict['current_index']
  494. #left
  495. if dict['ldPad'] == False and dict['last_ldPad'] == True:
  496. if dict['current_opt'] in dict['menu_end_points']:
  497. funct = dict['current_opt']
  498. motion = 'dec'
  499. endpoint(funct, motion, dict, cont)
  500. #right
  501. if dict['rdPad'] == False and dict['last_rdPad'] == True:
  502. if dict['current_opt'] in dict['menu_end_points']:
  503. funct = dict['current_opt']
  504. motion = 'inc'
  505. endpoint(funct, motion, dict, cont)
  506. def init(own, dict):
  507. print('initing')
  508. own['inited'] = True
  509. dict['lv0_opt'] = 0
  510. dict['lv0_index'] = 0
  511. dict['lv1_opt'] = 0
  512. dict['lv1_index'] = 0
  513. dict['lv2_opt'] = 0
  514. dict['lv2_index'] = 0
  515. dict['lv3_opt'] = 0
  516. dict['lv3_index'] = 0
  517. dict['current_list'] = ['']
  518. dict['current_index'] = 0
  519. dict['mlevel'] = 0
  520. dict['current_opt'] = ''
  521. dict['pause_menu_text'] = ''
  522. dict['menu_end_points'] = ['exit', 'restart', 'shirt color r', 'shirt color g', 'shirt color b', 'shoe color r', 'shoe color g', 'shoe color b','deck color r', 'deck color g', 'deck color b', 'shirt logo', 'brightness / contrast on', 'brightness value', 'contrast value', 'hdr on', 'avgL', 'hdr strength', 'ao on', 'ao radius', 'ao width', 'ao only', 'dof on', 'sun strength', 'sun rot x', 'sun rot y', 'shadow on', 'ambient strength']
  523. def output(dict):
  524. try:
  525. opt = dict['current_list'][dict['current_index']]
  526. except:
  527. print('broken!!', dict['current_list'], dict['current_index'])
  528. dict['current_opt'] = opt
  529. #print(dict['lv1_index'], 'level: ', dict['mlevel'], dict['lv0_opt'], dict['current_index'], dict['current_list'], dict['current_opt'])
  530. outp = 'menu > '
  531. if dict['mlevel'] == 0:
  532. outp = outp + dict['current_opt']
  533. if dict['mlevel'] == 1:
  534. outp = outp + dict['lv0_opt'] +' > ' + dict['current_opt']
  535. if dict['mlevel'] == 2:
  536. outp = outp + dict['lv0_opt'] +' > ' + dict['lv1_opt'] + ' > ' + dict['current_opt']
  537. if dict['mlevel'] == 3:
  538. outp = outp + dict['lv0_opt'] +' > ' + dict['lv1_opt'] + ' > ' + dict['lv2_opt'] + ' > ' + dict['current_opt']
  539. #print(outp)
  540. #print(dict['current_opt'])
  541. if dict['current_opt'] in dict['menu_end_points']:
  542. #print('adding end point value')
  543. if dict['current_opt'] == 'shirt color r':
  544. outp = outp + ': ' + str(dict['shirt_color_r'])
  545. print(outp + ': ' + str(dict['shirt_color_r']))
  546. if dict['current_opt'] == 'shirt color g':
  547. outp = outp + ': ' + str(dict['shirt_color_g'])
  548. if dict['current_opt'] == 'shirt color b':
  549. outp = outp + ': ' + str(dict['shirt_color_b'])
  550. if dict['current_opt'] == 'shoe color r':
  551. outp = outp + ': ' + str(dict['shoe_color_r'])
  552. print(outp + ': ' + str(dict['shoe_color_r']))
  553. if dict['current_opt'] == 'shoe color g':
  554. outp = outp + ': ' + str(dict['shoe_color_g'])
  555. if dict['current_opt'] == 'shoe color b':
  556. outp = outp + ': ' + str(dict['shoe_color_b'])
  557. if dict['current_opt'] == 'deck color r':
  558. outp = outp + ': ' + str(dict['deck_color_r'])
  559. print(outp + ': ' + str(dict['deck_color_r']))
  560. if dict['current_opt'] == 'deck color g':
  561. outp = outp + ': ' + str(dict['deck_color_g'])
  562. if dict['current_opt'] == 'deck color b':
  563. outp = outp + ': ' + str(dict['deck_color_b'])
  564. if dict['current_opt'] == 'shirt logo':
  565. outp = outp + ': ' + str(dict['shirt_logo'])
  566. if dict['current_opt'] == 'brightness / contrast on':
  567. outp = outp + ': ' + str(dict['bc'])
  568. if dict['current_opt'] == 'brightness value':
  569. outp = outp + ': ' + str(dict['BC_BRIGHTNESS'])
  570. if dict['current_opt'] == 'contrast value':
  571. outp = outp + ': ' + str(dict['BC_CONTRAST'])
  572. if dict['current_opt'] == 'hdr on':
  573. outp = outp + ': ' + str(dict['hdr'])
  574. if dict['current_opt'] == 'avgL':
  575. outp = outp + ': ' + str(dict['avgL'])
  576. if dict['current_opt'] == 'hdr strength':
  577. outp = outp + ': ' + str(dict['HDRamount'])
  578. if dict['current_opt'] == 'ao on':
  579. outp = outp + ': ' + str(dict['ao'])
  580. if dict['current_opt'] == 'ao width':
  581. outp = outp + ': ' + str(dict['aowidth'])
  582. if dict['current_opt'] == 'ao radius':
  583. outp = outp + ': ' + str(dict['aoradius'])
  584. if dict['current_opt'] == 'ao only':
  585. outp = outp + ': ' + str(dict['onlyAO'])
  586. if dict['current_opt'] == 'dof on':
  587. outp = outp + ': ' + str(dict['dof_on'])
  588. if dict['current_opt'] == 'sun strength':
  589. outp = outp + ': ' + str(dict['sun_strength'])
  590. if dict['current_opt'] == 'sun rot x':
  591. outp = outp + ': ' + str(dict['sun_rot_x'])
  592. if dict['current_opt'] == 'sun rot y':
  593. outp = outp + ': ' + str(dict['sun_rot_y'])
  594. if dict['current_opt'] == 'shadow on':
  595. outp = outp + ': ' + str(dict['shadow_on'])
  596. if dict['current_opt'] == 'ambient strength':
  597. outp = outp + ': ' + str(dict['ambient_strength'])
  598. dict['pause_menu_text'] = outp
  599. def main(cont):
  600. own = cont.owner
  601. dict = bge.logic.globalDict
  602. if 'inited' not in own:
  603. init(own, dict)
  604. get_c_list(dict)
  605. get_inputs(dict, cont)
  606. get_c_list(dict)
  607. output(dict)