|
|
@ -457,6 +457,8 @@ Ok, you're all set up! Now, let's take a look at an example
|
|
|
|
enabled = enabled or false
|
|
|
|
enabled = enabled or false
|
|
|
|
|
|
|
|
|
|
|
|
function isEnabled()
|
|
|
|
function isEnabled()
|
|
|
|
|
|
|
|
-- this function is for the enabled API, the script won't show up on the
|
|
|
|
|
|
|
|
-- control panel without it
|
|
|
|
return enabled
|
|
|
|
return enabled
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -473,6 +475,10 @@ Ok, you're all set up! Now, let's take a look at an example
|
|
|
|
dfhack.run_command('enable', 'example-mod')
|
|
|
|
dfhack.run_command('enable', 'example-mod')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if dfhack_flags.module then
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if not dfhack_flags.enable then
|
|
|
|
if not dfhack_flags.enable then
|
|
|
|
print(dfhack.script_help())
|
|
|
|
print(dfhack.script_help())
|
|
|
|
print()
|
|
|
|
print()
|
|
|
|