DayZ 1.24
Loading...
Searching...
No Matches
ShowLog.c
Go to the documentation of this file.
1[WorkbenchPluginAttribute("SVN ShowLog", "Just for testing", "ctrl+=", "", {"ScriptEditor"})]
3{
4 [Attribute("TortoiseProc /command:log /path:$path", "editbox")]
5 string CommandLine;
6
7 override void Run()
8 {
9 ScriptEditor mod = Workbench.GetModule("ScriptEditor");
10 if (mod)
11 {
12 string file;
13 string absPath;
14 if (mod.GetCurrentFile(file) && Workbench.GetAbsolutePath(file, absPath))
15 {
16 string command = CommandLine;
17 command.Replace("$path", absPath);
19 //Print( command );
20 //Print( absPath );
21 }
22 }
23 }
24
25 override void Configure()
26 {
27 Workbench.ScriptDialog("Configure SVN ShowLog", "Usage: \n$path - will be replaced with file name", this);
28 }
29
30 [ButtonAttribute("OK")]
31 void OkButton() {}
32}
33
RestartDayzTool DayZTool WorkbenchPluginAttribute("DayZ Run", "Just for testing", "ctrl+2", "", {"ScriptEditor"})
Definition DayZTools.c:62
void OkButton()
Definition ShowLog.c:31
string CommandLine
Definition ShowLog.c:5
override void Run()
Definition ShowLog.c:7
override void Configure()
Definition ShowLog.c:25
static proto native int RunCmd(string command, bool wait=false)
static proto native WBModuleDef GetModule(string type)
static proto int ScriptDialog(string caption, string text, Class data)
static proto bool GetAbsolutePath(string relativePath, out string absPath)