Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3fea25b
Showing
7 changed files
with
1,171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# FS19_simpleIC | ||
New Interactive Control Script for FS19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no" ?> | ||
<modDesc descVersion="44"> | ||
<author>modelleicher (LS-Modcompany)</author> | ||
<version>0.9.1.1</version> | ||
<title> | ||
<de>SimpleIC - Einfaches Interactive Control</de> | ||
<en>SimpleIC - Easy Interactive Control</en> | ||
</title> | ||
<description> | ||
<de> | ||
<![CDATA[Globaler Mod für einfaches Interactive Control]]> | ||
</de> | ||
<en> | ||
<![CDATA[Global Mod for simple interactive control]]> | ||
</en> | ||
</description> | ||
|
||
<iconFilename>store.dds</iconFilename> | ||
|
||
|
||
<multiplayer supported="true"/> | ||
<extraSourceFiles> | ||
<sourceFile filename="registerSimpleIC.lua"/> | ||
</extraSourceFiles> | ||
|
||
|
||
<inputBinding> | ||
<actionBinding action="TOGGLE_ONOFF"> | ||
<binding device="KB_MOUSE_DEFAULT" input="" /> | ||
</actionBinding> | ||
<actionBinding action="TOGGLE_MODE"> | ||
<binding device="KB_MOUSE_DEFAULT" input="" /> | ||
</actionBinding> | ||
<actionBinding action="INTERACT_IC_VEHICLE"> | ||
<binding device="KB_MOUSE_DEFAULT" input="" /> | ||
</actionBinding> | ||
<actionBinding action="INTERACT_IC_ONFOOT"> | ||
<binding device="KB_MOUSE_DEFAULT" input="" /> | ||
</actionBinding> | ||
<actionBinding action="INTERACT_IC_MENU"> | ||
<binding device="KB_MOUSE_DEFAULT" input="" /> | ||
</actionBinding> | ||
<actionBinding action="OPEN_MENU"> | ||
<binding device="KB_MOUSE_DEFAULT" input="" /> | ||
</actionBinding> | ||
</inputBinding> | ||
|
||
<l10n> | ||
<text name="input_TOGGLE_MODE"><de>IC: Mausmodus umschalten</de><en>IC: toggle mousemode</en></text> | ||
<text name="input_TOGGLE_ONOFF"><de>IC: an/aus schalten</de><en>IC: on/off</en></text> | ||
<text name="input_INTERACT_IC_VEHICLE"><de>IC: Interagieren vehicle</de><en>IC: interact vehicle</en></text> | ||
<text name="input_INTERACT_IC_ONFOOT"><de>IC: Interagieren zu Fuß</de><en>IC: interact on foot</en></text> | ||
<text name="input_INTERACT_IC_MENU"><de>IC: Interagierenn Menü</de><en>IC: interact menu</en></text> | ||
<text name="input_OPEN_MENU"><de>IC: Menü öffnen</de><en>IC: open menu</en></text> | ||
</l10n> | ||
<actions> | ||
<action name="TOGGLE_ONOFF" /> | ||
<action name="TOGGLE_MODE" /> | ||
<action name="INTERACT_IC_VEHICLE" /> | ||
<action name="INTERACT_IC_ONFOOT" /> | ||
<action name="INTERACT_IC_MENU" /> | ||
<action name="OPEN_MENU" /> | ||
</actions> | ||
|
||
</modDesc> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
|
||
registerSimpleIC = {}; | ||
|
||
local modName = g_currentModName; | ||
local modDirectory = g_currentModDirectory; | ||
print("TEST"); | ||
function init() | ||
print("INIT"); | ||
VehicleTypeManager.validateVehicleTypes = Utils.prependedFunction(VehicleTypeManager.validateVehicleTypes, validateVehicleTypes) | ||
end | ||
|
||
|
||
function validateVehicleTypes(vehicleTypeManager) | ||
print("validateVehicleTypes"); | ||
registerSimpleIC.installSpecializations(g_vehicleTypeManager, g_specializationManager, modDirectory, modName) | ||
end | ||
|
||
|
||
function registerSimpleIC.installSpecializations(vehicleTypeManager, specializationManager, modDirectory, modName) | ||
specializationManager:addSpecialization("simpleIC", "simpleIC", modDirectory.."simpleIC.lua", nil) | ||
|
||
for typeName, typeEntry in pairs(vehicleTypeManager:getVehicleTypes()) do | ||
|
||
if SpecializationUtil.hasSpecialization(Drivable, typeEntry.specializations) then | ||
if not SpecializationUtil.hasSpecialization(Locomotive, typeEntry.specializations) then | ||
vehicleTypeManager:addSpecialization(typeName, modName .. ".simpleIC") | ||
print("inserted simpleIC to "..tostring(typeName)); | ||
end; | ||
end | ||
end | ||
|
||
end | ||
|
||
|
||
|
||
init() | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.