|
|
|
@ -194,22 +194,6 @@ namespace MWScript
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class OpToggleCompositors : public Interpreter::Opcode0
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
virtual void execute (Interpreter::Runtime& runtime)
|
|
|
|
|
{
|
|
|
|
|
InterpreterContext& context =
|
|
|
|
|
static_cast<InterpreterContext&> (runtime.getContext());
|
|
|
|
|
|
|
|
|
|
bool enabled = MWBase::Environment::get().getWorld()->toggleRenderMode(MWWorld::World::Render_Compositors);
|
|
|
|
|
|
|
|
|
|
context.report (enabled ?
|
|
|
|
|
"Compositors -> On" : "Compositors -> Off");
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const int opcodeXBox = 0x200000c;
|
|
|
|
|
const int opcodeOnActivate = 0x200000d;
|
|
|
|
|
const int opcodeActivate = 0x2000075;
|
|
|
|
@ -224,7 +208,6 @@ namespace MWScript
|
|
|
|
|
const int opcodeFadeTo = 0x200013e;
|
|
|
|
|
const int opcodeToggleWater = 0x2000144;
|
|
|
|
|
const int opcodeTogglePathgrid = 0x2000146;
|
|
|
|
|
const int opcodeToggleCompositors = 0x2000153;
|
|
|
|
|
|
|
|
|
|
void registerExtensions (Compiler::Extensions& extensions)
|
|
|
|
|
{
|
|
|
|
@ -246,7 +229,6 @@ namespace MWScript
|
|
|
|
|
extensions.registerInstruction ("twa", "", opcodeToggleWater);
|
|
|
|
|
extensions.registerInstruction ("togglepathgrid", "", opcodeTogglePathgrid);
|
|
|
|
|
extensions.registerInstruction ("tpg", "", opcodeTogglePathgrid);
|
|
|
|
|
extensions.registerInstruction ("togglecompositors", "", opcodeToggleCompositors);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void installOpcodes (Interpreter::Interpreter& interpreter)
|
|
|
|
|