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
@@ -107,12 +107,12 @@ describe('GLua API Writer', () => {
107
107
url: 'na',
108
108
arguments: [
109
109
{
110
-
args: [{
110
+
args: [{
111
111
name: 'intensity',
112
112
type: 'number',
113
113
description: 'The intensity of the explosion.',
114
114
default: '1000',
115
-
}]
115
+
}]
116
116
}
117
117
],
118
118
returns: [
@@ -397,6 +397,28 @@ describe('GLua API Writer', () => {
397
397
expect(api).toEqual(`--- Returns where on the screen the specified position vector would appear.\n---\n---[View wiki](na)\n---@return ToScreenData # The created Structures/ToScreenData.\nfunction Vector.ToScreen() end\n\n`);
398
398
});
399
399
400
+
it('should support Panel type',()=>{
401
+
constwriter=newGluaApiWriter();
402
+
constapi=writer.writePage(<PanelFunction>{
403
+
name: 'GetVBar',
404
+
address: 'DScrollPanel.GetVBar',
405
+
parent: 'DScrollPanel',
406
+
isPanelFunction: 'yes',
407
+
description: 'Returns the vertical scroll bar of the panel.',
408
+
realm: 'client',
409
+
type: 'panelfunc',
410
+
url: 'na',
411
+
returns: [
412
+
{
413
+
type: 'Panel{DVScrollBar}',
414
+
description: 'The DVScrollBar.',
415
+
},
416
+
],
417
+
});
418
+
419
+
expect(api).toEqual(`--- Returns the vertical scroll bar of the panel.\n---\n---[View wiki](na)\n---@return DVScrollBar # The DVScrollBar.\nfunction DScrollPanel:GetVBar() end\n\n`);
0 commit comments