faster compiles pls
This commit is contained in:
+9
-6
@@ -112,19 +112,22 @@
|
||||
<!-- <define name="DISCORD_RPC" if="desktop"/> -->
|
||||
</section>
|
||||
|
||||
<!-- Uncomment this to achive faster compile times, will strip extraneous and commonly unused features. -->
|
||||
<define name="STRIPPED_COMPILE" unless="debug"/>
|
||||
|
||||
<!-- Comment this out to disable modcharting features -->
|
||||
<define name="MODCHARTING_FEATURES"/>
|
||||
<define name="MODCHARTING_FEATURES" unless="STRIPPED_COMPILE" />
|
||||
|
||||
<!-- Comment this out to disable GitHub API integration !-->
|
||||
<define name="GITHUB_API" unless="web || hl"/>
|
||||
|
||||
<!-- Comment this out to prevent unused classes from being compiled.
|
||||
Reduces compilation time at the cost of limited HScript flexibility. !-->
|
||||
<define name="COMPILE_ALL_CLASSES" />
|
||||
<define name="COMPILE_ALL_CLASSES" unless="STRIPPED_COMPILE" />
|
||||
|
||||
<!-- Comment this out to prevent extending classes in hscript.
|
||||
Reduces compilation time at the cost of limited HScript flexibility. !-->
|
||||
<define name="CUSTOM_CLASSES" />
|
||||
<define name="CUSTOM_CLASSES" unless="STRIPPED_COMPILE" />
|
||||
|
||||
<!-- Comment this out to disable multithreading !-->
|
||||
<haxedef name="ALLOW_MULTITHREADING" unless="web || flash" />
|
||||
@@ -145,13 +148,13 @@
|
||||
<haxedef name="NDLLS_SUPPORTED" unless="web || iphonesim || hl" />
|
||||
|
||||
<!-- Comment this out to disable support for Away3D Flixel Integration (reduces compile times) !-->
|
||||
<define name="THREE_D_SUPPORT" />
|
||||
<define name="THREE_D_SUPPORT" unless="STRIPPED_COMPILE" />
|
||||
|
||||
<!-- Comment this out to disable support for Funkin Audio Visualizer (reduces compile times) !-->
|
||||
<define name="AUDIO_VIS_SUPPORT" />
|
||||
<define name="AUDIO_VIS_SUPPORT" unless="STRIPPED_COMPILE" />
|
||||
|
||||
<!-- Comment this out to disable support for Nape integration (flixel.addons.nape) (reduces compile times) !-->
|
||||
<define name="NAPE_ENABLED" />
|
||||
<define name="NAPE_ENABLED" unless="STRIPPED_COMPILE" />
|
||||
|
||||
<!-- Comment this out to disable video cutscene support, in case of compilation errors. !-->
|
||||
<section if="cpp">
|
||||
|
||||
@@ -45,6 +45,7 @@ class CharacterAnimsWindow extends UIButtonList<CharacterAnimButton> {
|
||||
|
||||
setAnimAutoComplete(CoolUtil.getAnimsListFromSprite(character));
|
||||
|
||||
nextscrollY = 0;
|
||||
// dragCallback = (button:CharacterAnimButton, oldID:Int, newID:Int) -> {}
|
||||
}
|
||||
|
||||
@@ -146,7 +147,13 @@ class CharacterAnimsWindow extends UIButtonList<CharacterAnimButton> {
|
||||
if (newButton.valid)
|
||||
buildAnimDisplay(animData.name, animData);
|
||||
|
||||
if (addToUndo) CharacterEditor.undos.addToUndo(CAnimCreate(newButton.ID, newButton.data));
|
||||
if (addToUndo)
|
||||
CharacterEditor.undos.addToUndo(CAnimCreate(newButton.ID, newButton.data));
|
||||
|
||||
var nextButtonY:Float = 0;
|
||||
for (buttonID in 0...newButton.ID)
|
||||
nextButtonY += buttons.members[buttonID].bHeight + buttonOffset.y;
|
||||
nextscrollY = nextButtonY;
|
||||
}
|
||||
|
||||
@:noCompletion var __autoCompleteAnims:Array<String> = [];
|
||||
|
||||
@@ -510,7 +510,8 @@ class CharacterEditor extends UIState {
|
||||
characterAnimsWindow.deleteAnimation(characterAnimsWindow.buttons.members[animID], false);
|
||||
case CAnimDelete(animID, animData):
|
||||
characterAnimsWindow.addAnimation(animData, animID, false);
|
||||
case CAnimEditOrder(animID, newAnimID):
|
||||
playAnimation(animData.name);
|
||||
case CAnimEditOrder(animID, newAnimID):
|
||||
var button:CharacterAnimButton = characterAnimsWindow.buttons.members[newAnimID];
|
||||
characterAnimsWindow.buttons.members.remove(button);
|
||||
characterAnimsWindow.buttons.members.insert(animID, button);
|
||||
@@ -552,6 +553,7 @@ class CharacterEditor extends UIState {
|
||||
case CCharEditSprite(oldSprite, newSprite):
|
||||
case CAnimCreate(animID, animData):
|
||||
characterAnimsWindow.addAnimation(animData, animID, false);
|
||||
playAnimation(animData.name);
|
||||
case CAnimDelete(animID, animData):
|
||||
characterAnimsWindow.deleteAnimation(characterAnimsWindow.buttons.members[animID], false);
|
||||
case CAnimEditOrder(animID, newAnimID):
|
||||
|
||||
Reference in New Issue
Block a user