Skip to content

Commit 293a45f

Browse files
committed
Added IFPV plugin
Added a plugin to the IFPV library in order to support insertion of valid config value and SKSE mod event names.
1 parent 055295c commit 293a45f

File tree

2 files changed

+136
-0
lines changed

2 files changed

+136
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
{
3+
"caption": "SublimePapyrus: Insert boolean config value name (IFPV)",
4+
"command": "papyrus_ifpv_boolean_config_value_suggestions"
5+
},
6+
{
7+
"caption": "SublimePapyrus: Insert float config value name (IFPV)",
8+
"command": "papyrus_ifpv_float_config_value_suggestions"
9+
},
10+
{
11+
"caption": "SublimePapyrus: Insert integer config value name (IFPV)",
12+
"command": "papyrus_ifpv_integer_config_value_suggestions"
13+
},
14+
{
15+
"caption": "SublimePapyrus: Insert string config value name (IFPV)",
16+
"command": "papyrus_ifpv_string_config_value_suggestions"
17+
},
18+
{
19+
"caption": "SublimePapyrus: Insert SKSE mod event name (IFPV)",
20+
"command": "papyrus_ifpv_mod_event_name_suggestions"
21+
}
22+
]
+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
import sublime, sublime_plugin, sys, os
2+
PYTHON_VERSION = sys.version_info
3+
if PYTHON_VERSION[0] == 2:
4+
import imp
5+
mainPackage = os.path.join(os.path.split(os.getcwd())[0], "SublimePapyrus", "SublimePapyrus.py")
6+
imp.load_source("SublimePapyrus", mainPackage)
7+
del mainPackage
8+
import SublimePapyrus
9+
if PYTHON_VERSION[0] == 3:
10+
from SublimePapyrus import SublimePapyrus
11+
12+
class PapyrusIfpvBooleanConfigValueSuggestionsCommand(SublimePapyrus.PapyrusShowSuggestionsCommand):
13+
def get_items(self, **args):
14+
items = {
15+
"bActivated": "bActivated",
16+
"bAimBow": "bAimBow",
17+
"bAimCrossbow": "bAimCrossbow",
18+
"bAimMagic": "bAimMagic",
19+
"bAimMagicLeft": "bAimMagicLeft",
20+
"bAimMagicRight": "bAimMagicRight",
21+
"bAttackAnyHanded": "bAttackAnyHanded",
22+
"bAttackAnyHandedLeft": "bAttackAnyHandedLeft",
23+
"bAttackAnyHandedRight": "bAttackAnyHandedRight",
24+
"bAttackOneHanded": "bAttackOneHanded",
25+
"bAttackOneHandedLeft": "bAttackOneHandedLeft",
26+
"bAttackOneHandedRight": "bAttackOneHandedRight",
27+
"bAttackTwoHanded": "bAttackTwoHanded",
28+
"bCrafting": "bCrafting",
29+
"bDead": "bDead",
30+
"bDialogue": "bDialogue",
31+
"bDisableVATS": "bDisableVATS",
32+
"bDismounting": "bDismounting",
33+
"bEnabled": "bEnabled",
34+
"bFocus": "bFocus",
35+
"bGrabbing": "bGrabbing",
36+
"bHeadtrack": "bHeadtrack",
37+
"bHideHead": "bHideHead",
38+
"bIndoors": "bIndoors",
39+
"bIsActive": "bIsActive",
40+
"bIsInIFPV": "bIsInIFPV",
41+
"bIsTargetOverwritten": "bIsTargetOverwritten",
42+
"bJumping": "bJumping",
43+
"bKillMove": "bKillMove",
44+
"bMounted": "bMounted",
45+
"bMounting": "bMounting",
46+
"bRunning": "bRunning",
47+
"bSendModEvents": "bSendModEvents",
48+
"bSitting": "bSitting",
49+
"bSneaking": "bSneaking",
50+
"bSprinting": "bSprinting",
51+
"bSwimming": "bSwimming",
52+
"bToggleIntoIFPV": "bToggleIntoIFPV",
53+
"bVampireLord": "bVampireLord",
54+
"bWalking": "bWalking",
55+
"bWeaponOut": "bWeaponOut",
56+
"bWereWolf": "bWereWolf",
57+
"bZoomIntoIFPV": "bZoomIntoIFPV"
58+
}
59+
return items
60+
61+
class PapyrusIfpvFloatConfigValueSuggestionsCommand(SublimePapyrus.PapyrusShowSuggestionsCommand):
62+
def get_items(self, **args):
63+
items = {
64+
"fCameraViewOffsetHorizontal": "fCameraViewOffsetHorizontal",
65+
"fCameraViewOffsetVertical": "fCameraViewOffsetVertical",
66+
"fExtraRotationFromCamera": "fExtraRotationFromCamera",
67+
"fExtraRotationMouse": "fExtraRotationMouse",
68+
"fFocusMinAngle": "fFocusMinAngle",
69+
"fFocusSpeed": "fFocusSpeed",
70+
"fFOV": "fFOV",
71+
"fNearClip": "fNearClip",
72+
"fPositionOffsetDepth": "fPositionOffsetDepth",
73+
"fPositionOffsetHorizontal": "fPositionOffsetHorizontal",
74+
"fPositionOffsetVertical": "fPositionOffsetVertical",
75+
"fRestrictAngleHorizontal": "fRestrictAngleHorizontal",
76+
"fRestrictAngleVertical": "fRestrictAngleVertical",
77+
"fRotationFromHead": "fRotationFromHead",
78+
"fTimeScale": "fTimeScale",
79+
"fTweenLength": "fTweenLength",
80+
"fUpdateProfileInterval": "fUpdateProfileInterval"
81+
}
82+
return items
83+
84+
class PapyrusIfpvIntegerConfigValueSuggestionsCommand(SublimePapyrus.PapyrusShowSuggestionsCommand):
85+
def get_items(self, **args):
86+
items = {
87+
"iCameraState": "iCameraState",
88+
"iDebug": "iDebug",
89+
"iDebug2": "iDebug2",
90+
"iFaceCrosshair": "iFaceCrosshair",
91+
"iFocusDelay": "iFocusDelay",
92+
"iObjectBaseFormId": "iObjectBaseFormId",
93+
"iObjectRefFormId": "iObjectRefFormId"
94+
}
95+
return items
96+
97+
class PapyrusIfpvStringConfigValueSuggestionsCommand(SublimePapyrus.PapyrusShowSuggestionsCommand):
98+
def get_items(self, **args):
99+
items = {
100+
"sCameraNode": "sCameraNode",
101+
"sFurniture": "sFurniture",
102+
"sRace": "sRace"
103+
}
104+
return items
105+
106+
class PapyrusIfpvModEventNameSuggestionsCommand(SublimePapyrus.PapyrusShowSuggestionsCommand):
107+
def get_items(self, **args):
108+
items = {
109+
"IFPV_EnteringProfile": "IFPV_EnteringProfile",
110+
"IFPV_EnteringView": "IFPV_EnteringView",
111+
"IFPV_LeavingProfile": "IFPV_LeavingProfile",
112+
"IFPV_LeavingView": "IFPV_LeavingView"
113+
}
114+
return items

0 commit comments

Comments
 (0)