Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.22 KB | None | 0 0
  1. disableSave = true
  2. --Remember to set this to false once you are done making changes
  3. --Then, after you save & apply it, save your game too
  4.  
  5. --Color information for button text (r,g,b, values of 0-1)
  6. buttonFontColor = {0.08,0.08,0.08,95}
  7. --Color information for button background
  8. buttonColor = {0,0,0,0}
  9. --Color information for checkbox background
  10. checkboxColor = {1,1,1,0}
  11. --Change scale of button (Avoid changing if possible)
  12. buttonScale = {0.1,0.1,0.1}
  13.  
  14. --This is the button placement information
  15. defaultButtonData = {
  16. --Add checkboxes
  17. checkbox = {
  18. --[[
  19. pos = the position (pasted from the helper tool)
  20. size = height/width/font_size for checkbox
  21. state = default starting value for checkbox (true=checked, false=not)
  22. ]]
  23. --Schaden 1
  24. {
  25. pos = {-0.905,0.107,-1.159},
  26. size = 300,
  27. state = false
  28. },
  29. --Schaden 2
  30. {
  31. pos = {-0.826,0.107,-1.159},
  32. size = 300,
  33. state = false
  34. },
  35. --Schaden 3
  36. {
  37. pos = {-0.748,0.107,-1.159},
  38. size = 300,
  39. state = false
  40. },
  41. --Schaden 4
  42. {
  43. pos = {-0.669,0.107,-1.159},
  44. size = 300,
  45. state = false
  46. },
  47. --Schaden 5
  48. {
  49. pos = {-0.591,0.107,-1.159},
  50. size = 300,
  51. state = false
  52. },
  53. --Erschöpfung 1
  54. {
  55. pos = {-0.905,0.107,-1.062},
  56. size = 300,
  57. state = false
  58. },
  59. --Erschöpfung 2
  60. {
  61. pos = {-0.826,0.107,-1.062},
  62. size = 300,
  63. state = false
  64. },
  65. --Erschöpfung 3
  66. {
  67. pos = {-0.747,0.107,-1.062},
  68. size = 300,
  69. state = false
  70. },
  71. --Erschöpfung 4
  72. {
  73. pos = {-0.661,0.107,-1.062},
  74. size = 300,
  75. state = false
  76. },
  77. --Erschöpfung 5
  78. {
  79. pos = {-0.591,0.107,-1.062},
  80. size = 300,
  81. state = false
  82. },
  83. --Verwirrung 1
  84. {
  85. pos = {-0.905,0.107,-0.965},
  86. size = 300,
  87. state = false
  88. },
  89. --Verwirrung 2
  90. {
  91. pos = {-0.826,0.107,-0.965},
  92. size = 300,
  93. state = false
  94. },
  95. --Verwirrung 3
  96. {
  97. pos = {-0.747,0.107,-0.965},
  98. size = 300,
  99. state = false
  100. },
  101. --Verwirrung 4
  102. {
  103. pos = {-0.669,0.107,-0.965},
  104. size = 300,
  105. state = false
  106. },
  107. --Verwirrung 5
  108. {
  109. pos = {-0.591,0.107,-0.965},
  110. size = 300,
  111. state = false
  112. },
  113. --Zweifel 1
  114. {
  115. pos = {-0.905,0.107,-0.868},
  116. size = 300,
  117. state = false
  118. },
  119. --Zweifel 2
  120. {
  121. pos = {-0.826,0.107,-0.868},
  122. size = 300,
  123. state = false
  124. },
  125. --Zweifel 3
  126. {
  127. pos = {-0.747,0.107,-0.868},
  128. size = 300,
  129. state = false
  130. },
  131. --Zweifel 4
  132. {
  133. pos = {-0.669,0.107,-0.868},
  134. size = 300,
  135. state = false
  136. },
  137. --Zweifel 5
  138. {
  139. pos = {-0.591,0.107,-0.868},
  140. size = 300,
  141. state = false
  142. },
  143. --Verhungernd
  144. {
  145. pos = {-1.143,0.107,-0.623},
  146. size = 300,
  147. state = false
  148. },
  149. --Verdurstend
  150. {
  151. pos = {-0.65,0.107,-0.623},
  152. size = 300,
  153. state = false
  154. },
  155. --Schlaflos
  156. {
  157. pos = {-1.143,0.107,-0.526},
  158. size = 300,
  159. state = false
  160. },
  161. --Erfrierend
  162. {
  163. pos = {-0.65,0.107,-0.526},
  164. size = 300,
  165. state = false
  166. },
  167. --Mutation 1
  168. {
  169. pos = {0.613,0.107,0.447},
  170. size = 300,
  171. state = false
  172. },
  173. --Mutation 2
  174. {
  175. pos = {0.706,0.107,0.447},
  176. size = 300,
  177. state = false
  178. },
  179. --Mutation 3
  180. {
  181. pos = {0.799,0.107,0.447},
  182. size = 300,
  183. state = false
  184. },
  185. --Mutation 4
  186. {
  187. pos = {0.892,0.107,0.447},
  188. size = 300,
  189. state = false
  190. },
  191. --Mutation 5
  192. {
  193. pos = {0.985,0.107,0.447},
  194. size = 300,
  195. state = false
  196. },
  197. --Mutation 6
  198. {
  199. pos = {1.087,0.107,0.447},
  200. size = 300,
  201. state = false
  202. },
  203. --Mutation 7
  204. {
  205. pos = {1.180,0.107,0.447},
  206. size = 300,
  207. state = false
  208. },
  209. --Mutation 8
  210. {
  211. pos = {1.273,0.107,0.447},
  212. size = 300,
  213. state = false
  214. },
  215. --Mutation 9
  216. {
  217. pos = {1.366,0.107,0.447},
  218. size = 300,
  219. state = false
  220. },
  221. --Mutation 10
  222. {
  223. pos = {1.459,0.107,0.447},
  224. size = 300,
  225. state = false
  226. },
  227. --Kumpel 1
  228. {
  229. pos = {1.406,0.107,1.374},
  230. size = 300,
  231. state = false
  232. },
  233. --Kumpel 2
  234. {
  235. pos = {1.406,0.107,1.471},
  236. size = 300,
  237. state = false
  238. },
  239. --Kumpel 3
  240. {
  241. pos = {1.406,0.107,1.568},
  242. size = 300,
  243. state = false
  244. },
  245. --Kumpel 4
  246. {
  247. pos = {1.406,0.107,1.665},
  248. size = 300,
  249. state = false
  250. },
  251. --Fäulnis 1
  252. {
  253. pos = {-1.457,0.107,1.714},
  254. size = 300,
  255. state = false
  256. },
  257. --Fäulnis 2
  258. {
  259. pos = {-1.364,0.107,1.714},
  260. size = 300,
  261. state = false
  262. },
  263. --Fäulnis 3
  264. {
  265. pos = {-1.271,0.107,1.714},
  266. size = 300,
  267. state = false
  268. },
  269. --Fäulnis 4
  270. {
  271. pos = {-1.178,0.107,1.714},
  272. size = 300,
  273. state = false
  274. },
  275. --Fäulnis 5
  276. {
  277. pos = {-1.085,0.107,1.714},
  278. size = 300,
  279. state = false
  280. },
  281. --Fäulnis 6
  282. {
  283. pos = {-0.983,0.107,1.714},
  284. size = 300,
  285. state = false
  286. },
  287. --Fäulnis 7
  288. {
  289. pos = {-0.89,0.107,1.714},
  290. size = 300,
  291. state = false
  292. },
  293. --Fäulnis 8
  294. {
  295. pos = {-0.797,0.107,1.714},
  296. size = 300,
  297. state = false
  298. },
  299. --Fäulnis 9
  300. {
  301. pos = {-0.704,0.107,1.714},
  302. size = 300,
  303. state = false
  304. },
  305. --Fäulnis 10
  306. {
  307. pos = {-0.611,0.107,1.714},
  308. size = 300,
  309. state = false
  310. },
  311. --Erfahrung 1
  312. {
  313. pos = {-1.457,0.107,1.958},
  314. size = 300,
  315. state = false
  316. },
  317. --Erfahrung 2
  318. {
  319. pos = {-1.364,0.107,1.958},
  320. size = 300,
  321. state = false
  322. },
  323. --Erfahrung 3
  324. {
  325. pos = {-1.271,0.107,1.958},
  326. size = 300,
  327. state = false
  328. },
  329. --Erfahrung 4
  330. {
  331. pos = {-1.178,0.107,1.958},
  332. size = 300,
  333. state = false
  334. },
  335. --Erfahrung 5
  336. {
  337. pos = {-1.085,0.107,1.958},
  338. size = 300,
  339. state = false
  340. },
  341. --Erfahrung 6
  342. {
  343. pos = {-0.983,0.107,1.958},
  344. size = 300,
  345. state = false
  346. },
  347. --Erfahrung 7
  348. {
  349. pos = {-0.89,0.107,1.958},
  350. size = 300,
  351. state = false
  352. },
  353. --Erfahrung 8
  354. {
  355. pos = {-0.797,0.107,1.958},
  356. size = 300,
  357. state = false
  358. },
  359. --Erfahrung 9
  360. {
  361. pos = {-0.704,0.107,1.958},
  362. size = 300,
  363. state = false
  364. },
  365. --Erfahrung 10
  366. {
  367. pos = {-0.611,0.107,1.958},
  368. size = 300,
  369. state = false
  370. },
  371. --End of checkboxes
  372. },
  373. --Add counters that have a + and - button
  374. counter = {
  375. --[[
  376. pos = the position (pasted from the helper tool)
  377. size = height/width/font_size for counter
  378. value = default starting value for counter
  379. hideBG = if background of counter is hidden (true=hidden, false=not)
  380. ]]
  381. { --Stärke
  382. pos = {-1.255,0.107,-1.1617},
  383. size = 360,
  384. value = 0,
  385. hideBG = true
  386. },
  387. { --Geschickl
  388. pos = {-1.255,0.107,-1.0647},
  389. size = 360,
  390. value = 0,
  391. hideBG = true
  392. },
  393. { --Verstand
  394. pos = {-1.255,0.107,-0.9677},
  395. size = 360,
  396. value = 0,
  397. hideBG = true
  398. },
  399. { --Empathie
  400. pos = {-1.255,0.107,-0.8707},
  401. size = 360,
  402. value = 0,
  403. hideBG = true
  404. },
  405. { --Skill 1
  406. pos = {-0.6447,0.107,0.0065},
  407. size = 360,
  408. value = 0,
  409. hideBG = true
  410. },
  411. { --Skill 2
  412. pos = {-0.6447,0.107,0.1039},
  413. size = 360,
  414. value = 0,
  415. hideBG = true
  416. },
  417. { --Skill 3
  418. pos = {-0.6447,0.107,0.2013},
  419. size = 360,
  420. value = 0,
  421. hideBG = true
  422. },
  423. { --Skill 4
  424. pos = {-0.6447,0.107,0.2987},
  425. size = 360,
  426. value = 0,
  427. hideBG = true
  428. },
  429. { --Skill 5
  430. pos = {-0.6447,0.107,0.3961},
  431. size = 360,
  432. value = 0,
  433. hideBG = true
  434. },
  435. { --Skill 6
  436. pos = {-0.6447,0.107,0.4935},
  437. size = 360,
  438. value = 0,
  439. hideBG = true
  440. },
  441. { --Skill 7
  442. pos = {-0.6447,0.107,0.5909},
  443. size = 360,
  444. value = 0,
  445. hideBG = true
  446. },
  447. { --Skill 8
  448. pos = {-0.6447,0.107,0.6883},
  449. size = 360,
  450. value = 0,
  451. hideBG = true
  452. },
  453. { --Skill 9
  454. pos = {-0.6447,0.107,0.7857},
  455. size = 360,
  456. value = 0,
  457. hideBG = true
  458. },
  459. { --Skill 10
  460. pos = {-0.6447,0.107,0.8831},
  461. size = 360,
  462. value = 0,
  463. hideBG = true
  464. },
  465. { --Skill 11
  466. pos = {-0.6447,0.107,0.9805},
  467. size = 360,
  468. value = 0,
  469. hideBG = true
  470. },
  471. { --Skill 12
  472. pos = {-0.6447,0.107,1.0779},
  473. size = 360,
  474. value = 0,
  475. hideBG = true
  476. },
  477. { --Skill 13
  478. pos = {-0.6447,0.107,1.1753},
  479. size = 360,
  480. value = 0,
  481. hideBG = true
  482. },
  483. { --Skill 14
  484. pos = {-0.6447,0.107,1.2727},
  485. size = 360,
  486. value = 0,
  487. hideBG = true
  488. },
  489. { --Skill 15
  490. pos = {-0.6447,0.107,1.3701},
  491. size = 360,
  492. value = 0,
  493. hideBG = true
  494. },
  495. { --Skill 16
  496. pos = {-0.6447,0.107,1.4675},
  497. size = 360,
  498. value = 0,
  499. hideBG = true
  500. },
  501. --End of counters
  502. },
  503. --Add editable text boxes
  504. textbox = {
  505. --[[
  506. pos = the position (pasted from the helper tool)
  507. rows = how many lines of text you want for this box
  508. width = how wide the text box is
  509. font_size = size of text. This and "rows" effect overall height
  510. label = what is shown when there is no text. "" = nothing
  511. value = text entered into box. "" = nothing
  512. alignment = Number to indicate how you want text aligned
  513. (1=Automatic, 2=Left, 3=Center, 4=Right, 5=Justified)
  514. ]]
  515. { --Name
  516. pos = {0.071,0.107,-1.2575},
  517. rows = 1,
  518. width = 4040,
  519. font_size = 240,
  520. label = "",
  521. value = "",
  522. alignment = 2
  523. },
  524. { --Rolle
  525. pos = {1.073,0.107,-1.2575},
  526. rows = 1,
  527. width = 4115,
  528. font_size = 240,
  529. label = "",
  530. value = "",
  531. alignment = 2
  532. },
  533. { --Erscheinung 1
  534. pos = {0.077,0.1,-1.0126},
  535. rows = 1,
  536. width = 3810,
  537. font_size = 250,
  538. label = "",
  539. value = "",
  540. alignment = 2
  541. },
  542. { --Erscheinung 2
  543. pos = {0.013,0.107,-0.916},
  544. rows = 1,
  545. width = 4600,
  546. font_size = 240,
  547. label = "",
  548. value = "",
  549. alignment = 2
  550. },
  551. { --Erscheinung 3
  552. pos = {0.070,0.107,-0.8193},
  553. rows = 1,
  554. width = 3840,
  555. font_size = 240,
  556. label = "",
  557. value = "",
  558. alignment = 2
  559. },
  560. { --Erscheinung 4
  561. pos = {0.013,0.107,-0.7217},
  562. rows = 1,
  563. width = 4600,
  564. font_size = 240,
  565. label = "",
  566. value = "",
  567. alignment = 2
  568. },
  569. { --Erscheinung 5
  570. pos = {0.085,0.107,-0.6252},
  571. rows = 1,
  572. width = 3700,
  573. font_size = 240,
  574. label = "",
  575. value = "",
  576. alignment = 2
  577. },
  578. { --Erscheinung 6
  579. pos = {0.013,0.107,-0.5275},
  580. rows = 1,
  581. width = 4600,
  582. font_size = 240,
  583. label = "",
  584. value = "",
  585. alignment = 2
  586. },
  587. { --Talente 1
  588. pos = {1.0346,0.1,-1.0126},
  589. rows = 1,
  590. width = 4600,
  591. font_size = 240,
  592. label = "",
  593. value = "",
  594. alignment = 2
  595. },
  596. { --Talente 2
  597. pos = {1.0346,0.107,-0.917},
  598. rows = 1,
  599. width = 4600,
  600. font_size = 240,
  601. label = "",
  602. value = "",
  603. alignment = 2
  604. },
  605. { --Talente 3
  606. pos = {1.0346,0.107,-0.8193},
  607. rows = 1,
  608. width = 4600,
  609. font_size = 240,
  610. label = "",
  611. value = "",
  612. alignment = 2
  613. },
  614. { --Talente 4
  615. pos = {1.0346,0.107,-0.7225},
  616. rows = 1,
  617. width = 4600,
  618. font_size = 240,
  619. label = "",
  620. value = "",
  621. alignment = 2
  622. },
  623. { --Talente 5
  624. pos = {1.0346,0.107,-0.625},
  625. rows = 1,
  626. width = 4600,
  627. font_size = 240,
  628. label = "",
  629. value = "",
  630. alignment = 2
  631. },
  632. { --Talente 6
  633. pos = {1.0346,0.107,-0.527},
  634. rows = 1,
  635. width = 4600,
  636. font_size = 240,
  637. label = "",
  638. value = "",
  639. alignment = 2
  640. },
  641. { --Talente 7
  642. pos = {1.0346,0.107,-0.42933},
  643. rows = 1,
  644. width = 4600,
  645. font_size = 240,
  646. label = "",
  647. value = "",
  648. alignment = 2
  649. },
  650. { --Talente 8
  651. pos = {1.0346,0.107,-0.3322},
  652. rows = 1,
  653. width = 4600,
  654. font_size = 240,
  655. label = "",
  656. value = "",
  657. alignment = 2
  658. },
  659. { --Rüstung
  660. pos = {1.404,0.107,0.688},
  661. rows = 1,
  662. width = 1000,
  663. font_size = 240,
  664. label = "",
  665. value = "",
  666. alignment = 3
  667. },
  668. { --Ausrüstung 1
  669. pos = {0.026,0.107,-0.2845},
  670. rows = 1,
  671. width = 4500,
  672. font_size = 240,
  673. label = "",
  674. value = "",
  675. alignment = 2
  676. },
  677. { --Ausrüstung 2
  678. pos = {0.026,0.107,-0.1866},
  679. rows = 1,
  680. width = 4500,
  681. font_size = 240,
  682. label = "",
  683. value = "",
  684. alignment = 2
  685. },
  686. { --Ausrüstung 3
  687. pos = {0.026,0.107,-0.0892},
  688. rows = 1,
  689. width = 4500,
  690. font_size = 240,
  691. label = "",
  692. value = "",
  693. alignment = 2
  694. },
  695. { --Ausrüstung 4
  696. pos = {0.026,0.107,0.0053},
  697. rows = 1,
  698. width = 4500,
  699. font_size = 240,
  700. label = "",
  701. value = "",
  702. alignment = 2
  703. },
  704. { --Ausrüstung 5
  705. pos = {0.026,0.107,0.1035},
  706. rows = 1,
  707. width = 4500,
  708. font_size = 240,
  709. label = "",
  710. value = "",
  711. alignment = 2
  712. },
  713. { --Ausrüstung 6
  714. pos = {0.026,0.107,0.201},
  715. rows = 1,
  716. width = 4500,
  717. font_size = 240,
  718. label = "",
  719. value = "",
  720. alignment = 2
  721. },
  722. { --Ausrüstung 7
  723. pos = {0.026,0.107,0.298},
  724. rows = 1,
  725. width = 4500,
  726. font_size = 240,
  727. label = "",
  728. value = "",
  729. alignment = 2
  730. },
  731. { --Ausrüstung 8
  732. pos = {0.026,0.107,0.395},
  733. rows = 1,
  734. width = 4500,
  735. font_size = 240,
  736. label = "",
  737. value = "",
  738. alignment = 2
  739. },
  740. { --Ausrüstung 9
  741. pos = {0.026,0.107,0.4936},
  742. rows = 1,
  743. width = 4500,
  744. font_size = 240,
  745. label = "",
  746. value = "",
  747. alignment = 2
  748. },
  749. { --Ausrüstung 10
  750. pos = {0.026,0.107,0.5918},
  751. rows = 1,
  752. width = 4500,
  753. font_size = 240,
  754. label = "",
  755. value = "",
  756. alignment = 2
  757. },
  758. { --Kugeln 1
  759. pos = {0.08,0.107,0.686},
  760. rows = 1,
  761. width = 3940,
  762. font_size = 240,
  763. label = "",
  764. value = "",
  765. alignment = 2
  766. },
  767. { --Mutation 1
  768. pos = {1.0346,0.107,-0.0885},
  769. rows = 1,
  770. width = 4600,
  771. font_size = 240,
  772. label = "",
  773. value = "",
  774. alignment = 2
  775. },
  776. { --Mutation 2
  777. pos = {1.0346,0.107,0.01},
  778. rows = 1,
  779. width = 4600,
  780. font_size = 240,
  781. label = "",
  782. value = "",
  783. alignment = 2
  784. },
  785. { --Mutation 3
  786. pos = {1.0346,0.107,0.1055},
  787. rows = 1,
  788. width = 4600,
  789. font_size = 240,
  790. label = "",
  791. value = "",
  792. alignment = 2
  793. },
  794. { --Mutation 4
  795. pos = {1.0346,0.107,0.2025},
  796. rows = 1,
  797. width = 4600,
  798. font_size = 240,
  799. label = "",
  800. value = "",
  801. alignment = 2
  802. },
  803. { --Verletzungen 1
  804. pos = {-0.837,0.107,-0.429},
  805. rows = 1,
  806. width = 2800,
  807. font_size = 240,
  808. label = "",
  809. value = "",
  810. alignment = 2
  811. },
  812. { --Verletzungen 2
  813. pos = {-1.03,0.107,-0.333},
  814. rows = 1,
  815. width = 4600,
  816. font_size = 240,
  817. label = "",
  818. value = "",
  819. alignment = 2
  820. },
  821. { --Verletzungen 3
  822. pos = {-1.03,0.107,-0.236},
  823. rows = 1,
  824. width = 4600,
  825. font_size = 240,
  826. label = "",
  827. value = "",
  828. alignment = 2
  829. },
  830. { --Skill 13 Name
  831. pos = {-1.115,0.107,1.181},
  832. rows = 1,
  833. width = 3700,
  834. font_size = 240,
  835. label = "",
  836. value = "",
  837. alignment = 2
  838. },
  839. { --Skill 14 Name
  840. pos = {-1.115,0.107,1.276},
  841. rows = 1,
  842. width = 3700,
  843. font_size = 240,
  844. label = "",
  845. value = "",
  846. alignment = 2
  847. },
  848. { --Skill 15 Name
  849. pos = {-1.115,0.107,1.375},
  850. rows = 1,
  851. width = 3700,
  852. font_size = 240,
  853. label = "",
  854. value = "",
  855. alignment = 2
  856. },
  857. { --Skill 16 Name
  858. pos = {-1.115,0.107,1.469},
  859. rows = 1,
  860. width = 3700,
  861. font_size = 240,
  862. label = "",
  863. value = "",
  864. alignment = 2
  865. },
  866. { --Rüstung Feld
  867. pos = {0.922,0.107,0.688},
  868. rows = 1,
  869. width = 3450,
  870. font_size = 240,
  871. label = "",
  872. value = "",
  873. alignment = 2
  874. },
  875. { --Waffe 1 Name
  876. pos = {-0.111,0.107,0.935},
  877. rows = 1,
  878. width = 3500,
  879. font_size = 240,
  880. label = "",
  881. value = "",
  882. alignment = 2
  883. },
  884. { --Waffe 1 Bonus
  885. pos = {0.3945,0.107,0.935},
  886. rows = 1,
  887. width = 1000,
  888. font_size = 240,
  889. label = "",
  890. value = "",
  891. alignment = 3
  892. },
  893. { --Waffe 1 Schaden
  894. pos = {0.6475,0.107,0.935},
  895. rows = 1,
  896. width = 1000,
  897. font_size = 240,
  898. label = "",
  899. value = "",
  900. alignment = 3
  901. },
  902. { --Waffe 1 Reichweite
  903. pos = {0.9005,0.107,0.935},
  904. rows = 1,
  905. width = 1080,
  906. font_size = 240,
  907. label = "",
  908. value = "",
  909. alignment = 3
  910. },
  911. { --Waffe 1 Besonderheit
  912. pos = {1.2785,0.107,0.935},
  913. rows = 1,
  914. width = 2285,
  915. font_size = 240,
  916. label = "",
  917. value = "",
  918. alignment = 2
  919. },
  920. { --Waffe 2 Name
  921. pos = {-0.111,0.107,1.031},
  922. rows = 1,
  923. width = 3500,
  924. font_size = 240,
  925. label = "",
  926. value = "",
  927. alignment = 2
  928. },
  929. { --Waffe 2 Bonus
  930. pos = {0.3945,0.107,1.031},
  931. rows = 1,
  932. width = 1000,
  933. font_size = 240,
  934. label = "",
  935. value = "",
  936. alignment = 3
  937. },
  938. { --Waffe 2 Schaden
  939. pos = {0.6475,0.107,1.031},
  940. rows = 1,
  941. width = 1000,
  942. font_size = 240,
  943. label = "",
  944. value = "",
  945. alignment = 3
  946. },
  947. { --Waffe 2 Reichweite
  948. pos = {0.9005,0.107,1.031},
  949. rows = 1,
  950. width = 1080,
  951. font_size = 240,
  952. label = "",
  953. value = "",
  954. alignment = 3
  955. },
  956. { --Waffe 2 Besonderheit
  957. pos = {1.2785,0.107,1.031},
  958. rows = 1,
  959. width = 2285,
  960. font_size = 240,
  961. label = "",
  962. value = "",
  963. alignment = 2
  964. },
  965. { --Waffe 3 Name
  966. pos = {-0.111,0.107,1.1275},
  967. rows = 1,
  968. width = 3500,
  969. font_size = 240,
  970. label = "",
  971. value = "",
  972. alignment = 2
  973. },
  974. { --Waffe 3 Bonus
  975. pos = {0.3945,0.107,1.1275},
  976. rows = 1,
  977. width = 1000,
  978. font_size = 240,
  979. label = "",
  980. value = "",
  981. alignment = 3
  982. },
  983. { --Waffe 3 Schaden
  984. pos = {0.6475,0.107,1.1275},
  985. rows = 1,
  986. width = 1000,
  987. font_size = 240,
  988. label = "",
  989. value = "",
  990. alignment = 3
  991. },
  992. { --Waffe 3 Reichweite
  993. pos = {0.9005,0.107,1.1275},
  994. rows = 1,
  995. width = 1080,
  996. font_size = 240,
  997. label = "",
  998. value = "",
  999. alignment = 3
  1000. },
  1001. { --Waffe 3 Besonderheit
  1002. pos = {1.2785,0.107,1.1275},
  1003. rows = 1,
  1004. width = 2285,
  1005. font_size = 240,
  1006. label = "",
  1007. value = "",
  1008. alignment = 2
  1009. },
  1010. { --SC 1
  1011. pos = {0.456,0.107,1.3725},
  1012. rows = 1,
  1013. width = 7910,
  1014. font_size = 240,
  1015. label = "",
  1016. value = "",
  1017. alignment = 2
  1018. },
  1019. { --SC 2
  1020. pos = {0.456,0.107,1.4695},
  1021. rows = 1,
  1022. width = 7910,
  1023. font_size = 240,
  1024. label = "",
  1025. value = "",
  1026. alignment = 2
  1027. },
  1028. { --SC 3
  1029. pos = {0.456,0.107,1.5665},
  1030. rows = 1,
  1031. width = 7910,
  1032. font_size = 240,
  1033. label = "",
  1034. value = "",
  1035. alignment = 2
  1036. },
  1037. { --SC 4
  1038. pos = {0.456,0.107,1.6635},
  1039. rows = 1,
  1040. width = 7910,
  1041. font_size = 240,
  1042. label = "",
  1043. value = "",
  1044. alignment = 2
  1045. },
  1046. { --Hass
  1047. pos = {0.61,0.107,1.76},
  1048. rows = 1,
  1049. width = 8750,
  1050. font_size = 240,
  1051. label = "",
  1052. value = "",
  1053. alignment = 2
  1054. },
  1055. { --Beschützen
  1056. pos = {0.69,0.107,1.8585},
  1057. rows = 1,
  1058. width = 7880,
  1059. font_size = 240,
  1060. label = "",
  1061. value = "",
  1062. alignment = 2
  1063. },
  1064. { --Traum
  1065. pos = {0.692,0.107,1.9545},
  1066. rows = 1,
  1067. width = 7950,
  1068. font_size = 240,
  1069. label = "",
  1070. value = "",
  1071. alignment = 2
  1072. },
  1073. --End of textboxes
  1074. }
  1075. }
  1076.  
  1077.  
  1078.  
  1079. --Lua beyond this point, I recommend doing something more fun with your life
  1080.  
  1081.  
  1082.  
  1083. --Save function
  1084. function updateSave()
  1085. saved_data = JSON.encode(ref_buttonData)
  1086. if disableSave==true then saved_data="" end
  1087. self.script_state = saved_data
  1088. end
  1089.  
  1090. --Startup procedure
  1091. function onload(saved_data)
  1092. if disableSave==true then saved_data="" end
  1093. if saved_data ~= "" then
  1094. local loaded_data = JSON.decode(saved_data)
  1095. ref_buttonData = loaded_data
  1096. else
  1097. ref_buttonData = defaultButtonData
  1098. end
  1099.  
  1100. spawnedButtonCount = 0
  1101. createCheckbox()
  1102. createCounter()
  1103. createTextbox()
  1104. end
  1105.  
  1106.  
  1107.  
  1108. --Click functions for buttons
  1109.  
  1110.  
  1111.  
  1112. --Checks or unchecks the given box
  1113. function click_checkbox(tableIndex, buttonIndex)
  1114. if ref_buttonData.checkbox[tableIndex].state == true then
  1115. ref_buttonData.checkbox[tableIndex].state = false
  1116. self.editButton({index=buttonIndex, label=""})
  1117. else
  1118. ref_buttonData.checkbox[tableIndex].state = true
  1119. self.editButton({index=buttonIndex, label=string.char(10008)})
  1120. end
  1121. updateSave()
  1122. end
  1123.  
  1124. --Applies value to given counter display
  1125. function click_counter(tableIndex, buttonIndex, amount)
  1126. ref_buttonData.counter[tableIndex].value = ref_buttonData.counter[tableIndex].value + amount
  1127. self.editButton({index=buttonIndex, label=ref_buttonData.counter[tableIndex].value})
  1128. updateSave()
  1129. end
  1130.  
  1131. --Updates saved value for given text box
  1132. function click_textbox(i, value, selected)
  1133. if selected == false then
  1134. ref_buttonData.textbox[i].value = value
  1135. updateSave()
  1136. end
  1137. end
  1138.  
  1139. --Dud function for if you have a background on a counter
  1140. function click_none() end
  1141.  
  1142.  
  1143.  
  1144. --Button creation
  1145.  
  1146.  
  1147.  
  1148. --Makes checkboxes
  1149. function createCheckbox()
  1150. for i, data in ipairs(ref_buttonData.checkbox) do
  1151. --Sets up reference function
  1152. local buttonNumber = spawnedButtonCount
  1153. local funcName = "checkbox"..i
  1154. local func = function() click_checkbox(i, buttonNumber) end
  1155. self.setVar(funcName, func)
  1156. --Sets up label
  1157. local label = ""
  1158. if data.state==true then label=string.char(10008) end
  1159. --Creates button and counts it
  1160. self.createButton({
  1161. label=label, click_function=funcName, function_owner=self,
  1162. position=data.pos, height=data.size, width=data.size,
  1163. font_size=data.size, scale=buttonScale,
  1164. color=checkboxColor, font_color=buttonFontColor
  1165. })
  1166. spawnedButtonCount = spawnedButtonCount + 1
  1167. end
  1168. end
  1169.  
  1170. --Makes counters
  1171. function createCounter()
  1172. for i, data in ipairs(ref_buttonData.counter) do
  1173. --Sets up display
  1174. local displayNumber = spawnedButtonCount
  1175. --Sets up label
  1176. local label = data.value
  1177. --Sets height/width for display
  1178. local size = data.size
  1179. if data.hideBG == true then size = 0 end
  1180. --Creates button and counts it
  1181. self.createButton({
  1182. label=label, click_function="click_none", function_owner=self,
  1183. position=data.pos, height=size, width=size,
  1184. font_size=data.size, scale=buttonScale,
  1185. color=buttonColor, font_color=buttonFontColor
  1186. })
  1187. spawnedButtonCount = spawnedButtonCount + 1
  1188.  
  1189. --Sets up add 1
  1190. local funcName = "counterAdd"..i
  1191. local func = function() click_counter(i, displayNumber, 1) end
  1192. self.setVar(funcName, func)
  1193. --Sets up label
  1194. local label = "+"
  1195. --Sets up position
  1196. local offsetDistance = (data.size/2 + data.size/4) * (buttonScale[1] * 0.0018)
  1197. local pos = {data.pos[1] + offsetDistance, data.pos[2], data.pos[3]}
  1198. --Sets up size
  1199. local size = data.size / 1.5
  1200. --Creates button and counts it
  1201. self.createButton({
  1202. label=label, click_function=funcName, function_owner=self,
  1203. position=pos, height=size, width=size,
  1204. font_size=size, scale=buttonScale,
  1205. color=buttonColor, font_color=buttonFontColor
  1206. })
  1207. spawnedButtonCount = spawnedButtonCount + 1
  1208.  
  1209. --Sets up subtract 1
  1210. local funcName = "counterSub"..i
  1211. local func = function() click_counter(i, displayNumber, -1) end
  1212. self.setVar(funcName, func)
  1213. --Sets up label
  1214. local label = "-"
  1215. --Set up position
  1216. local pos = {data.pos[1] - offsetDistance, data.pos[2], data.pos[3]}
  1217. --Creates button and counts it
  1218. self.createButton({
  1219. label=label, click_function=funcName, function_owner=self,
  1220. position=pos, height=size, width=size,
  1221. font_size=size, scale=buttonScale,
  1222. color=buttonColor, font_color=buttonFontColor
  1223. })
  1224. spawnedButtonCount = spawnedButtonCount + 1
  1225. end
  1226. end
  1227.  
  1228. function createTextbox()
  1229. for i, data in ipairs(ref_buttonData.textbox) do
  1230. --Sets up reference function
  1231. local funcName = "textbox"..i
  1232. local func = function(_,_,val,sel) click_textbox(i,val,sel) end
  1233. self.setVar(funcName, func)
  1234.  
  1235. self.createInput({
  1236. input_function = funcName,
  1237. function_owner = self,
  1238. label = data.label,
  1239. alignment = data.alignment,
  1240. position = data.pos,
  1241. scale = buttonScale,
  1242. width = data.width,
  1243. height = (data.font_size*data.rows)+24,
  1244. font_size = data.font_size,
  1245. font_color = buttonFontColor,
  1246. color = buttonColor,
  1247. value = data.value,
  1248. })
  1249. end
  1250. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement