Skip to content

Commit 16c415f

Browse files
Quick LSP fixes
1 parent 4f8f17e commit 16c415f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lsp_def/classes/scoring_calculation.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
---@field get_obj? fun(self: SMODS.Scoring_Calculation|table, key: string): SMODS.Scoring_Calculation|table? Returns an object if one matches the `key`.
1717
---@field new? fun(self, config): SMODS.Scoring_Calculation Creates a new instance of this operator.
1818
---@field key string Used to reference your calculation, mod_prefix is applied
19-
---@field func fun(self, chips, mult, flames) Calculate your new score, flames respects animation timings
19+
---@field func fun(self, chips, mult, flames): number Calculate your new score, flames respects animation timings
2020
---@field text? string Replaces the `X` in the UI
2121
---@field colour? table HEX colour of the `text` in the UI
2222
---@field replace_ui? fun(self) Return a UI node to replace the display
@@ -35,7 +35,6 @@ SMODS.Scoring_Calculations = {}
3535

3636
--- Sets the current operator used on chips and mult.
3737
---@param key string|SMODS.Scoring_Calculation The key of the scoring calculation you want to use.
38-
---@param config table? The operator's config.
3938
function SMODS.set_scoring_calculation(key) end
4039

4140
--- Calculates a final round score based on the current scoring calculation.

lsp_def/ui.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,7 @@ G.FUNCS.your_collection_stickers = function(e) end
251251
--- Creates UIBox for "Stickers" collection menu
252252
function create_UIBox_your_collection_stickers() end
253253

254-
255-
---@return UINode
256-
---@param table
254+
---@class ScoreContainerArgs
257255
---@field scale? number Set scale of text
258256
---@field colour? table HEX colour of the container
259257
---@field type string Type of scoring component, ex. 'mult'. Can take the key of a Scoring_Parameter
@@ -262,4 +260,7 @@ function create_UIBox_your_collection_stickers() end
262260
---@field text? string Key of value in `G.GAME.current_round.current_hand` - defaults to `type..'_text'`
263261
---@field w? number Minimum width
264262
---@field h? number Minimum height
263+
264+
---@return UINode
265+
---@param args ScoreContainerArgs
265266
function SMODS.GUI.score_container(args) end

0 commit comments

Comments
 (0)