onobjsel.qsrc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # onobjsel
  2. !the dynamics can all be found in obj_din and Cheatmenu_din
  3. if $selobj = '<center>Refresh</center>':gs '$menu_obnovit'
  4. if $selobj = '<center>Console</center>':
  5. $dynamicCommand = input("Enter command to execute.")
  6. if $dynamicCommand = '':exit
  7. dynamic $dynamicCommand
  8. killvar 'dynamicCommand'
  9. end
  10. if $selobj = '<center>Toggle Debug Variables</center>':
  11. if objectWindowDebug = 0:
  12. objectWindowDebug = 1
  13. else
  14. objectWindowDebug = 0
  15. end
  16. gs 'stat'
  17. end
  18. if $selobj = '<center>Add Debug Variable</center>':
  19. $tmpVar = INPUT('Enter the variable name')
  20. if $tmpVar <> '':
  21. gs 'obj_din', 'AddDebugVar', $tmpVar
  22. gs 'stat'
  23. end
  24. killvar '$tmpVar'
  25. end
  26. if $selobj = '<center>Delete Debug Variable</center>':
  27. $tmpVar = INPUT('Enter the variable name to delete')
  28. if $tmpVar <> '':
  29. gs 'obj_din', 'DeleteDebugVar', $tmpVar
  30. gs 'stat'
  31. end
  32. killvar '$tmpVar'
  33. end
  34. if $selobj = '<center>Switch HTML</center>':
  35. usehtml = iif(usehtml,0,1)
  36. end
  37. if INSTR($selobj,':') > 0:
  38. tmpPos = INSTR($selobj,':') - 1
  39. $tmpVar = MID($selobj, 1, tmpPos)
  40. $tmpVal = INPUT('Enter a value for <<$tmpVar>>')
  41. if $tmpVal <> '':
  42. if instr($tmpVar,'$') = 1:
  43. dyneval('<<$tmpVar>> = "<<$tmpVal>>"')
  44. else
  45. dyneval('<<$tmpVar>> = <<VAL($tmpVal)>>')
  46. end
  47. end
  48. gs 'stat'
  49. killvar '$tmpVar'
  50. killvar 'tmpPos'
  51. killvar '$tmpVal'
  52. end
  53. if $selobj = '<center>-1 Hour</center>':gs 'obj_din', '-1 Hour'
  54. if $selobj = '<center>+1 Hour</center>':gs 'obj_din', '+1 Hour'
  55. if $selobj = '<center><font color = red>Emergency</font></center>':gs 'obj_din', 'emergency'
  56. if $selobj = '<center>Remove debug info</center>':
  57. debug_warning_closed = 1
  58. loadg_show_debug = 0
  59. showobjs loadg_show_debug
  60. gs 'stat'
  61. end
  62. if $selobj = '<center>Toggle Call Trace</center>':
  63. if debug['trace_shown'] = 0:
  64. debug['trace_shown'] = 1
  65. gs 'stat_display'
  66. else
  67. debug['trace_shown'] = 0
  68. gs 'stat'
  69. end
  70. end
  71. unselect
  72. --- onobjsel ---------------------------------