fixed old placer locale issue
This commit is contained in:
1 parent
5ea2d32b88
commit
b4679f1866
4 files changed
+23
-10
No files matched your search
+2
-2
@@ -5,7 +5,7 @@ use_experimental_fxv2_oal 'yes'
|
|||||||
author 'The Order of the Sacred Framework'
|
author 'The Order of the Sacred Framework'
|
||||||
name 'community_bridge'
|
name 'community_bridge'
|
||||||
description 'A Universal Bridge for Our Community, created by a group of contributors with a shared vision to enhance both user and developer experiences. This bridge connects various frameworks, inventories, target systems, notification systems, and more, fostering compatibility and seamless integration.'
|
description 'A Universal Bridge for Our Community, created by a group of contributors with a shared vision to enhance both user and developer experiences. This bridge connects various frameworks, inventories, target systems, notification systems, and more, fostering compatibility and seamless integration.'
|
||||||
version '0.9.2'
|
version '0.10.0'
|
||||||
|
|
||||||
shared_scripts {
|
shared_scripts {
|
||||||
'@ox_lib/init.lua',
|
'@ox_lib/init.lua',
|
||||||
@@ -62,7 +62,7 @@ client_scripts {
|
|||||||
'modules/skills/**/client.lua',
|
'modules/skills/**/client.lua',
|
||||||
'modules/bossmenu/**/client.lua',
|
'modules/bossmenu/**/client.lua',
|
||||||
'init.lua',
|
'init.lua',
|
||||||
-- 'unit_tests/input_test.lua',
|
-- 'unit_tests/*.lua',
|
||||||
}
|
}
|
||||||
|
|
||||||
ui_page 'web/dist/index.html'
|
ui_page 'web/dist/index.html'
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ Language = Language or Require("modules/locales/shared.lua")
|
|||||||
PlaceableObject = PlaceableObject or {}
|
PlaceableObject = PlaceableObject or {}
|
||||||
|
|
||||||
-- Register key mappings for placement controls
|
-- Register key mappings for placement controls
|
||||||
RegisterKeyMapping('+place_object', locale('placeable_object.place_object_place'), 'mouse_button', 'MOUSE_LEFT')
|
RegisterKeyMapping('+place_object', locale('placeable_object.object_place'), 'mouse_button', 'MOUSE_LEFT')
|
||||||
RegisterKeyMapping('+cancel_placement', locale('placeable_object.place_object_cancel'), 'mouse_button', 'MOUSE_RIGHT')
|
RegisterKeyMapping('+cancel_placement', locale('placeable_object.object_cancel'), 'mouse_button', 'MOUSE_RIGHT')
|
||||||
RegisterKeyMapping('+rotate_left', locale('placeable_object.rotate_left'), 'keyboard', 'LEFT')
|
RegisterKeyMapping('+rotate_left', locale('placeable_object.rotate_left'), 'keyboard', 'LEFT')
|
||||||
RegisterKeyMapping('+rotate_right', locale('placeable_object.rotate_right'), 'keyboard', 'RIGHT')
|
RegisterKeyMapping('+rotate_right', locale('placeable_object.rotate_right'), 'keyboard', 'RIGHT')
|
||||||
RegisterKeyMapping('+scroll_up', locale('placeable_object.place_object_scroll_up'), 'mouse_wheel', 'IOM_WHEEL_UP')
|
RegisterKeyMapping('+scroll_up', locale('placeable_object.object_scroll_up'), 'mouse_wheel', 'IOM_WHEEL_UP')
|
||||||
RegisterKeyMapping('+scroll_down', locale('placeable_object.place_object_scroll_down'), 'mouse_wheel', 'IOM_WHEEL_DOWN')
|
RegisterKeyMapping('+scroll_down', locale('placeable_object.object_scroll_down'), 'mouse_wheel', 'IOM_WHEEL_DOWN')
|
||||||
RegisterKeyMapping('+depth_modifier', locale('placeable_object.depth_modifier'), 'keyboard', 'LCONTROL')
|
RegisterKeyMapping('+depth_modifier', locale('placeable_object.depth_modifier'), 'keyboard', 'LCONTROL')
|
||||||
|
|
||||||
local state = {
|
local state = {
|
||||||
|
|||||||
+8
-4
@@ -20,10 +20,14 @@
|
|||||||
"placeable_object": {
|
"placeable_object": {
|
||||||
"no_prop_defined": "You didnt define any object to place",
|
"no_prop_defined": "You didnt define any object to place",
|
||||||
"cant_place_here": "You can't place this object here",
|
"cant_place_here": "You can't place this object here",
|
||||||
"place_object_place": "[%s] Place \n",
|
"place_object_place": "[E] Place \n",
|
||||||
"place_object_cancel": "[%s] Cancel \n",
|
"place_object_cancel": "[X] Cancel \n",
|
||||||
"place_object_scroll_up": "[%s] Turn right \n",
|
"place_object_scroll_up": "[Scroll Up] Turn right \n",
|
||||||
"place_object_scroll_down": "[%s] Turn left \n",
|
"place_object_scroll_down": "[Scroll Down] Turn left \n",
|
||||||
|
"object_place": "[%s] Place \n",
|
||||||
|
"object_cancel": "[%s] Cancel \n",
|
||||||
|
"object_scroll_up": "[%s] Turn right \n",
|
||||||
|
"object_scroll_down": "[%s] Turn left \n",
|
||||||
"depth_modifier": "[%s] Depth Control Modifier \n"
|
"depth_modifier": "[%s] Depth Control Modifier \n"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -26,4 +26,13 @@ RegisterCommand('startplacer', function(source, args, rawCommand)
|
|||||||
else
|
else
|
||||||
print("Placement cancelled")
|
print("Placement cancelled")
|
||||||
end
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
RegisterCommand("startplacerold", function(source, args, rawCommand)
|
||||||
|
local model = args[1] or 'prop_barrel_01a' -- Default model if none provided
|
||||||
|
local distance = tonumber(args[2]) or 5.0 -- Default distance if not provided
|
||||||
|
local snapToGround = true
|
||||||
|
local offset = vector3(0.0, 0.0, 0.0) -- No offset
|
||||||
|
local obj = Bridge.Placeable.PlaceObject(model, distance, snapToGround, {}, offset)
|
||||||
end)
|
end)
|
||||||
Reference in new issue
Block a user