mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Added Locale Files
This commit is contained in:
@@ -114,7 +114,7 @@ local remove_warp = Gui.inputs{
|
||||
type='button',
|
||||
name='remove-warp-point',
|
||||
caption='utility/remove',
|
||||
tooltip={'warp-system.remove-tooltip'}
|
||||
tooltip={'WarpPoints.remove-tooltip'}
|
||||
}:on_event('click',function(event)
|
||||
local name = event.element.parent.name
|
||||
ThisModule.remove_warp_point(name)
|
||||
@@ -124,12 +124,12 @@ local go_to_warp = Gui.inputs{
|
||||
type='button',
|
||||
name='go-to-warp-point',
|
||||
caption='utility/export_slot',
|
||||
tooltip={'warp-system.go-to-tooltip'}
|
||||
tooltip={'WarpPoints.go-to-tooltip'}
|
||||
}:on_event('click',function(event)
|
||||
local player = Game.get_player(event)
|
||||
local cooldown = global.cooldowns[event.player_index] or 0
|
||||
local warp = global.warps[event.element.parent.name]
|
||||
if cooldown > 0 then player_return({'warp-system.cooldown',cooldown},nil,event) return end
|
||||
if cooldown > 0 then player_return({'WarpPoints.cooldown',cooldown},nil,event) return end
|
||||
if player.vehicle then player.vehicle.set_driver(nil) end
|
||||
if player.vehicle then player.vehicle.set_passenger(nil) end
|
||||
if player.vehicle then return end
|
||||
@@ -143,10 +143,10 @@ end)
|
||||
ThisModule.Gui = Gui.left{
|
||||
name='warp-list',
|
||||
caption='item/'..warp_item,
|
||||
tooltip={'warp-system.tooltip'},
|
||||
tooltip={'WarpPoints.tooltip'},
|
||||
draw=function(frame)
|
||||
local player = Game.get_player(frame.player_index)
|
||||
frame.caption={'warp-system.name'}
|
||||
frame.caption={'WarpPoints.name'}
|
||||
local warp_list = frame.add{
|
||||
type='scroll-pane',
|
||||
direction='vertical',
|
||||
@@ -201,8 +201,8 @@ ThisModule.Gui = Gui.left{
|
||||
and player.surface.name == 'nauvis'
|
||||
then return true
|
||||
elseif player.position.x^2+player.position.y^2 < (warp_radius*spawn_warp_scale)^2 then return true
|
||||
elseif cooldown > 0 then return {'warp-system.cooldown',cooldown}
|
||||
else return {'warp-system.not-on-warp'} end
|
||||
elseif cooldown > 0 then return {'WarpPoints.cooldown',cooldown}
|
||||
else return {'WarpPoints.not-on-warp'} end
|
||||
end,
|
||||
open_on_join=true
|
||||
}
|
||||
@@ -213,7 +213,7 @@ script.on_event(defines.events.on_tick,function(event)
|
||||
for index,time in pairs(global.cooldowns) do
|
||||
if time > 0 then
|
||||
global.cooldowns[index] = time-1
|
||||
if global.cooldowns[index] == 0 then player_return({'warp-system.cooldown-zero'},defines.textcolor.low,index) end
|
||||
if global.cooldowns[index] == 0 then player_return({'WarpPoints.cooldown-zero'},defines.textcolor.low,index) end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
9
modules/WarpPoints/locale/de.cfg
Normal file
9
modules/WarpPoints/locale/de.cfg
Normal file
@@ -0,0 +1,9 @@
|
||||
[WarpPoints]
|
||||
name=Warp List
|
||||
tooltip=Die Liste mit den Warp-Punkten
|
||||
remove-tooltip=Entferne Warp-Punkt
|
||||
go-to-tooltip=Gehe zu Warp-Punkt
|
||||
cooldown=Warte, bis der Cooldown abgelaufen ist. Verbleibende Zeit: __1__
|
||||
cooldown-zero=Dein Cooldown ist abgelaufen, du kannst jetzt wieder Warp-Punkte verwenden.
|
||||
name-used=Dieser Name ist schon vergeben.
|
||||
not-on-warp=Du bist nicht auf einem Warp-Punkt. Gehe auf einen Warp-Punkt, um zu einem anderen zu springen.
|
||||
10
modules/WarpPoints/locale/en.cfg
Normal file
10
modules/WarpPoints/locale/en.cfg
Normal file
@@ -0,0 +1,10 @@
|
||||
[WarpPoints]
|
||||
name=Warp List
|
||||
tooltip=A list of warp points.
|
||||
remove-tooltip=Remove Warp point
|
||||
go-to-tooltip=Go To
|
||||
cooldown=You must wait for the cooldown. Time left: __1__
|
||||
cooldown-zero=Your cooldown has expired, You can use warp points again.
|
||||
name-used=That name is already taken.
|
||||
too-close=You are too close to an existing warp point to make a new one.
|
||||
not-on-warp=You are not on a warp point right now, you must be on a warp point to go to one.
|
||||
9
modules/WarpPoints/locale/fr.cfg
Normal file
9
modules/WarpPoints/locale/fr.cfg
Normal file
@@ -0,0 +1,9 @@
|
||||
[WarpPoints]
|
||||
name=Warp List
|
||||
tooltip=A list of warp points.
|
||||
remove-tooltip=Remove Warp Point
|
||||
go-to-tooltip=Go To
|
||||
cooldown=You Must Wait For The Cooldown, Time Left: __1__
|
||||
cooldown-zero=You Cooldown Has Expired, YOu Can Use Warp Points Again.
|
||||
name-used=That Name Is Already Taken
|
||||
not-on-warp=You Are Not On A Warp Point Right Now, You Must Be On A Warp Point To Go To One.
|
||||
9
modules/WarpPoints/locale/nl.cfg
Normal file
9
modules/WarpPoints/locale/nl.cfg
Normal file
@@ -0,0 +1,9 @@
|
||||
[WarpPoints]
|
||||
name=Warp List
|
||||
tooltip=A list of warp points.
|
||||
remove-tooltip=Remove Warp Point
|
||||
go-to-tooltip=Go To
|
||||
cooldown=You Must Wait For The Cooldown, Time Left: __1__
|
||||
cooldown-zero=You Cooldown Has Expired, YOu Can Use Warp Points Again.
|
||||
name-used=That Name Is Already Taken
|
||||
not-on-warp=You Are Not On A Warp Point Right Now, You Must Be On A Warp Point To Go To One.
|
||||
9
modules/WarpPoints/locale/sv-SE.cfg
Normal file
9
modules/WarpPoints/locale/sv-SE.cfg
Normal file
@@ -0,0 +1,9 @@
|
||||
[WarpPoints]
|
||||
name=Warp-lista
|
||||
tooltip=En lista över Warp-punkter.
|
||||
remove-tooltip=Ta bort Warp-punkt
|
||||
go-to-tooltip=Gå till
|
||||
cooldown=Du måste vänta på nedräkningen. Tid kvar: __1__
|
||||
cooldown-zero=Din nedräkningstimer har gått ut, så nu kan du använda Warp-punkter igen.
|
||||
name-used=Det namnet är redan taget.
|
||||
not-on-warp=Du är inte på en Warp-punkt just nu, för att gå till en Warp-punkt måste du befinna dig på en.
|
||||
Reference in New Issue
Block a user