Добавлены все обновления от сообщества, вплоть до #148
1
QuickItemSearch/.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
.kakrc
|
||||
.vscode
|
||||
.luarc.json
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.1.11
|
||||
Date: ????
|
||||
Changes:
|
||||
|
||||
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.0 KiB |
@@ -13,7 +13,7 @@
|
||||
"(?) space-exploration"
|
||||
],
|
||||
"package": {
|
||||
"git_publish_branch": "master",
|
||||
"git_publish_branch": "master",
|
||||
"ignore": [ "stylua.toml", "screenshots" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 12 KiB |
@@ -244,8 +244,8 @@ function infinity_filter_gui.cycle_filter_mode(gui_data)
|
||||
local state = gui_data.state
|
||||
|
||||
state.infinity_filter.mode = (
|
||||
next(constants.infinity_filter_modes, state.infinity_filter.mode) or next(constants.infinity_filter_modes)
|
||||
)
|
||||
next(constants.infinity_filter_modes, state.infinity_filter.mode) or next(constants.infinity_filter_modes)
|
||||
)
|
||||
|
||||
refs.filter_setter.dropdown.selected_index = constants.infinity_filter_mode_to_index[state.infinity_filter.mode]
|
||||
end
|
||||
|
||||
@@ -310,7 +310,7 @@ function logistic_request_gui.update_request(refs, state, element)
|
||||
if element.type == "textfield" then
|
||||
count = tonumber(element.text)
|
||||
if count then
|
||||
count = math.clamp(count, 0, math.max_uint)
|
||||
count = math.clamp(count, 0, math.max_uint)
|
||||
else
|
||||
count = bound == "min" and 0 or math.max_uint
|
||||
end
|
||||
|
||||
@@ -11,7 +11,7 @@ local logistic_request_gui = require("__QuickItemSearch__/scripts/gui/logistic-r
|
||||
local search_gui = {}
|
||||
|
||||
function search_gui.build(player, player_table)
|
||||
-- At some point it's possible for the player table to get out of sync... somehow.
|
||||
-- At some point it's possible for the player table to get out of sync... somehow.
|
||||
local orphaned_dimmer = player.gui.screen.qis_window_dimmer
|
||||
if orphaned_dimmer and orphaned_dimmer.valid then
|
||||
orphaned_dimmer.destroy()
|
||||
@@ -21,7 +21,7 @@ function search_gui.build(player, player_table)
|
||||
orphaned_window.destroy()
|
||||
end
|
||||
search_gui.destroy(player_table)
|
||||
|
||||
|
||||
local refs = gui.build(player.gui.screen, {
|
||||
{
|
||||
type = "frame",
|
||||
@@ -300,7 +300,7 @@ function search_gui.perform_search(player, player_table, updated_query, combined
|
||||
-- item counts
|
||||
if player.controller_type == defines.controllers.character and connected_to_network then
|
||||
children[i3 + 2].caption = (
|
||||
(row.inventory or 0)
|
||||
(row.inventory or 0)
|
||||
.. " / [color="
|
||||
.. constants.colors.logistic_str
|
||||
.. "]"
|
||||
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 5.3 KiB |