Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
showlog.c
Go to the documentation of this file.
1
[
WorkbenchPluginAttribute
(
"SVN ShowLog"
,
"Just for testing"
,
"ctrl+="
,
""
, {
"ScriptEditor"
})]
2
class
SVNShowLogPlugin
:
WorkbenchPlugin
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);
18
Workbench
.
RunCmd
(command);
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
Attribute
Definition
enentity.c:826
ButtonAttribute
Definition
workbenchapi.c:118
SVNShowLogPlugin
Definition
showlog.c:3
SVNShowLogPlugin::Run
override void Run()
Definition
showlog.c:7
SVNShowLogPlugin::CommandLine
string CommandLine
Definition
showlog.c:5
SVNShowLogPlugin::OkButton
void OkButton()
Definition
showlog.c:31
SVNShowLogPlugin::Configure
override void Configure()
Definition
showlog.c:25
ScriptEditor
Definition
workbenchapi.c:30
ScriptEditor::GetCurrentFile
proto external bool GetCurrentFile(out string filename)
Workbench
Definition
workbenchapi.c:7
Workbench::GetModule
static proto native WBModuleDef GetModule(string type)
Workbench::ScriptDialog
static proto int ScriptDialog(string caption, string text, Class data)
Workbench::RunCmd
static proto native int RunCmd(string command, bool wait=false)
Workbench::GetAbsolutePath
static proto bool GetAbsolutePath(string relativePath, out string absPath)
WorkbenchPlugin::WorkbenchPlugin
void WorkbenchPlugin()
WorkbenchPluginAttribute
RestartDayzTool DayZTool WorkbenchPluginAttribute("DayZ Run", "Just for testing", "ctrl+2", "", {"ScriptEditor"})
Definition
dayztools.c:62
string::Replace
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.
Games
Dayz
scripts
editor
workbench
showlog.c
Generated by
1.17.0