Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
sg-control/sg_mod.lua
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
48 lines (38 sloc)
1.17 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| Add a Menu Point: | |
| -- SGControl.Menu[ @Arg1 ] = { name=@Arg2, funct=@Arg3 } | |
| --@Arg1: Index (Number) | |
| --@Arg2: MenuName (String) | |
| --@Arg3: Menu Function (Function) | |
| Add a Config: | |
| -- SGConfig[ @Arg1 ] = { Name=@Arg2, State=@Arg3} | |
| --@Arg1: Index (Number) | |
| --@Arg2: ConfigName (String) | |
| --@Arg3: ConfigState (Boolean) | |
| Add a Screen Type: | |
| -- StargateScreen.Modes[ @Arg1 ] = @Arg2 | |
| --@Arg1: ScreenMode (String) | |
| --@Arg2: Screen Function / Content (Function) | |
| Add a System-Hook: | |
| -- SGControl.Hooks[ @Arg1 ] = @Arg2 | |
| --@Arg1: Index (Number) | |
| --@Arg2: Hook-Function (Function) | |
| You can edit all Menu-Names: | |
| -- SGControl.Menu[ @Arg1 ].name = @Arg2 | |
| --@Arg1: MenuItem [1-4 for Default Items] (Number) | |
| --@Arg2: Menu Name (String) | |
| You can add new Stargates on Startup | |
| -- SGControl.addStargate( @Arg1, @Arg2 ) | |
| --@Arg1: Stargate Address (String) | |
| --@Arg2: Stargate Displayname (String) | |
| You can remove Stargates on Startup | |
| -- SGControl.removeSG( @Arg1 ) | |
| --@Arg1: Stargate Address (String) | |
| You can add you'r own LOG Entry | |
| -- SGControl.addLog( @Arg1, @Arg2 ) | |
| --@Arg1: Log-File (String) | |
| --@Arg2: Log-Entrie (String) | |
| You can add an External Mod with: | |
| -- SGControl.addExternalMod( @Arg1 ) | |
| --@Arg1: File Path (String) | |
| ]]-- |