mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fixed locale issues
This commit is contained in:
@@ -86,11 +86,11 @@ main-tooltip=Autofill settings
|
|||||||
toggle-section-caption=__1__ __2__
|
toggle-section-caption=__1__ __2__
|
||||||
toggle-section-tooltip=Expand Section
|
toggle-section-tooltip=Expand Section
|
||||||
toggle-section-collapse-tooltip=Collapse Section
|
toggle-section-collapse-tooltip=Collapse Section
|
||||||
toggle-entity-tooltip=Toggle the autofill of __1__ entity (overwrites autofill settings of the entity)
|
toggle-entity-tooltip=Toggle the autofill of __1__s
|
||||||
toggle-tooltip=Toggle the autofill of __1__ into the __2__ slot of entities
|
toggle-tooltip=Toggle the autofill of __1__ into __2__ slots
|
||||||
amount-tooltip=Amount of items it will try and put into the __1__ slot of __2__
|
amount-tooltip=Amount of items to insert into the __1__ slots
|
||||||
invalid=Set autofill amount to the maximum __1__ __2__ for __3__
|
invalid=Autofill set to maximum amount: __1__ __2__ for __3__
|
||||||
filled=Autofilled the __1__ with __2__ __3__
|
inserted=Inserted __1__ __2__ into __3__
|
||||||
|
|
||||||
[warp-list]
|
[warp-list]
|
||||||
main-caption=Warp List
|
main-caption=Warp List
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ Gui.element(function(event_trigger, parent, item)
|
|||||||
name = event_trigger,
|
name = event_trigger,
|
||||||
type = 'textfield',
|
type = 'textfield',
|
||||||
text = item.amount,
|
text = item.amount,
|
||||||
tooltip = {'autofill.amount-tooltip', item.category, rich_img('item', item.entity) },
|
tooltip = {'autofill.amount-tooltip', item.category },
|
||||||
clear_and_focus_on_right_click = true,
|
clear_and_focus_on_right_click = true,
|
||||||
numeric = true,
|
numeric = true,
|
||||||
allow_decimal = false,
|
allow_decimal = false,
|
||||||
@@ -340,19 +340,19 @@ local function entity_build(event)
|
|||||||
if item_amount ~= 0 then
|
if item_amount ~= 0 then
|
||||||
local inserted
|
local inserted
|
||||||
text_position.y = text_position.y - 0.2
|
text_position.y = text_position.y - 0.2
|
||||||
|
local color = { r = 0, g = 255, b = 0, a = 1}
|
||||||
if item_amount >= preferd_amount then
|
if item_amount >= preferd_amount then
|
||||||
-- Can item be inserted? no, goto next item!
|
-- Can item be inserted? no, goto next item!
|
||||||
if not entity_inventory.can_insert({name=item.name, count=preferd_amount}) then
|
if not entity_inventory.can_insert({name=item.name, count=preferd_amount}) then
|
||||||
goto end_item
|
goto end_item
|
||||||
end
|
end
|
||||||
inserted = entity_inventory.insert({name=item.name, count=preferd_amount})
|
inserted = entity_inventory.insert({name=item.name, count=preferd_amount})
|
||||||
player_inventory.remove({name=item.name, count=inserted})
|
|
||||||
print_text(entity.surface, text_position, {'autofill.filled', rich_img('entity', entity.name), inserted, rich_img('item', item.name) }, { r = 0, g = 255, b = 0, a = 1})
|
|
||||||
else
|
else
|
||||||
inserted = entity_inventory.insert({name=item.name, count=item_amount})
|
inserted = entity_inventory.insert({name=item.name, count=item_amount})
|
||||||
player_inventory.remove({name=item.name, count=inserted})
|
color = { r = 255, g = 165, b = 0, a = 1}
|
||||||
print_text(entity.surface, text_position, {'autofill.filled', rich_img('entity', entity.name), inserted, rich_img('item', item.name) }, { r = 255, g = 165, b = 0, a = 1})
|
|
||||||
end
|
end
|
||||||
|
player_inventory.remove({name=item.name, count=inserted})
|
||||||
|
print_text(entity.surface, text_position, {'autofill.inserted', inserted, rich_img('item', item.name), rich_img('entity', entity.name) }, color)
|
||||||
end
|
end
|
||||||
::end_item::
|
::end_item::
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user