Добавлены все обновления от сообщества, вплоть до #148
This commit is contained in:
@@ -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
|
||||
.. "]"
|
||||
|
||||
Reference in New Issue
Block a user