From a990a6d133860671491a6800fc1c0b6cf84eff79 Mon Sep 17 00:00:00 2001 From: mohe2015 Date: Sun, 13 Nov 2016 16:04:18 +0100 Subject: Add Lua API export for titles. (#3408) --- Server/Plugins/APIDump/APIDesc.lua | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) (limited to 'Server/Plugins/APIDump/APIDesc.lua') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index a32bec2e8..79fcc67c1 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -3471,6 +3471,10 @@ end }, Notes = "Sends the specified animation of the specified entity to the client. The AnimationNumber is protocol-specific.", }, + SendHideTitle = + { + Notes = "Hides the title. This makes the title and subtitle disappear, but if you call SendTitleTimes() the same title and subtitle will appear again." + }, SendPluginMessage = { Params = @@ -3486,6 +3490,54 @@ end }, Notes = "Sends the plugin message on the specified channel.", }, + SendResetTitle = + { + Notes = "Resets and hides the title but not the subtitle." + }, + SendSetSubTitle = + { + Params = + { + { + Name = "SubTitle", + Type = "cCompositeChat", + }, + }, + Notes = "Sends the subtitle to the client. Doesn't make the client display it yet, use SendTitleTimes() to show both the title and the subtitle." + }, + SendSetRawSubTitle = + { + Params = + { + { + Name = "SubTitle", + Type = "string", + }, + }, + Notes = "Sends the raw subtitle to the client. Doesn't make the client display it yet, use SendTitleTimes() to show both the title and the subtitle." + }, + SendSetTitle = + { + Params = + { + { + Name = "Title", + Type = "cCompositeChat", + }, + }, + Notes = "Sends the title to the client. Doesn't make the client display it yet, use SendTitleTimes() to show both the title and the subtitle." + }, + SendSetRawTitle = + { + Params = + { + { + Name = "Title", + Type = "string", + }, + }, + Notes = "Sends the raw title to the client. Doesn't make the client display it yet, use SendTitleTimes() to show both the title and the subtitle." + }, SendSoundEffect = { Params = @@ -3517,6 +3569,25 @@ end }, Notes = "Sends a sound effect request to the client. The sound is played at the specified coords, with the specified volume (a float, 1.0 is full volume, can be more) and pitch (0-255, 63 is 100%)", }, + SendTitleTimes = + { + Params = + { + { + Name = "FadeInTicks", + Type = "number", + }, + { + Name = "DisplayTicks", + Type = "number", + }, + { + Name = "FadeOutTicks", + Type = "number", + }, + }, + Notes = "Sends the request to display the title and subtitle, previously set with SendSetTitle, SendSetRawTitle, SendSetSubTitle and SendSetRawSubTitle, to the client." + }, SendTimeUpdate = { Params = @@ -17416,3 +17487,4 @@ end "__.*__", }, } + -- cgit v1.2.3