PDA

View Full Version : simplest mod


Seyss
14-07-2007, 12:35 AM
I am trying to create a mod that adds a keybinding that allows you to toggle fullscreen and windows modes. So I have 2 files in my mod folder:

bindings.xml **********>

<Bindings>
<Binding name="Toogle Full Screen" header="FULLSCREENTOOGLE">
if (GetCVar("gxWindow" == "1") then
SetCVar("gxWindow", 0);
else
SetCVar("gxWindow", 1);
end
RestartGx();
</Binding>
</Bindings>

and fstoogle.toc **********>

## Interface: 20100
## Title: FullScreenToogle
## Notes: Toggles between Windowed and Full Screen modes
## LoadOnDemand: 0
## Version: 1.0
## Author: Seyss
## eMail: kleingj@wku.edu
Bindings.xml

So I see the keybinding perfectly but NOTHING is happening... did i miss something? Please help :)
thanks!

Seyss
14-07-2007, 02:10 AM
nevermind i got it !!!