1
1

beverage_menu.qsrc 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. # beverage_menu
  2. if night_mode = 1:
  3. $fcolor1 = '#FFFFFF'
  4. $bcolor1 = '#202020'
  5. $bcolor2 = '#303030'
  6. else
  7. $fcolor1 = '#000000'
  8. $bcolor1 = '#FFFFFF'
  9. $bcolor2 = '#e6f2ff'
  10. end
  11. if $ARGS[0] = 'diner':
  12. *clr & cla
  13. act 'Back':gt $loc, $metka
  14. killvar '$_drink'
  15. $_drink['0,name'] = 'Water'
  16. $_drink['0,type'] = 'bev_wat'
  17. $_drink['0,price'] = 35
  18. $_drink['1,name'] = 'Kvass'
  19. $_drink['1,type'] = 'bev_kva'
  20. $_drink['1,price'] = 55
  21. $_drink['2,name'] = 'Juice'
  22. $_drink['2,type'] = 'bev_jui'
  23. $_drink['2,price'] = 70
  24. $_drink['3,name'] = 'Spiced Tea'
  25. $_drink['3,type'] = 'bev_tea'
  26. $_drink['3,price'] = 110
  27. $_drink['4,name'] = 'Black Coffee'
  28. $_drink['4,type'] = 'bev_cof'
  29. $_drink['4,price'] = 120
  30. $_drink['5,name'] = 'Milkshake'
  31. $_drink['5,type'] = 'bev_mil'
  32. $_drink['5,price'] = 180
  33. $_str = '<table border="0" width="400" cellpadding="0" cellspacing="1">'
  34. i = 0
  35. :loop_diner_drinks
  36. $_str += '<tr bgcolor='+iif(i mod 2 = 0,'<<$bcolor1>>','<<$bcolor2>>')+'><td height="30" width="80%" align="center"><font color="<<$fcolor1>>">'+$_drink['<<i>>,name']+'</td><td height="30" width="20%" align="right">'+iif(money >= val($_drink['<<i>>,price']),'<a href="exec:gt''beverage'',$_drink[''<<i>>,type''],<<i>>">'+$_drink['<<i>>,price']+'</a>',$_drink['<<i>>,price'])+'<font color="<<$fcolor1>>"><b> ₽. </b></td></tr>'
  37. i += 1
  38. if i < arrsize('$_drink')/3:jump 'loop_diner_drinks'
  39. $_str += '</table></center></font>'
  40. '<center><img <<$set_imgh>> src="images/shared/drinks/dinerdrinks.jpg"</center><br>'
  41. 'Your drinks order:<br><br>'+$_str
  42. killvar '$_str'
  43. killvar '$fcolor1'
  44. killvar '$bcolor1'
  45. killvar '$bcolor2'
  46. end
  47. if $ARGS[0] = 'gcafe':
  48. *clr & cla
  49. act 'Back':gt $loc, $metka
  50. killvar '$_drink'
  51. $_drink['0,name'] = 'Water'
  52. $_drink['0,type'] = 'bev_wat'
  53. $_drink['0,price'] = 0
  54. $_drink['1,name'] = 'Kvass'
  55. $_drink['1,type'] = 'bev_kva'
  56. $_drink['1,price'] = 0
  57. $_drink['2,name'] = 'Juice'
  58. $_drink['2,type'] = 'bev_jui'
  59. $_drink['2,price'] = 0
  60. $_drink['3,name'] = 'Spiced Tea'
  61. $_drink['3,type'] = 'bev_tea'
  62. $_drink['3,price'] = 0
  63. $_drink['4,name'] = 'Black Coffee'
  64. $_drink['4,type'] = 'bev_cof'
  65. $_drink['4,price'] = 0
  66. $_drink['5,name'] = 'Milkshake'
  67. $_drink['5,type'] = 'bev_mil'
  68. $_drink['5,price'] = 0
  69. $_str = '<table border="0" width="400" cellpadding="0" cellspacing="1">'
  70. i = 0
  71. :loop_gcafe_drinks
  72. $_str += '<tr bgcolor='+iif(i mod 2 = 0,'<<$bcolor1>>','<<$bcolor2>>')+'><td height="30" width="80%" align="center"><font color="<<$fcolor1>>">'+$_drink['<<i>>,name']+'</td><td height="30" width="20%" align="center"><a href="exec:gt''beverage'',$_drink[''<<i>>,type''],<<i>>">Free</a><font color="<<$fcolor1>>"><b></b></td></tr>'
  73. i += 1
  74. if i < arrsize('$_drink')/3:jump 'loop_gcafe_drinks'
  75. $_str += '</table></center></font>'
  76. '<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
  77. 'Your drinks order:<br><br>'+$_str
  78. killvar '$_str'
  79. killvar '$fcolor1'
  80. killvar '$bcolor1'
  81. killvar '$bcolor2'
  82. end
  83. if $ARGS[0] = 'cafe':
  84. *clr & cla
  85. act 'Back':gt $loc, $metka
  86. killvar '$_drink'
  87. $_drink['0,name'] = 'Water'
  88. $_drink['0,type'] = 'bev_wat'
  89. $_drink['0,price'] = 40
  90. $_drink['1,name'] = 'Kvass'
  91. $_drink['1,type'] = 'bev_kva'
  92. $_drink['1,price'] = 60
  93. $_drink['2,name'] = 'Juice'
  94. $_drink['2,type'] = 'bev_jui'
  95. $_drink['2,price'] = 80
  96. $_drink['3,name'] = 'Spiced Tea'
  97. $_drink['3,type'] = 'bev_tea'
  98. $_drink['3,price'] = 120
  99. $_drink['4,name'] = 'Black Coffee'
  100. $_drink['4,type'] = 'bev_cof'
  101. $_drink['4,price'] = 130
  102. $_drink['5,name'] = 'Milkshake'
  103. $_drink['5,type'] = 'bev_mil'
  104. $_drink['5,price'] = 200
  105. $_str = '<table border="0" width="400" cellpadding="0" cellspacing="1">'
  106. i = 0
  107. :loop_cafe_drinks
  108. $_str += '<tr bgcolor='+iif(i mod 2 = 0,'<<$bcolor1>>','<<$bcolor2>>')+'><td height="30" width="80%" align="center"><font color="<<$fcolor1>>">'+$_drink['<<i>>,name']+'</td><td height="30" width="20%" align="right">'+iif(money >= val($_drink['<<i>>,price']),'<a href="exec:gt''beverage'',$_drink[''<<i>>,type''],<<i>>">'+$_drink['<<i>>,price']+'</a>',$_drink['<<i>>,price'])+'<font color="<<$fcolor1>>"><b> ₽. </b></td></tr>'
  109. i += 1
  110. if i < arrsize('$_drink')/3:jump 'loop_cafe_drinks'
  111. $_str += '</table></center></font>'
  112. '<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
  113. 'Your drinks order:<br><br>'+$_str
  114. killvar '$_str'
  115. killvar '$fcolor1'
  116. killvar '$bcolor1'
  117. killvar '$bcolor2'
  118. end
  119. if $ARGS[0] = 'fancy':
  120. *clr & cla
  121. act 'Back':gt $loc, $metka
  122. killvar '$_drink'
  123. $_drink['0,name'] = 'Spring Water'
  124. $_drink['0,type'] = 'bev_wat'
  125. $_drink['0,price'] = 70
  126. $_drink['1,name'] = 'Imported Tea'
  127. $_drink['1,type'] = 'bev_tea'
  128. $_drink['1,price'] = 180
  129. $_drink['2,name'] = 'Imported Beer'
  130. $_drink['2,type'] = 'bev_bee'
  131. $_drink['2,price'] = 200
  132. $_drink['3,name'] = 'Vodka Martini'
  133. $_drink['3,type'] = 'bev_mar'
  134. $_drink['3,price'] = 400
  135. $_drink['4,name'] = 'Glass of Wine'
  136. $_drink['4,type'] = 'bev_win'
  137. $_drink['4,price'] = 800
  138. $_drink['5,name'] = 'Glass of Champagne'
  139. $_drink['5,type'] = 'bev_cha'
  140. $_drink['5,price'] = 900
  141. $_str = '<table border="0" width="400" cellpadding="0" cellspacing="1">'
  142. i = 0
  143. :loop_fancy_drinks
  144. $_str += '<tr bgcolor='+iif(i mod 2 = 0,'<<$bcolor1>>','<<$bcolor2>>')+'><td height="30" width="80%" align="center"><font color="<<$fcolor1>>">'+$_drink['<<i>>,name']+'</td><td height="30" width="20%" align="right">'+iif(money >= val($_drink['<<i>>,price']),'<a href="exec:gt''beverage'',$_drink[''<<i>>,type''],<<i>>">'+$_drink['<<i>>,price']+'</a>',$_drink['<<i>>,price'])+'<font color="<<$fcolor1>>"><b> ₽. </b></td></tr>'
  145. i += 1
  146. if i < arrsize('$_drink')/3:jump 'loop_fancy_drinks'
  147. $_str += '</table></center></font>'
  148. '<center><img <<$set_imgh>> src="images/shared/drinks/fancydrinks.jpg"</center><br>'
  149. 'Your drinks order:<br><br>'+$_str
  150. killvar '$_str'
  151. killvar '$fcolor1'
  152. killvar '$bcolor1'
  153. killvar '$bcolor2'
  154. end
  155. if $ARGS[0] = 'pub':
  156. *clr & cla
  157. act 'Back':gt $loc, $metka
  158. killvar '$_drink'
  159. $_drink['0,name'] = 'Water'
  160. $_drink['0,type'] = 'bev_wat'
  161. $_drink['0,price'] = 35
  162. $_drink['1,name'] = 'Beer on tap'
  163. $_drink['1,type'] = 'bev_bee'
  164. $_drink['1,price'] = 60
  165. $_drink['2,name'] = 'Vodka'
  166. $_drink['2,type'] = 'bev_vod'
  167. $_drink['2,price'] = 120
  168. $_drink['3,name'] = 'Scotch'
  169. $_drink['3,type'] = 'bev_sco'
  170. $_drink['3,price'] = 140
  171. $_drink['4,name'] = 'Glass of Wine'
  172. $_drink['4,type'] = 'bev_win'
  173. $_drink['4,price'] = 160
  174. $_drink['5,name'] = 'Black Russian'
  175. $_drink['5,type'] = 'bev_bla'
  176. $_drink['5,price'] = 250
  177. $_str = '<table border="0" width="400" cellpadding="0" cellspacing="1">'
  178. i = 0
  179. :loop_pub_drinks
  180. $_str += '<tr bgcolor='+iif(i mod 2 = 0,'<<$bcolor1>>','<<$bcolor2>>')+'><td height="30" width="80%" align="center"><font color="<<$fcolor1>>">'+$_drink['<<i>>,name']+'</td><td height="30" width="20%" align="right">'+iif(money >= val($_drink['<<i>>,price']),'<a href="exec:gt''beverage'',$_drink[''<<i>>,type''],<<i>>">'+$_drink['<<i>>,price']+'</a>',$_drink['<<i>>,price'])+'<font color="<<$fcolor1>>"><b> ₽. </b></td></tr>'
  181. i += 1
  182. if i < arrsize('$_drink')/3:jump 'loop_pub_drinks'
  183. $_str += '</table></center></font>'
  184. '<center><img <<$set_imgh>> src="images/shared/drinks/bardrinks.jpg"</center><br>'
  185. 'Your drinks order:<br><br>'+$_str
  186. killvar '$_str'
  187. killvar '$fcolor1'
  188. killvar '$bcolor1'
  189. killvar '$bcolor2'
  190. end
  191. --- beverage_menu ---------------------------------