1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
<templateSet group="SkyHanni">
<template name="configColor" value="@Expose @ConfigOption(name = "$Name$", desc = "$Desc$.") @ConfigEditorColour public String $internalName$ = "0:245:85:255:85";" description="Template for color config value" toReformat="false" toShortenFQNames="true">
<variable name="Name" expression="" defaultValue="Color" alwaysStopAt="true" />
<variable name="Desc" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="internalName" expression="camelCase(Name)" defaultValue="" alwaysStopAt="false" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="configBool" value="@Expose @ConfigOption(name = "$Name$", desc = "$Desc$.") @ConfigEditorBoolean public boolean $internalName$ = $default$;" description="Template for bool config value" toReformat="false" toShortenFQNames="true">
<variable name="Name" expression="" defaultValue="Color" alwaysStopAt="true" />
<variable name="Desc" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="internalName" expression="camelCase(Name)" defaultValue="" alwaysStopAt="false" />
<variable name="default" expression="enum("true","false")" defaultValue="false" alwaysStopAt="true" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="eFun" value="@SubscribeEvent fun on$EventPre$(event : $Event$) { }" description="A Event Function" toReformat="true" toShortenFQNames="true">
<variable name="Event" expression="completeSmart()" defaultValue="" alwaysStopAt="true" />
<variable name="EventPre" expression="capitalize(regularExpression(Event,"Event|\\.",""))" defaultValue="" alwaysStopAt="false" />
<context>
<option name="KOTLIN_CLASS" value="true" />
<option name="KOTLIN_OBJECT_DECLARATION" value="true" />
<option name="KOTLIN_STATEMENT" value="true" />
<option name="KOTLIN_TOPLEVEL" value="true" />
</context>
</template>
<template name="enabled" value="fun isEnabled() = LorenzUtils.inSkyBlock && $condition$" description="isEnabled Function for Skyhanni Feature" toReformat="true" toShortenFQNames="true">
<variable name="condition" expression="completeSmart()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="KOTLIN_CLASS" value="true" />
</context>
</template>
<template name="configPosition" value="@Expose @ConfigLink(owner = $owner$.class, field = "$member$") private Position $name$ = new Position(20,20);" description="Template for a position" toReformat="false" toShortenFQNames="true">
<variable name="name" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
<variable name="member" expression="variableOfType("boolean")" defaultValue="enable" alwaysStopAt="true" />
<variable name="owner" expression="className()" defaultValue="" alwaysStopAt="false" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="&&" value="§" description="Replace && with §" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="configKey" value="@Expose @ConfigOption(name = "$name$", desc = "$desc$.") @ConfigEditorKeybind(defaultKey = Keyboard.$bind$) public int $internalName$ = Keyboard.$bind$;" description="Tempalte for Keybind config value" toReformat="false" toShortenFQNames="true">
<variable name="name" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="desc" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="bind" expression="completeSmart()" defaultValue="" alwaysStopAt="true" />
<variable name="internalName" expression="camelCase(name)" defaultValue="" alwaysStopAt="false" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="configLink" value="@ConfigLink(owner = $owner$.class, field = "$member$")" description="Auto fill for config link" toReformat="false" toShortenFQNames="true">
<variable name="owner" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="member" expression="" defaultValue="" alwaysStopAt="true" />
</template>
<template name="configAccordion" value="@Expose @ConfigOption(name = "$Name$",desc="") @Accordion public $Class$ $internalName$ = new $Class$();" description="Template for a config accordion" toReformat="false" toShortenFQNames="true">
<variable name="Name" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="Class" expression="completeSmart()" defaultValue="" alwaysStopAt="true" />
<variable name="internalName" expression="decapitalize(regularExpression(Class,"Config",""))" defaultValue="" alwaysStopAt="false" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="configCategory" value="@Expose @Category(name = "$Name$",desc="$desc$") public $Class$ $internalName$ = new $Class$();" description="Template for a config category" toReformat="false" toShortenFQNames="true">
<variable name="Name" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="desc" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="Class" expression="completeSmart()" defaultValue="" alwaysStopAt="true" />
<variable name="internalName" expression="decapitalize(regularExpression(Class,"Config",""))" defaultValue="" alwaysStopAt="false" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="fconfig" value="private val config get() = SkyHanniMod.feature" description="Default declartion of feature config" toReformat="true" toShortenFQNames="true">
<context>
<option name="KOTLIN_OBJECT_DECLARATION" value="true" />
</context>
</template>
<template name="configSlider" value="@Expose @ConfigOption(name = "$Name$", desc = "$Desc$.") @ConfigEditorSlider(minValue = 1f,maxValue = 10f,minStep = 1f) public float $internalName$ = 1f;" description="Template for config slider" toReformat="false" toShortenFQNames="true">
<variable name="Name" expression="" defaultValue="Color" alwaysStopAt="true" />
<variable name="Desc" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="internalName" expression="camelCase(Name)" defaultValue="" alwaysStopAt="false" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="configButton" value="@ConfigOption(name = "$Name$", desc = "$Desc$.") @ConfigEditorButton(buttonText = "$Button$") public Runnable $internalName$ = () -> $function$;" description="Template for config button" toReformat="false" toShortenFQNames="true">
<variable name="Name" expression="" defaultValue="Color" alwaysStopAt="true" />
<variable name="Desc" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="Button" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="internalName" expression="camelCase(Name)" defaultValue="" alwaysStopAt="false" />
<variable name="function" expression="completeSmart()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
</templateSet>
|