You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/fxdata/lua/bindings/gui.lua
+66Lines changed: 66 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,18 @@ function DisplayObjective(msg_id,zoom_location) end
12
12
---@paramzoom_location?location
13
13
functionDisplayInformation(msg_id,zoom_location) end
14
14
15
+
---Displays one of the text messages stored in gtext_***.dat in an Objective Box.
16
+
---This file comes in various language version, so messages from it are always in the language configured in the settings.
17
+
---@parammsg_idinteger
18
+
---@paramstl_xinteger zoom location x in subtiles
19
+
---@paramstl_yinteger zoom location y in subtiles
20
+
functionDisplayObjectiveWithPos(msg_id,stl_x,stl_y) end
21
+
22
+
---@parammsg_idinteger
23
+
---@paramstl_xinteger zoom location x in subtiles
24
+
---@paramstl_yinteger zoom location y in subtiles
25
+
functionDisplayInformationWithPos(msg_id,stl_x,stl_y) end
26
+
15
27
---Works like Display_objective, but instead of using a string from translations, allows to type it directly.
16
28
---@parammessagestring
17
29
---@paramzoom_location?location
@@ -36,6 +48,60 @@ function QuickInformation(slot,message,zoom_location) end
36
48
---@paramstl_yinteger zoom location y in subtiles
37
49
functionQuickInformationWithPos(slot,message,stl_x,stl_y) end
38
50
51
+
---Displays one of the text messages stored in gtext_***.dat in an Objective Box.
52
+
---This file comes in various language version, so messages from it are always in the language configured in the settings.
53
+
---@parammsg_idinteger
54
+
---@paramplayerPlayer Target player who receives the message.
55
+
---@paramzoom_location?location
56
+
functionDisplayPlayerObjective(msg_id,player,zoom_location) end
57
+
58
+
---@parammsg_idinteger
59
+
---@paramplayerPlayer Target player who receives the message.
60
+
---@paramzoom_location?location
61
+
functionDisplayPlayerInformation(msg_id,player,zoom_location) end
62
+
63
+
---Works like Display_objective, but instead of using a string from translations, allows to type it directly.
64
+
---@parammessagestring
65
+
---@paramplayerPlayer Target player who receives the message.
66
+
---@paramzoom_location?location
67
+
functionQuickPlayerObjective(message,player,zoom_location) end
68
+
69
+
---Works like Display_objective, but instead of using a string from translations, allows to type it directly.
70
+
---@parammessagestring
71
+
---@paramplayerPlayer Target player who receives the message.
72
+
---@paramstl_xinteger zoom location x in subtiles
73
+
---@paramstl_yinteger zoom location y in subtiles
74
+
functionQuickPlayerObjectiveWithPos(message,player,stl_x,stl_y) end
75
+
76
+
---Works like Display_information, but instead of using a string from translations, allows to type it directly.
77
+
---@paramslotinteger Message slot selection. There are 256 quick message slots, and each message you're making should use a different one. Using one message slot twice will lead to the first message being lost.
78
+
---@paramplayerPlayer Target player who receives the message.
79
+
---@parammessagestring
80
+
---@paramzoom_location?location
81
+
functionQuickPlayerInformation(slot,player,message,zoom_location) end
82
+
83
+
---Works like Display_information, but instead of using a string from translations, allows to type it directly.
84
+
---@paramslotinteger Message slot selection. There are 256 quick message slots, and each message you're making should use a different one. Using one message slot twice will lead to the first message being lost.
85
+
---@paramplayerPlayer Target player who receives the message.
86
+
---@parammessagestring
87
+
---@paramstl_xinteger zoom location x in subtiles
88
+
---@paramstl_yinteger zoom location y in subtiles
89
+
functionQuickPlayerInformationWithPos(slot,player,message,stl_x,stl_y) end
90
+
91
+
---Displays one of the text messages stored in gtext_***.dat in an Objective Box.
92
+
---This file comes in various language version, so messages from it are always in the language configured in the settings.
93
+
---@parammsg_idinteger
94
+
---@paramplayerPlayer Target player who receives the message.
95
+
---@paramstl_xinteger zoom location x in subtiles
96
+
---@paramstl_yinteger zoom location y in subtiles
97
+
functionDisplayPlayerObjectiveWithPos(msg_id,player,stl_x,stl_y) end
98
+
99
+
---@parammsg_idinteger
100
+
---@paramplayerPlayer Target player who receives the message.
101
+
---@paramstl_xinteger zoom location x in subtiles
102
+
---@paramstl_yinteger zoom location y in subtiles
103
+
functionDisplayPlayerInformationWithPos(msg_id,player,stl_x,stl_y) end
104
+
39
105
---Plays a sound message or sound effect.
40
106
---@paramplayerPlayer The name of the player who gets to hear the sound.
41
107
---@paramtype"SPEECH"|"SOUND" If it is a sound effect or a speech. Speeches queue, sounds play at the same time.
0 commit comments