use pascal casing everywhere
This commit is contained in:
@@ -12,8 +12,8 @@ class Script
|
||||
string content = "ctrl+w script-message my-message-1 my-argument-1";
|
||||
string sectionName = Assembly.GetExecutingAssembly().GetName().Name;
|
||||
CorePlayer core = Global.Core;
|
||||
core.commandv("define-section", sectionName, content, "force");
|
||||
core.commandv("enable-section", sectionName);
|
||||
core.CommandV("define-section", sectionName, content, "force");
|
||||
core.CommandV("enable-section", sectionName);
|
||||
core.ClientMessage += ClientMessage;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,11 +11,11 @@ class Script
|
||||
public Script()
|
||||
{
|
||||
Core = Global.Core;
|
||||
Core.observe_property_bool("fullscreen", FullscreenChange);
|
||||
Core.ObservePropertyBool("fullscreen", FullscreenChange);
|
||||
}
|
||||
|
||||
void FullscreenChange(bool value)
|
||||
{
|
||||
Core.commandv("show-text", "fullscreen: " + value);
|
||||
Core.CommandV("show-text", "fullscreen: " + value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,11 +25,11 @@ class Script
|
||||
{
|
||||
if (MainForm.WindowState == FormWindowState.Minimized)
|
||||
{
|
||||
WasPlaying = !Core.get_property_bool("pause");
|
||||
WasPlaying = !Core.GetPropertyBool("pause");
|
||||
|
||||
if (WasPlaying)
|
||||
{
|
||||
Core.set_property_bool("pause", true, true);
|
||||
Core.SetPropertyBool("pause", true, true);
|
||||
WasPaused = true;
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,7 @@ class Script
|
||||
{
|
||||
if (WasPaused)
|
||||
{
|
||||
Core.set_property_bool("pause", false, true);
|
||||
Core.SetPropertyBool("pause", false, true);
|
||||
WasPaused = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,13 +69,13 @@ class Script
|
||||
|
||||
if (int.TryParse(args[1], out rating))
|
||||
{
|
||||
string path = Core.get_property_string("path");
|
||||
string path = Core.GetPropertyString("path");
|
||||
|
||||
if (!File.Exists(path))
|
||||
return;
|
||||
|
||||
Dic[path] = rating;
|
||||
Core.commandv("show-text", "Rating: " + rating);
|
||||
Core.CommandV("show-text", "Rating: " + rating);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ class Script
|
||||
foreach (MediaTrack track in editionTracks)
|
||||
{
|
||||
MenuItem mi = new MenuItem(track.Text);
|
||||
mi.Action = () => { Core.commandv("set", "edition", track.ID.ToString()); };
|
||||
mi.Action = () => { Core.CommandV("set", "edition", track.ID.ToString()); };
|
||||
mi.Checked = Core.Edition == track.ID;
|
||||
menuItem.DropDownItems.Add(mi);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user