# onobjsel
!the dynamics can all be found in obj_din and Cheatmenu_din
if $selobj = '
Refresh':gs '$menu_obnovit'
if $selobj = 'Console':dynamic $cheatmenu['dynamic']
if $selobj = 'Toggle Debug Variables':
if objectWindowDebug = 0:
objectWindowDebug = 1
else
objectWindowDebug = 0
end
gs 'stat'
end
if $selobj = 'Add Debug Variable':
$tmpVar = INPUT('Enter the variable name')
if $tmpVar <> '':
gs 'obj_din', 'AddDebugVar', $tmpVar
gs 'stat'
end
killvar '$tmpVar'
end
if $selobj = 'Delete Debug Variable':
$tmpVar = INPUT('Enter the variable name to delete')
if $tmpVar <> '':
gs 'obj_din', 'DeleteDebugVar', $tmpVar
gs 'stat'
end
killvar '$tmpVar'
end
if INSTR($selobj,':') > 0:
tmpPos = INSTR($selobj,':') - 1
$tmpVar = MID($selobj, 1, tmpPos)
$tmpVal = INPUT('Enter a value for <<$tmpVar>>')
if $tmpVal <> '':
if instr($tmpVar,'$') = 1:
dyneval('<<$tmpVar>> = ''<<$tmpVal>>''')
else
dyneval('<<$tmpVar>> = <>')
end
end
gs 'stat'
killvar '$tmpVar'
killvar 'tmpPos'
killvar '$tmpVal'
end
if $selobj = '-1 Hour':gs 'obj_din', '-1 Hour'
if $selobj = '+1 Hour':gs 'obj_din', '+1 Hour'
if $selobj = 'Emergency':gs 'obj_din', 'emergency'
if $selobj = 'Remove debug info': debug_warning_closed = 1 & gs 'stat'
!The old menu: end
if $selobj = 'Player':
clr
pl'Your name is Mikhail Kuznetsov. You <> years. <<$vneshPRE>>'
pl'You have short black hair with flashes of gray starting, little brown eyes and willed jaw covered by blue bristle shave.'
pl'Growth <> see, weight 100 kg.'
end
unselect
--- onobjsel ---------------------------------